| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 AssertIsSpilled(); | 205 AssertIsSpilled(); |
| 206 } | 206 } |
| 207 | 207 |
| 208 // Emit code for the physical JS entry and exit frame sequences. After | 208 // Emit code for the physical JS entry and exit frame sequences. After |
| 209 // calling Enter, the virtual frame is ready for use; and after calling | 209 // calling Enter, the virtual frame is ready for use; and after calling |
| 210 // Exit it should not be used. Note that Enter does not allocate space in | 210 // Exit it should not be used. Note that Enter does not allocate space in |
| 211 // the physical frame for storing frame-allocated locals. | 211 // the physical frame for storing frame-allocated locals. |
| 212 void Enter(); | 212 void Enter(); |
| 213 void Exit(); | 213 void Exit(); |
| 214 | 214 |
| 215 // Prepare for returning from the frame by spilling locals and | 215 // Prepare for returning from the frame by elements in the virtual frame. This |
| 216 // dropping all non-locals elements in the virtual frame. This | |
| 217 // avoids generating unnecessary merge code when jumping to the | 216 // avoids generating unnecessary merge code when jumping to the |
| 218 // shared return site. Emits code for spills. | 217 // shared return site. No spill code emitted. Value to return should be in r0. |
| 219 inline void PrepareForReturn(); | 218 inline void PrepareForReturn(); |
| 220 | 219 |
| 221 // Number of local variables after when we use a loop for allocating. | 220 // Number of local variables after when we use a loop for allocating. |
| 222 static const int kLocalVarBound = 5; | 221 static const int kLocalVarBound = 5; |
| 223 | 222 |
| 224 // Allocate and initialize the frame-allocated locals. | 223 // Allocate and initialize the frame-allocated locals. |
| 225 void AllocateStackSlots(); | 224 void AllocateStackSlots(); |
| 226 | 225 |
| 227 // The current top of the expression stack as an assembly operand. | 226 // The current top of the expression stack as an assembly operand. |
| 228 MemOperand Top() { | 227 MemOperand Top() { |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 } | 501 } |
| 503 } | 502 } |
| 504 | 503 |
| 505 friend class JumpTarget; | 504 friend class JumpTarget; |
| 506 }; | 505 }; |
| 507 | 506 |
| 508 | 507 |
| 509 } } // namespace v8::internal | 508 } } // namespace v8::internal |
| 510 | 509 |
| 511 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ | 510 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ |
| OLD | NEW |