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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // the physical frame for storing frame-allocated locals. | 193 // the physical frame for storing frame-allocated locals. |
194 void Enter(); | 194 void Enter(); |
195 void Exit(); | 195 void Exit(); |
196 | 196 |
197 // Prepare for returning from the frame by spilling locals. This | 197 // Prepare for returning from the frame by spilling locals. This |
198 // avoids generating unnecessary merge code when jumping to the | 198 // avoids generating unnecessary merge code when jumping to the |
199 // shared return site. Emits code for spills. | 199 // shared return site. Emits code for spills. |
200 inline void PrepareForReturn(); | 200 inline void PrepareForReturn(); |
201 | 201 |
202 // Number of local variables after when we use a loop for allocating. | 202 // Number of local variables after when we use a loop for allocating. |
203 static const int kLocalVarBound = 7; | 203 static const int kLocalVarBound = 14; |
204 | 204 |
205 // Allocate and initialize the frame-allocated locals. | 205 // Allocate and initialize the frame-allocated locals. |
206 void AllocateStackSlots(); | 206 void AllocateStackSlots(); |
207 | 207 |
208 // An element of the expression stack as an assembly operand. | 208 // An element of the expression stack as an assembly operand. |
209 Operand ElementAt(int index) const { | 209 Operand ElementAt(int index) const { |
210 return Operand(rsp, index * kPointerSize); | 210 return Operand(rsp, index * kPointerSize); |
211 } | 211 } |
212 | 212 |
213 // Random-access store to a frame-top relative frame element. The result | 213 // Random-access store to a frame-top relative frame element. The result |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 | 593 |
594 // Classes that need raw access to the elements_ array. | 594 // Classes that need raw access to the elements_ array. |
595 friend class FrameRegisterState; | 595 friend class FrameRegisterState; |
596 friend class JumpTarget; | 596 friend class JumpTarget; |
597 }; | 597 }; |
598 | 598 |
599 | 599 |
600 } } // namespace v8::internal | 600 } } // namespace v8::internal |
601 | 601 |
602 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 602 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
OLD | NEW |