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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.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/mips/linkage-mips.cc ('k') | src/compiler/mips64/linkage-mips64.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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { 752 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) {
753 CallBuffer buffer(zone(), descriptor, nullptr); 753 CallBuffer buffer(zone(), descriptor, nullptr);
754 754
755 // Compute InstructionOperands for inputs and outputs. 755 // Compute InstructionOperands for inputs and outputs.
756 InitializeCallBuffer(node, &buffer, true, false); 756 InitializeCallBuffer(node, &buffer, true, false);
757 757
758 // Select the appropriate opcode based on the call type. 758 // Select the appropriate opcode based on the call type.
759 InstructionCode opcode; 759 InstructionCode opcode;
760 switch (descriptor->kind()) { 760 switch (descriptor->kind()) {
761 case CallDescriptor::kCallCodeObject: 761 case CallDescriptor::kCallCodeObject:
762 case CallDescriptor::kInterpreterDispatch:
762 opcode = kArchTailCallCodeObject; 763 opcode = kArchTailCallCodeObject;
763 break; 764 break;
764 case CallDescriptor::kCallJSFunction: 765 case CallDescriptor::kCallJSFunction:
765 opcode = kArchTailCallJSFunction; 766 opcode = kArchTailCallJSFunction;
766 break; 767 break;
767 default: 768 default:
768 UNREACHABLE(); 769 UNREACHABLE();
769 return; 770 return;
770 } 771 }
771 opcode |= MiscField::encode(descriptor->flags()); 772 opcode |= MiscField::encode(descriptor->flags());
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 // static 1312 // static
1312 MachineOperatorBuilder::Flags 1313 MachineOperatorBuilder::Flags
1313 InstructionSelector::SupportedMachineOperatorFlags() { 1314 InstructionSelector::SupportedMachineOperatorFlags() {
1314 return MachineOperatorBuilder::kFloat64RoundDown | 1315 return MachineOperatorBuilder::kFloat64RoundDown |
1315 MachineOperatorBuilder::kFloat64RoundTruncate; 1316 MachineOperatorBuilder::kFloat64RoundTruncate;
1316 } 1317 }
1317 1318
1318 } // namespace compiler 1319 } // namespace compiler
1319 } // namespace internal 1320 } // namespace internal
1320 } // namespace v8 1321 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/linkage-mips.cc ('k') | src/compiler/mips64/linkage-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698