| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // the physical frame for storing frame-allocated locals. | 173 // the physical frame for storing frame-allocated locals. |
| 174 void Enter(); | 174 void Enter(); |
| 175 void Exit(); | 175 void Exit(); |
| 176 | 176 |
| 177 // Prepare for returning from the frame by spilling locals and | 177 // Prepare for returning from the frame by spilling locals and |
| 178 // dropping all non-locals elements in the virtual frame. This | 178 // dropping all non-locals elements in the virtual frame. This |
| 179 // avoids generating unnecessary merge code when jumping to the | 179 // avoids generating unnecessary merge code when jumping to the |
| 180 // shared return site. Emits code for spills. | 180 // shared return site. Emits code for spills. |
| 181 void PrepareForReturn(); | 181 void PrepareForReturn(); |
| 182 | 182 |
| 183 // Number of local variables after when we use a loop for allocating. |
| 184 static const int kLocalVarBound = 5; |
| 185 |
| 183 // Allocate and initialize the frame-allocated locals. | 186 // Allocate and initialize the frame-allocated locals. |
| 184 void AllocateStackSlots(); | 187 void AllocateStackSlots(); |
| 185 | 188 |
| 186 // The current top of the expression stack as an assembly operand. | 189 // The current top of the expression stack as an assembly operand. |
| 187 MemOperand Top() { return MemOperand(sp, 0); } | 190 MemOperand Top() { return MemOperand(sp, 0); } |
| 188 | 191 |
| 189 // An element of the expression stack as an assembly operand. | 192 // An element of the expression stack as an assembly operand. |
| 190 MemOperand ElementAt(int index) { | 193 MemOperand ElementAt(int index) { |
| 191 return MemOperand(sp, index * kPointerSize); | 194 return MemOperand(sp, index * kPointerSize); |
| 192 } | 195 } |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 | 523 |
| 521 // Classes that need raw access to the elements_ array. | 524 // Classes that need raw access to the elements_ array. |
| 522 friend class DeferredCode; | 525 friend class DeferredCode; |
| 523 friend class JumpTarget; | 526 friend class JumpTarget; |
| 524 }; | 527 }; |
| 525 | 528 |
| 526 | 529 |
| 527 } } // namespace v8::internal | 530 } } // namespace v8::internal |
| 528 | 531 |
| 529 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ | 532 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ |
| OLD | NEW |