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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.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/arm/linkage-arm.cc ('k') | src/compiler/arm64/linkage-arm64.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/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 // Compute InstructionOperands for inputs and outputs. 1485 // Compute InstructionOperands for inputs and outputs.
1486 // TODO(turbofan): on ARM64 it's probably better to use the code object in a 1486 // TODO(turbofan): on ARM64 it's probably better to use the code object in a
1487 // register if there are multiple uses of it. Improve constant pool and the 1487 // register if there are multiple uses of it. Improve constant pool and the
1488 // heuristics in the register allocator for where to emit constants. 1488 // heuristics in the register allocator for where to emit constants.
1489 InitializeCallBuffer(node, &buffer, true, false); 1489 InitializeCallBuffer(node, &buffer, true, false);
1490 1490
1491 // Select the appropriate opcode based on the call type. 1491 // Select the appropriate opcode based on the call type.
1492 InstructionCode opcode; 1492 InstructionCode opcode;
1493 switch (descriptor->kind()) { 1493 switch (descriptor->kind()) {
1494 case CallDescriptor::kCallCodeObject: 1494 case CallDescriptor::kCallCodeObject:
1495 case CallDescriptor::kInterpreterDispatch:
1495 opcode = kArchTailCallCodeObject; 1496 opcode = kArchTailCallCodeObject;
1496 break; 1497 break;
1497 case CallDescriptor::kCallJSFunction: 1498 case CallDescriptor::kCallJSFunction:
1498 opcode = kArchTailCallJSFunction; 1499 opcode = kArchTailCallJSFunction;
1499 break; 1500 break;
1500 default: 1501 default:
1501 UNREACHABLE(); 1502 UNREACHABLE();
1502 return; 1503 return;
1503 } 1504 }
1504 opcode |= MiscField::encode(descriptor->flags()); 1505 opcode |= MiscField::encode(descriptor->flags());
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 MachineOperatorBuilder::kFloat64RoundTruncate | 2070 MachineOperatorBuilder::kFloat64RoundTruncate |
2070 MachineOperatorBuilder::kFloat64RoundTiesAway | 2071 MachineOperatorBuilder::kFloat64RoundTiesAway |
2071 MachineOperatorBuilder::kWord32ShiftIsSafe | 2072 MachineOperatorBuilder::kWord32ShiftIsSafe |
2072 MachineOperatorBuilder::kInt32DivIsSafe | 2073 MachineOperatorBuilder::kInt32DivIsSafe |
2073 MachineOperatorBuilder::kUint32DivIsSafe; 2074 MachineOperatorBuilder::kUint32DivIsSafe;
2074 } 2075 }
2075 2076
2076 } // namespace compiler 2077 } // namespace compiler
2077 } // namespace internal 2078 } // namespace internal
2078 } // namespace v8 2079 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/linkage-arm.cc ('k') | src/compiler/arm64/linkage-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698