OLD | NEW |
1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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 #include "src/interpreter/interpreter-generator.h" | 5 #include "src/interpreter/interpreter-generator.h" |
6 | 6 |
7 #include <array> | 7 #include <array> |
8 #include <tuple> | 8 #include <tuple> |
9 | 9 |
10 #include "src/builtins/builtins-arguments-gen.h" | 10 #include "src/builtins/builtins-arguments-gen.h" |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 Node* feedback_vector = LoadFeedbackVector(); | 1453 Node* feedback_vector = LoadFeedbackVector(); |
1454 UpdateFeedback(var_type_feedback.value(), feedback_vector, slot_index); | 1454 UpdateFeedback(var_type_feedback.value(), feedback_vector, slot_index); |
1455 | 1455 |
1456 Dispatch(); | 1456 Dispatch(); |
1457 } | 1457 } |
1458 | 1458 |
1459 // ToObject <dst> | 1459 // ToObject <dst> |
1460 // | 1460 // |
1461 // Convert the object referenced by the accumulator to a JSReceiver. | 1461 // Convert the object referenced by the accumulator to a JSReceiver. |
1462 IGNITION_HANDLER(ToObject, InterpreterAssembler) { | 1462 IGNITION_HANDLER(ToObject, InterpreterAssembler) { |
1463 Callable callable(CodeFactory::ToObject(isolate())); | 1463 Callable callable = Builtins::CallableFor(isolate(), Builtins::kToObject); |
1464 Node* target = HeapConstant(callable.code()); | 1464 Node* target = HeapConstant(callable.code()); |
1465 Node* accumulator = GetAccumulator(); | 1465 Node* accumulator = GetAccumulator(); |
1466 Node* context = GetContext(); | 1466 Node* context = GetContext(); |
1467 Node* result = CallStub(callable.descriptor(), target, context, accumulator); | 1467 Node* result = CallStub(callable.descriptor(), target, context, accumulator); |
1468 StoreRegister(result, BytecodeOperandReg(0)); | 1468 StoreRegister(result, BytecodeOperandReg(0)); |
1469 Dispatch(); | 1469 Dispatch(); |
1470 } | 1470 } |
1471 | 1471 |
1472 // ToPrimitiveToString <dst> | 1472 // ToPrimitiveToString <dst> |
1473 // | 1473 // |
(...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3738 code->Disassemble(Bytecodes::ToString(bytecode), os); | 3738 code->Disassemble(Bytecodes::ToString(bytecode), os); |
3739 os << std::flush; | 3739 os << std::flush; |
3740 } | 3740 } |
3741 #endif // ENABLE_DISASSEMBLER | 3741 #endif // ENABLE_DISASSEMBLER |
3742 return code; | 3742 return code; |
3743 } | 3743 } |
3744 | 3744 |
3745 } // namespace interpreter | 3745 } // namespace interpreter |
3746 } // namespace internal | 3746 } // namespace internal |
3747 } // namespace v8 | 3747 } // namespace v8 |
OLD | NEW |