| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/builtins/builtins.h" | 9 #include "src/builtins/builtins.h" |
| 10 #include "src/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // word values |lhs| and |rhs| are not equal. | 138 // word values |lhs| and |rhs| are not equal. |
| 139 void JumpIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs, | 139 void JumpIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs, |
| 140 compiler::Node* jump_offset); | 140 compiler::Node* jump_offset); |
| 141 | 141 |
| 142 // Returns true if the stack guard check triggers an interrupt. | 142 // Returns true if the stack guard check triggers an interrupt. |
| 143 compiler::Node* StackCheckTriggeredInterrupt(); | 143 compiler::Node* StackCheckTriggeredInterrupt(); |
| 144 | 144 |
| 145 // Updates the profiler interrupt budget for a return. | 145 // Updates the profiler interrupt budget for a return. |
| 146 void UpdateInterruptBudgetOnReturn(); | 146 void UpdateInterruptBudgetOnReturn(); |
| 147 | 147 |
| 148 // Returns the OSR nesting level from the bytecode header. | |
| 149 compiler::Node* LoadOSRNestingLevel(); | |
| 150 | |
| 151 // Dispatch to the bytecode. | 148 // Dispatch to the bytecode. |
| 152 compiler::Node* Dispatch(); | 149 compiler::Node* Dispatch(); |
| 153 | 150 |
| 154 // Dispatch to bytecode handler. | 151 // Dispatch to bytecode handler. |
| 155 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { | 152 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { |
| 156 return DispatchToBytecodeHandler(handler, BytecodeOffset()); | 153 return DispatchToBytecodeHandler(handler, BytecodeOffset()); |
| 157 } | 154 } |
| 158 | 155 |
| 159 // Dispatch bytecode as wide operand variant. | 156 // Dispatch bytecode as wide operand variant. |
| 160 void DispatchWide(OperandScale operand_scale); | 157 void DispatchWide(OperandScale operand_scale); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 compiler::Node* stack_pointer_before_call_; | 277 compiler::Node* stack_pointer_before_call_; |
| 281 | 278 |
| 282 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 279 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 283 }; | 280 }; |
| 284 | 281 |
| 285 } // namespace interpreter | 282 } // namespace interpreter |
| 286 } // namespace internal | 283 } // namespace internal |
| 287 } // namespace v8 | 284 } // namespace v8 |
| 288 | 285 |
| 289 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 286 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |