| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_MACRO_ASSEMBLER_H_ | 5 #ifndef V8_MACRO_ASSEMBLER_H_ |
| 6 #define V8_MACRO_ASSEMBLER_H_ | 6 #define V8_MACRO_ASSEMBLER_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 // Helper types to make boolean flag easier to read at call-site. | 9 // Helper types to make boolean flag easier to read at call-site. |
| 10 enum InvokeFlag { | 10 enum InvokeFlag { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } | 107 } |
| 108 masm_->set_has_frame(old_has_frame_); | 108 masm_->set_has_frame(old_has_frame_); |
| 109 } | 109 } |
| 110 | 110 |
| 111 // Normally we generate the leave-frame code when this object goes | 111 // Normally we generate the leave-frame code when this object goes |
| 112 // out of scope. Sometimes we may need to generate the code somewhere else | 112 // out of scope. Sometimes we may need to generate the code somewhere else |
| 113 // in addition. Calling this will achieve that, but the object stays in | 113 // in addition. Calling this will achieve that, but the object stays in |
| 114 // scope, the MacroAssembler is still marked as being in a frame scope, and | 114 // scope, the MacroAssembler is still marked as being in a frame scope, and |
| 115 // the code will be generated again when it goes out of scope. | 115 // the code will be generated again when it goes out of scope. |
| 116 void GenerateLeaveFrame() { | 116 void GenerateLeaveFrame() { |
| 117 ASSERT(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE); | 117 DCHECK(type_ != StackFrame::MANUAL && type_ != StackFrame::NONE); |
| 118 masm_->LeaveFrame(type_); | 118 masm_->LeaveFrame(type_); |
| 119 } | 119 } |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 MacroAssembler* masm_; | 122 MacroAssembler* masm_; |
| 123 StackFrame::Type type_; | 123 StackFrame::Type type_; |
| 124 bool old_has_frame_; | 124 bool old_has_frame_; |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 | 127 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 isolate); | 196 isolate); |
| 197 } | 197 } |
| 198 return ExternalReference::new_space_allocation_limit_address(isolate); | 198 return ExternalReference::new_space_allocation_limit_address(isolate); |
| 199 } | 199 } |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 | 202 |
| 203 } } // namespace v8::internal | 203 } } // namespace v8::internal |
| 204 | 204 |
| 205 #endif // V8_MACRO_ASSEMBLER_H_ | 205 #endif // V8_MACRO_ASSEMBLER_H_ |
| OLD | NEW |