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

Side by Side Diff: src/compiler/code-stub-assembler.cc

Issue 1882073002: [Interpreter] Make dispatch table point to code entry instead of code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix visiting dispatch table. Created 4 years, 8 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/compiler/code-stub-assembler.h ('k') | src/compiler/ia32/code-generator-ia32.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 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 #include "src/compiler/code-stub-assembler.h" 5 #include "src/compiler/code-stub-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 MachineType::AnyTagged(), result_size); 1500 MachineType::AnyTagged(), result_size);
1501 1501
1502 Node** args = zone()->NewArray<Node*>(3); 1502 Node** args = zone()->NewArray<Node*>(3);
1503 args[0] = arg1; 1503 args[0] = arg1;
1504 args[1] = arg2; 1504 args[1] = arg2;
1505 args[2] = context; 1505 args[2] = context;
1506 1506
1507 return raw_assembler_->TailCallN(call_descriptor, target, args); 1507 return raw_assembler_->TailCallN(call_descriptor, target, args);
1508 } 1508 }
1509 1509
1510 Node* CodeStubAssembler::TailCall( 1510 Node* CodeStubAssembler::TailCallBytecodeDispatch(
1511 const CallInterfaceDescriptor& interface_descriptor, Node* code_target, 1511 const CallInterfaceDescriptor& interface_descriptor,
1512 Node** args, size_t result_size) { 1512 Node* code_target_address, Node** args) {
1513 CallDescriptor* descriptor = Linkage::GetStubCallDescriptor( 1513 CallDescriptor* descriptor = Linkage::GetBytecodeDispatchCallDescriptor(
1514 isolate(), zone(), interface_descriptor, 1514 isolate(), zone(), interface_descriptor,
1515 interface_descriptor.GetStackParameterCount(), 1515 interface_descriptor.GetStackParameterCount());
1516 CallDescriptor::kSupportsTailCalls, Operator::kNoProperties, 1516 return raw_assembler_->TailCallN(descriptor, code_target_address, args);
1517 MachineType::AnyTagged(), result_size);
1518 return raw_assembler_->TailCallN(descriptor, code_target, args);
1519 } 1517 }
1520 1518
1521 void CodeStubAssembler::Goto(CodeStubAssembler::Label* label) { 1519 void CodeStubAssembler::Goto(CodeStubAssembler::Label* label) {
1522 label->MergeVariables(); 1520 label->MergeVariables();
1523 raw_assembler_->Goto(label->label_); 1521 raw_assembler_->Goto(label->label_);
1524 } 1522 }
1525 1523
1526 void CodeStubAssembler::GotoIf(Node* condition, Label* true_label) { 1524 void CodeStubAssembler::GotoIf(Node* condition, Label* true_label) {
1527 Label false_label(this); 1525 Label false_label(this);
1528 Branch(condition, true_label, &false_label); 1526 Branch(condition, true_label, &false_label);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 } 1712 }
1715 } 1713 }
1716 } 1714 }
1717 1715
1718 bound_ = true; 1716 bound_ = true;
1719 } 1717 }
1720 1718
1721 } // namespace compiler 1719 } // namespace compiler
1722 } // namespace internal 1720 } // namespace internal
1723 } // namespace v8 1721 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698