| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Exit it should not be used. Note that Enter does not allocate space in | 192 // Exit it should not be used. Note that Enter does not allocate space in |
| 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 void PrepareForReturn(); | 200 void PrepareForReturn(); |
| 201 | 201 |
| 202 // Number of local variables after when we use a loop for allocating. |
| 203 static const int kLocalVarBound = 10; |
| 204 |
| 202 // Allocate and initialize the frame-allocated locals. | 205 // Allocate and initialize the frame-allocated locals. |
| 203 void AllocateStackSlots(); | 206 void AllocateStackSlots(); |
| 204 | 207 |
| 205 // An element of the expression stack as an assembly operand. | 208 // An element of the expression stack as an assembly operand. |
| 206 Operand ElementAt(int index) const { | 209 Operand ElementAt(int index) const { |
| 207 return Operand(esp, index * kPointerSize); | 210 return Operand(esp, index * kPointerSize); |
| 208 } | 211 } |
| 209 | 212 |
| 210 // 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 |
| 211 // becomes owned by the frame and is invalidated. | 214 // becomes owned by the frame and is invalidated. |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 bool Equals(VirtualFrame* other); | 569 bool Equals(VirtualFrame* other); |
| 567 | 570 |
| 568 // Classes that need raw access to the elements_ array. | 571 // Classes that need raw access to the elements_ array. |
| 569 friend class DeferredCode; | 572 friend class DeferredCode; |
| 570 friend class JumpTarget; | 573 friend class JumpTarget; |
| 571 }; | 574 }; |
| 572 | 575 |
| 573 } } // namespace v8::internal | 576 } } // namespace v8::internal |
| 574 | 577 |
| 575 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ | 578 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ |
| OLD | NEW |