| 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 |
| 148 // Dispatch to the bytecode. | 151 // Dispatch to the bytecode. |
| 149 compiler::Node* Dispatch(); | 152 compiler::Node* Dispatch(); |
| 150 | 153 |
| 151 // Dispatch to bytecode handler. | 154 // Dispatch to bytecode handler. |
| 152 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { | 155 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { |
| 153 return DispatchToBytecodeHandler(handler, BytecodeOffset()); | 156 return DispatchToBytecodeHandler(handler, BytecodeOffset()); |
| 154 } | 157 } |
| 155 | 158 |
| 156 // Dispatch bytecode as wide operand variant. | 159 // Dispatch bytecode as wide operand variant. |
| 157 void DispatchWide(OperandScale operand_scale); | 160 void DispatchWide(OperandScale operand_scale); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 compiler::Node* stack_pointer_before_call_; | 280 compiler::Node* stack_pointer_before_call_; |
| 278 | 281 |
| 279 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 282 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 280 }; | 283 }; |
| 281 | 284 |
| 282 } // namespace interpreter | 285 } // namespace interpreter |
| 283 } // namespace internal | 286 } // namespace internal |
| 284 } // namespace v8 | 287 } // namespace v8 |
| 285 | 288 |
| 286 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 289 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |