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

Side by Side Diff: src/compiler/mips/instruction-selector-mips.cc

Issue 1234443004: [turbofan] Add an InterpreterDispatch linkage type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/linkage-impl.h ('k') | src/compiler/mips/linkage-mips.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { 603 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) {
604 CallBuffer buffer(zone(), descriptor, nullptr); 604 CallBuffer buffer(zone(), descriptor, nullptr);
605 605
606 // Compute InstructionOperands for inputs and outputs. 606 // Compute InstructionOperands for inputs and outputs.
607 InitializeCallBuffer(node, &buffer, true, false); 607 InitializeCallBuffer(node, &buffer, true, false);
608 608
609 // Select the appropriate opcode based on the call type. 609 // Select the appropriate opcode based on the call type.
610 InstructionCode opcode; 610 InstructionCode opcode;
611 switch (descriptor->kind()) { 611 switch (descriptor->kind()) {
612 case CallDescriptor::kCallCodeObject: 612 case CallDescriptor::kCallCodeObject:
613 case CallDescriptor::kInterpreterDispatch:
613 opcode = kArchTailCallCodeObject; 614 opcode = kArchTailCallCodeObject;
614 break; 615 break;
615 case CallDescriptor::kCallJSFunction: 616 case CallDescriptor::kCallJSFunction:
616 opcode = kArchTailCallJSFunction; 617 opcode = kArchTailCallJSFunction;
617 break; 618 break;
618 default: 619 default:
619 UNREACHABLE(); 620 UNREACHABLE();
620 return; 621 return;
621 } 622 }
622 opcode |= MiscField::encode(descriptor->flags()); 623 opcode |= MiscField::encode(descriptor->flags());
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 IsFp64Mode()) { 1095 IsFp64Mode()) {
1095 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1096 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1096 MachineOperatorBuilder::kFloat64RoundTruncate; 1097 MachineOperatorBuilder::kFloat64RoundTruncate;
1097 } 1098 }
1098 return flags; 1099 return flags;
1099 } 1100 }
1100 1101
1101 } // namespace compiler 1102 } // namespace compiler
1102 } // namespace internal 1103 } // namespace internal
1103 } // namespace v8 1104 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage-impl.h ('k') | src/compiler/mips/linkage-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698