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

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.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/code-generator.cc ('k') | src/compiler/ia32/linkage-ia32.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/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { 914 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) {
915 CallBuffer buffer(zone(), descriptor, nullptr); 915 CallBuffer buffer(zone(), descriptor, nullptr);
916 916
917 // Compute InstructionOperands for inputs and outputs. 917 // Compute InstructionOperands for inputs and outputs.
918 InitializeCallBuffer(node, &buffer, true, true); 918 InitializeCallBuffer(node, &buffer, true, true);
919 919
920 // Select the appropriate opcode based on the call type. 920 // Select the appropriate opcode based on the call type.
921 InstructionCode opcode; 921 InstructionCode opcode;
922 switch (descriptor->kind()) { 922 switch (descriptor->kind()) {
923 case CallDescriptor::kCallCodeObject: 923 case CallDescriptor::kCallCodeObject:
924 case CallDescriptor::kInterpreterDispatch:
924 opcode = kArchTailCallCodeObject; 925 opcode = kArchTailCallCodeObject;
925 break; 926 break;
926 case CallDescriptor::kCallJSFunction: 927 case CallDescriptor::kCallJSFunction:
927 opcode = kArchTailCallJSFunction; 928 opcode = kArchTailCallJSFunction;
928 break; 929 break;
929 default: 930 default:
930 UNREACHABLE(); 931 UNREACHABLE();
931 return; 932 return;
932 } 933 }
933 opcode |= MiscField::encode(descriptor->flags()); 934 opcode |= MiscField::encode(descriptor->flags());
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 if (CpuFeatures::IsSupported(SSE4_1)) { 1343 if (CpuFeatures::IsSupported(SSE4_1)) {
1343 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1344 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1344 MachineOperatorBuilder::kFloat64RoundTruncate; 1345 MachineOperatorBuilder::kFloat64RoundTruncate;
1345 } 1346 }
1346 return flags; 1347 return flags;
1347 } 1348 }
1348 1349
1349 } // namespace compiler 1350 } // namespace compiler
1350 } // namespace internal 1351 } // namespace internal
1351 } // namespace v8 1352 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/ia32/linkage-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698