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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.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/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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { 911 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) {
912 CallBuffer buffer(zone(), descriptor, nullptr); 912 CallBuffer buffer(zone(), descriptor, nullptr);
913 913
914 // Compute InstructionOperands for inputs and outputs. 914 // Compute InstructionOperands for inputs and outputs.
915 InitializeCallBuffer(node, &buffer, true, true); 915 InitializeCallBuffer(node, &buffer, true, true);
916 916
917 // Select the appropriate opcode based on the call type. 917 // Select the appropriate opcode based on the call type.
918 InstructionCode opcode; 918 InstructionCode opcode;
919 switch (descriptor->kind()) { 919 switch (descriptor->kind()) {
920 case CallDescriptor::kCallCodeObject: 920 case CallDescriptor::kCallCodeObject:
921 case CallDescriptor::kInterpreterDispatch:
922 opcode = kArchTailCallCodeObject; 921 opcode = kArchTailCallCodeObject;
923 break; 922 break;
924 case CallDescriptor::kCallJSFunction: 923 case CallDescriptor::kCallJSFunction:
925 opcode = kArchTailCallJSFunction; 924 opcode = kArchTailCallJSFunction;
926 break; 925 break;
927 default: 926 default:
928 UNREACHABLE(); 927 UNREACHABLE();
929 return; 928 return;
930 } 929 }
931 opcode |= MiscField::encode(descriptor->flags()); 930 opcode |= MiscField::encode(descriptor->flags());
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 MachineOperatorBuilder::kFloat32Min | 1346 MachineOperatorBuilder::kFloat32Min |
1348 MachineOperatorBuilder::kFloat64Max | 1347 MachineOperatorBuilder::kFloat64Max |
1349 MachineOperatorBuilder::kFloat64Min | 1348 MachineOperatorBuilder::kFloat64Min |
1350 MachineOperatorBuilder::kWord32ShiftIsSafe; 1349 MachineOperatorBuilder::kWord32ShiftIsSafe;
1351 return flags; 1350 return flags;
1352 } 1351 }
1353 1352
1354 } // namespace compiler 1353 } // namespace compiler
1355 } // namespace internal 1354 } // namespace internal
1356 } // namespace v8 1355 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/unittests/compiler/interpreter-assembler-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698