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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 // Perform a stack guard check. | 126 // Perform a stack guard check. |
127 void StackCheck(); | 127 void StackCheck(); |
128 | 128 |
129 // Returns from the function. | 129 // Returns from the function. |
130 void InterpreterReturn(); | 130 void InterpreterReturn(); |
131 | 131 |
132 // Dispatch to the bytecode. | 132 // Dispatch to the bytecode. |
133 void Dispatch(); | 133 void Dispatch(); |
134 | 134 |
| 135 // Dispatch to bytecode handler. |
| 136 void DispatchToBytecodeHandler(compiler::Node* handler, |
| 137 compiler::Node* bytecode_offset = nullptr); |
| 138 |
135 // Abort with the given bailout reason. | 139 // Abort with the given bailout reason. |
136 void Abort(BailoutReason bailout_reason); | 140 void Abort(BailoutReason bailout_reason); |
137 | 141 |
138 protected: | 142 protected: |
139 static bool TargetSupportsUnalignedAccess(); | 143 static bool TargetSupportsUnalignedAccess(); |
140 | 144 |
141 private: | 145 private: |
142 // Returns a raw pointer to start of the register file on the stack. | 146 // Returns a raw pointer to start of the register file on the stack. |
143 compiler::Node* RegisterFileRawPointer(); | 147 compiler::Node* RegisterFileRawPointer(); |
144 // Returns a tagged pointer to the current function's BytecodeArray object. | 148 // Returns a tagged pointer to the current function's BytecodeArray object. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 compiler::Node* stack_pointer_before_call_; | 189 compiler::Node* stack_pointer_before_call_; |
186 | 190 |
187 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 191 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
188 }; | 192 }; |
189 | 193 |
190 } // namespace interpreter | 194 } // namespace interpreter |
191 } // namespace internal | 195 } // namespace internal |
192 } // namespace v8 | 196 } // namespace v8 |
193 | 197 |
194 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 198 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |