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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 compiler::Node* Dispatch(); | 155 compiler::Node* Dispatch(); |
156 | 156 |
157 // Dispatch to bytecode handler. | 157 // Dispatch to bytecode handler. |
158 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { | 158 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { |
159 return DispatchToBytecodeHandler(handler, BytecodeOffset()); | 159 return DispatchToBytecodeHandler(handler, BytecodeOffset()); |
160 } | 160 } |
161 | 161 |
162 // Dispatch bytecode as wide operand variant. | 162 // Dispatch bytecode as wide operand variant. |
163 void DispatchWide(OperandScale operand_scale); | 163 void DispatchWide(OperandScale operand_scale); |
164 | 164 |
| 165 // Truncate tagged |value| to word32 and store the type feedback in |
| 166 // |var_type_feedback|. |
| 167 compiler::Node* TruncateTaggedToWord32WithFeedback( |
| 168 compiler::Node* context, compiler::Node* value, |
| 169 Variable* var_type_feedback); |
| 170 |
165 // Abort with the given bailout reason. | 171 // Abort with the given bailout reason. |
166 void Abort(BailoutReason bailout_reason); | 172 void Abort(BailoutReason bailout_reason); |
167 void AbortIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs, | 173 void AbortIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs, |
168 BailoutReason bailout_reason); | 174 BailoutReason bailout_reason); |
169 | 175 |
170 // Returns the offset from the BytecodeArrayPointer of the current bytecode. | 176 // Returns the offset from the BytecodeArrayPointer of the current bytecode. |
171 compiler::Node* BytecodeOffset(); | 177 compiler::Node* BytecodeOffset(); |
172 | 178 |
173 protected: | 179 protected: |
174 Bytecode bytecode() const { return bytecode_; } | 180 Bytecode bytecode() const { return bytecode_; } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 compiler::Node* stack_pointer_before_call_; | 289 compiler::Node* stack_pointer_before_call_; |
284 | 290 |
285 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 291 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
286 }; | 292 }; |
287 | 293 |
288 } // namespace interpreter | 294 } // namespace interpreter |
289 } // namespace internal | 295 } // namespace internal |
290 } // namespace v8 | 296 } // namespace v8 |
291 | 297 |
292 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 298 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
OLD | NEW |