| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 private: | 66 private: |
| 67 bool previous_state_; | 67 bool previous_state_; |
| 68 | 68 |
| 69 CodeGenerator* cgen() {return CodeGeneratorScope::Current();} | 69 CodeGenerator* cgen() {return CodeGeneratorScope::Current();} |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 // An illegal index into the virtual frame. | 72 // An illegal index into the virtual frame. |
| 73 static const int kIllegalIndex = -1; | 73 static const int kIllegalIndex = -1; |
| 74 | 74 |
| 75 // Construct an initial virtual frame on entry to a JS function. | 75 // Construct an initial virtual frame on entry to a JS function. |
| 76 VirtualFrame(); | 76 inline VirtualFrame(); |
| 77 | 77 |
| 78 // Construct a virtual frame as a clone of an existing one. | 78 // Construct a virtual frame as a clone of an existing one. |
| 79 explicit inline VirtualFrame(VirtualFrame* original); | 79 explicit inline VirtualFrame(VirtualFrame* original); |
| 80 | 80 |
| 81 CodeGenerator* cgen() { return CodeGeneratorScope::Current(); } | 81 CodeGenerator* cgen() { return CodeGeneratorScope::Current(); } |
| 82 | 82 |
| 83 MacroAssembler* masm() { return cgen()->masm(); } | 83 MacroAssembler* masm() { return cgen()->masm(); } |
| 84 | 84 |
| 85 // Create a duplicate of an existing valid frame element. | 85 // Create a duplicate of an existing valid frame element. |
| 86 FrameElement CopyElementAt(int index, | 86 FrameElement CopyElementAt(int index, |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 inline bool Equals(VirtualFrame* other); | 590 inline bool Equals(VirtualFrame* other); |
| 591 | 591 |
| 592 // Classes that need raw access to the elements_ array. | 592 // Classes that need raw access to the elements_ array. |
| 593 friend class DeferredCode; | 593 friend class DeferredCode; |
| 594 friend class JumpTarget; | 594 friend class JumpTarget; |
| 595 }; | 595 }; |
| 596 | 596 |
| 597 } } // namespace v8::internal | 597 } } // namespace v8::internal |
| 598 | 598 |
| 599 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ | 599 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ |
| OLD | NEW |