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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.cc

Issue 1232383003: X87: [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 | « no previous file | src/compiler/x87/linkage-x87.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 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:
921 opcode = kArchTailCallCodeObject; 922 opcode = kArchTailCallCodeObject;
922 break; 923 break;
923 case CallDescriptor::kCallJSFunction: 924 case CallDescriptor::kCallJSFunction:
924 opcode = kArchTailCallJSFunction; 925 opcode = kArchTailCallJSFunction;
925 break; 926 break;
926 default: 927 default:
927 UNREACHABLE(); 928 UNREACHABLE();
928 return; 929 return;
929 } 930 }
930 opcode |= MiscField::encode(descriptor->flags()); 931 opcode |= MiscField::encode(descriptor->flags());
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 MachineOperatorBuilder::kFloat32Min | 1347 MachineOperatorBuilder::kFloat32Min |
1347 MachineOperatorBuilder::kFloat64Max | 1348 MachineOperatorBuilder::kFloat64Max |
1348 MachineOperatorBuilder::kFloat64Min | 1349 MachineOperatorBuilder::kFloat64Min |
1349 MachineOperatorBuilder::kWord32ShiftIsSafe; 1350 MachineOperatorBuilder::kWord32ShiftIsSafe;
1350 return flags; 1351 return flags;
1351 } 1352 }
1352 1353
1353 } // namespace compiler 1354 } // namespace compiler
1354 } // namespace internal 1355 } // namespace internal
1355 } // namespace v8 1356 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/x87/linkage-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698