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 MacroAssembler* masm() { return cgen()->masm(); } | 82 MacroAssembler* masm() { return cgen()->masm(); } |
83 | 83 |
84 // Create a duplicate of an existing valid frame element. | 84 // Create a duplicate of an existing valid frame element. |
85 FrameElement CopyElementAt(int index, | 85 FrameElement CopyElementAt(int index, |
86 NumberInfo::Type info = NumberInfo::kUninitialized); | 86 NumberInfo::Type info = NumberInfo::kUninitialized); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 561 |
562 // Classes that need raw access to the elements_ array. | 562 // Classes that need raw access to the elements_ array. |
563 friend class DeferredCode; | 563 friend class DeferredCode; |
564 friend class JumpTarget; | 564 friend class JumpTarget; |
565 }; | 565 }; |
566 | 566 |
567 | 567 |
568 } } // namespace v8::internal | 568 } } // namespace v8::internal |
569 | 569 |
570 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ | 570 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ |
OLD | NEW |