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

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.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
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/instruction-selector.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:
925 opcode = kArchTailCallCodeObject; 924 opcode = kArchTailCallCodeObject;
926 break; 925 break;
927 case CallDescriptor::kCallJSFunction: 926 case CallDescriptor::kCallJSFunction:
928 opcode = kArchTailCallJSFunction; 927 opcode = kArchTailCallJSFunction;
929 break; 928 break;
930 default: 929 default:
931 UNREACHABLE(); 930 UNREACHABLE();
932 return; 931 return;
933 } 932 }
934 opcode |= MiscField::encode(descriptor->flags()); 933 opcode |= MiscField::encode(descriptor->flags());
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 if (CpuFeatures::IsSupported(SSE4_1)) { 1342 if (CpuFeatures::IsSupported(SSE4_1)) {
1344 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1343 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1345 MachineOperatorBuilder::kFloat64RoundTruncate; 1344 MachineOperatorBuilder::kFloat64RoundTruncate;
1346 } 1345 }
1347 return flags; 1346 return flags;
1348 } 1347 }
1349 1348
1350 } // namespace compiler 1349 } // namespace compiler
1351 } // namespace internal 1350 } // namespace internal
1352 } // namespace v8 1351 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698