Browse Source

+ introduced the NR_LOCAL_FRAME_POINTER_REG constant (alias for NR_R3)

git-svn-id: branches/wasm@47780 -
nickysn 4 years ago
parent
commit
f572bcf8f3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/wasm32/cpubase.pas

+ 3 - 0
compiler/wasm32/cpubase.pas

@@ -145,6 +145,9 @@ uses
       NR_EVAL_STACK_BASE = NR_R0;
       NR_EVAL_STACK_BASE = NR_R0;
       { used as base register in references to indicate that it's a local }
       { used as base register in references to indicate that it's a local }
       NR_LOCAL_STACK_POINTER_REG = NR_R1;
       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;
       maxvarregs = 1;
       maxfpuvarregs = 1;
       maxfpuvarregs = 1;