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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.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/mips64/linkage-mips64.cc ('k') | src/compiler/x64/linkage-x64.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 <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:
1132 opcode = kArchTailCallCodeObject; 1133 opcode = kArchTailCallCodeObject;
1133 break; 1134 break;
1134 case CallDescriptor::kCallJSFunction: 1135 case CallDescriptor::kCallJSFunction:
1135 opcode = kArchTailCallJSFunction; 1136 opcode = kArchTailCallJSFunction;
1136 break; 1137 break;
1137 default: 1138 default:
1138 UNREACHABLE(); 1139 UNREACHABLE();
1139 return; 1140 return;
1140 } 1141 }
1141 opcode |= MiscField::encode(descriptor->flags()); 1142 opcode |= MiscField::encode(descriptor->flags());
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 if (CpuFeatures::IsSupported(SSE4_1)) { 1674 if (CpuFeatures::IsSupported(SSE4_1)) {
1674 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1675 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1675 MachineOperatorBuilder::kFloat64RoundTruncate; 1676 MachineOperatorBuilder::kFloat64RoundTruncate;
1676 } 1677 }
1677 return flags; 1678 return flags;
1678 } 1679 }
1679 1680
1680 } // namespace compiler 1681 } // namespace compiler
1681 } // namespace internal 1682 } // namespace internal
1682 } // namespace v8 1683 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/linkage-mips64.cc ('k') | src/compiler/x64/linkage-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698