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_COMPILER_INTERPRETER_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
7 | 7 |
8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Jump relative to the current bytecode by |jump_offset| if the | 137 // Jump relative to the current bytecode by |jump_offset| if the |
138 // word values |lhs| and |rhs| are equal. | 138 // word values |lhs| and |rhs| are equal. |
139 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); | 139 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); |
140 | 140 |
141 // Returns from the function. | 141 // Returns from the function. |
142 void Return(); | 142 void Return(); |
143 | 143 |
144 // Dispatch to the bytecode. | 144 // Dispatch to the bytecode. |
145 void Dispatch(); | 145 void Dispatch(); |
146 | 146 |
| 147 // Abort with the given bailout reason. |
| 148 void Abort(BailoutReason bailout_reason); |
| 149 |
147 protected: | 150 protected: |
148 // Close the graph. | 151 // Close the graph. |
149 void End(); | 152 void End(); |
150 | 153 |
151 static bool TargetSupportsUnalignedAccess(); | 154 static bool TargetSupportsUnalignedAccess(); |
152 | 155 |
153 // Protected helpers (for testing) which delegate to RawMachineAssembler. | 156 // Protected helpers (for testing) which delegate to RawMachineAssembler. |
154 CallDescriptor* call_descriptor() const; | 157 CallDescriptor* call_descriptor() const; |
155 Graph* graph(); | 158 Graph* graph(); |
156 | 159 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 bool code_generated_; | 207 bool code_generated_; |
205 | 208 |
206 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 209 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
207 }; | 210 }; |
208 | 211 |
209 } // namespace compiler | 212 } // namespace compiler |
210 } // namespace internal | 213 } // namespace internal |
211 } // namespace v8 | 214 } // namespace v8 |
212 | 215 |
213 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 216 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |