Explorar o código

+ introduced the NR_LOCAL_FRAME_POINTER_REG constant (alias for NR_R3)

git-svn-id: branches/wasm@47780 -
nickysn %!s(int64=4) %!d(string=hai) anos
pai
achega
f572bcf8f3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      compiler/wasm32/cpubase.pas

+ 3 - 0
compiler/wasm32/cpubase.pas

@@ -145,6 +145,9 @@ uses
       NR_EVAL_STACK_BASE = NR_R0;
       { used as base register in references to indicate that it's a local }
       NR_LOCAL_STACK_POINTER_REG = NR_R1;
+      { fake register, representing the local frame pointer. Used for accessing
+        address-taken local variables on the linear stack: (localframeptr+offset). }
+      NR_LOCAL_FRAME_POINTER_REG = NR_R3;
 
       maxvarregs = 1;
       maxfpuvarregs = 1;