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

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

Issue 1268273003: [turbofan] Remove kInterpreterDispatch CallDescriptor kind in favor of flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
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:
763 opcode = kArchTailCallCodeObject; 762 opcode = kArchTailCallCodeObject;
764 break; 763 break;
765 case CallDescriptor::kCallJSFunction: 764 case CallDescriptor::kCallJSFunction:
766 opcode = kArchTailCallJSFunction; 765 opcode = kArchTailCallJSFunction;
767 break; 766 break;
768 default: 767 default:
769 UNREACHABLE(); 768 UNREACHABLE();
770 return; 769 return;
771 } 770 }
772 opcode |= MiscField::encode(descriptor->flags()); 771 opcode |= MiscField::encode(descriptor->flags());
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 // static 1311 // static
1313 MachineOperatorBuilder::Flags 1312 MachineOperatorBuilder::Flags
1314 InstructionSelector::SupportedMachineOperatorFlags() { 1313 InstructionSelector::SupportedMachineOperatorFlags() {
1315 return MachineOperatorBuilder::kFloat64RoundDown | 1314 return MachineOperatorBuilder::kFloat64RoundDown |
1316 MachineOperatorBuilder::kFloat64RoundTruncate; 1315 MachineOperatorBuilder::kFloat64RoundTruncate;
1317 } 1316 }
1318 1317
1319 } // namespace compiler 1318 } // namespace compiler
1320 } // namespace internal 1319 } // namespace internal
1321 } // namespace v8 1320 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/ppc/instruction-selector-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698