Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/interpreter/interpreter-generator.cc

Issue 2913783002: [builtins] Begin removing CodeFactory accessors (Closed)
Patch Set: V8_EXPORT_PRIVATE Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/interpreter-intrinsics-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/interpreter-intrinsics-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698