| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 compiler::Node* Dispatch(); | 202 compiler::Node* Dispatch(); |
| 203 | 203 |
| 204 // Dispatch to bytecode handler. | 204 // Dispatch to bytecode handler. |
| 205 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { | 205 compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler) { |
| 206 return DispatchToBytecodeHandler(handler, BytecodeOffset()); | 206 return DispatchToBytecodeHandler(handler, BytecodeOffset()); |
| 207 } | 207 } |
| 208 | 208 |
| 209 // Dispatch bytecode as wide operand variant. | 209 // Dispatch bytecode as wide operand variant. |
| 210 void DispatchWide(OperandScale operand_scale); | 210 void DispatchWide(OperandScale operand_scale); |
| 211 | 211 |
| 212 // Convert any |object| to a Number and store the type feedback in |
| 213 // |var_type_feedback|. |
| 214 compiler::Node* ToNumberWithFeedback(compiler::Node* context, |
| 215 compiler::Node* object, |
| 216 Variable* var_type_feedback); |
| 217 |
| 212 // Truncate tagged |value| to word32 and store the type feedback in | 218 // Truncate tagged |value| to word32 and store the type feedback in |
| 213 // |var_type_feedback|. | 219 // |var_type_feedback|. |
| 214 compiler::Node* TruncateTaggedToWord32WithFeedback( | 220 compiler::Node* TruncateTaggedToWord32WithFeedback( |
| 215 compiler::Node* context, compiler::Node* value, | 221 compiler::Node* context, compiler::Node* value, |
| 216 Variable* var_type_feedback); | 222 Variable* var_type_feedback); |
| 217 | 223 |
| 218 // Abort with the given bailout reason. | 224 // Abort with the given bailout reason. |
| 219 void Abort(BailoutReason bailout_reason); | 225 void Abort(BailoutReason bailout_reason); |
| 220 void AbortIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs, | 226 void AbortIfWordNotEqual(compiler::Node* lhs, compiler::Node* rhs, |
| 221 BailoutReason bailout_reason); | 227 BailoutReason bailout_reason); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 compiler::Node* stack_pointer_before_call_; | 361 compiler::Node* stack_pointer_before_call_; |
| 356 | 362 |
| 357 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 363 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 358 }; | 364 }; |
| 359 | 365 |
| 360 } // namespace interpreter | 366 } // namespace interpreter |
| 361 } // namespace internal | 367 } // namespace internal |
| 362 } // namespace v8 | 368 } // namespace v8 |
| 363 | 369 |
| 364 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 370 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |