| 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/base/smart-pointers.h" | 9 #include "src/base/smart-pointers.h" |
| 10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // Returns the offset from the BytecodeArrayPointer of the current bytecode. | 150 // Returns the offset from the BytecodeArrayPointer of the current bytecode. |
| 151 compiler::Node* BytecodeOffset(); | 151 compiler::Node* BytecodeOffset(); |
| 152 // Returns a raw pointer to first entry in the interpreter dispatch table. | 152 // Returns a raw pointer to first entry in the interpreter dispatch table. |
| 153 compiler::Node* DispatchTableRawPointer(); | 153 compiler::Node* DispatchTableRawPointer(); |
| 154 | 154 |
| 155 // Saves and restores interpreter bytecode offset to the interpreter stack | 155 // Saves and restores interpreter bytecode offset to the interpreter stack |
| 156 // frame when performing a call. | 156 // frame when performing a call. |
| 157 void CallPrologue() override; | 157 void CallPrologue() override; |
| 158 void CallEpilogue() override; | 158 void CallEpilogue() override; |
| 159 | 159 |
| 160 void IncrementDispatchCounter(); |
| 161 |
| 160 // Traces the current bytecode by calling |function_id|. | 162 // Traces the current bytecode by calling |function_id|. |
| 161 void TraceBytecode(Runtime::FunctionId function_id); | 163 void TraceBytecode(Runtime::FunctionId function_id); |
| 162 | 164 |
| 163 // Updates the bytecode array's interrupt budget by |weight| and calls | 165 // Updates the bytecode array's interrupt budget by |weight| and calls |
| 164 // Runtime::kInterrupt if counter reaches zero. | 166 // Runtime::kInterrupt if counter reaches zero. |
| 165 void UpdateInterruptBudget(compiler::Node* weight); | 167 void UpdateInterruptBudget(compiler::Node* weight); |
| 166 | 168 |
| 167 // Returns the offset of register |index| relative to RegisterFilePointer(). | 169 // Returns the offset of register |index| relative to RegisterFilePointer(). |
| 168 compiler::Node* RegisterFrameOffset(compiler::Node* index); | 170 compiler::Node* RegisterFrameOffset(compiler::Node* index); |
| 169 | 171 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 193 compiler::Node* stack_pointer_before_call_; | 195 compiler::Node* stack_pointer_before_call_; |
| 194 | 196 |
| 195 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 197 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 196 }; | 198 }; |
| 197 | 199 |
| 198 } // namespace interpreter | 200 } // namespace interpreter |
| 199 } // namespace internal | 201 } // namespace internal |
| 200 } // namespace v8 | 202 } // namespace v8 |
| 201 | 203 |
| 202 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 204 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |