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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { 1122 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) {
1123 CallBuffer buffer(zone(), descriptor, nullptr); 1123 CallBuffer buffer(zone(), descriptor, nullptr);
1124 1124
1125 // Compute InstructionOperands for inputs and outputs. 1125 // Compute InstructionOperands for inputs and outputs.
1126 InitializeCallBuffer(node, &buffer, true, true); 1126 InitializeCallBuffer(node, &buffer, true, true);
1127 1127
1128 // Select the appropriate opcode based on the call type. 1128 // Select the appropriate opcode based on the call type.
1129 InstructionCode opcode; 1129 InstructionCode opcode;
1130 switch (descriptor->kind()) { 1130 switch (descriptor->kind()) {
1131 case CallDescriptor::kCallCodeObject: 1131 case CallDescriptor::kCallCodeObject:
1132 case CallDescriptor::kInterpreterDispatch:
1133 opcode = kArchTailCallCodeObject; 1132 opcode = kArchTailCallCodeObject;
1134 break; 1133 break;
1135 case CallDescriptor::kCallJSFunction: 1134 case CallDescriptor::kCallJSFunction:
1136 opcode = kArchTailCallJSFunction; 1135 opcode = kArchTailCallJSFunction;
1137 break; 1136 break;
1138 default: 1137 default:
1139 UNREACHABLE(); 1138 UNREACHABLE();
1140 return; 1139 return;
1141 } 1140 }
1142 opcode |= MiscField::encode(descriptor->flags()); 1141 opcode |= MiscField::encode(descriptor->flags());
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 if (CpuFeatures::IsSupported(SSE4_1)) { 1673 if (CpuFeatures::IsSupported(SSE4_1)) {
1675 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1674 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1676 MachineOperatorBuilder::kFloat64RoundTruncate; 1675 MachineOperatorBuilder::kFloat64RoundTruncate;
1677 } 1676 }
1678 return flags; 1677 return flags;
1679 } 1678 }
1680 1679
1681 } // namespace compiler 1680 } // namespace compiler
1682 } // namespace internal 1681 } // namespace internal
1683 } // namespace v8 1682 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698