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

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

Issue 1232803004: PPC: [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/ppc/linkage-ppc.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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 // Compute InstructionOperands for inputs and outputs. 1540 // Compute InstructionOperands for inputs and outputs.
1541 // TODO(turbofan): on PPC it's probably better to use the code object in a 1541 // TODO(turbofan): on PPC it's probably better to use the code object in a
1542 // register if there are multiple uses of it. Improve constant pool and the 1542 // register if there are multiple uses of it. Improve constant pool and the
1543 // heuristics in the register allocator for where to emit constants. 1543 // heuristics in the register allocator for where to emit constants.
1544 InitializeCallBuffer(node, &buffer, true, false); 1544 InitializeCallBuffer(node, &buffer, true, false);
1545 1545
1546 // Select the appropriate opcode based on the call type. 1546 // Select the appropriate opcode based on the call type.
1547 InstructionCode opcode; 1547 InstructionCode opcode;
1548 switch (descriptor->kind()) { 1548 switch (descriptor->kind()) {
1549 case CallDescriptor::kCallCodeObject: 1549 case CallDescriptor::kCallCodeObject:
1550 case CallDescriptor::kInterpreterDispatch:
1550 opcode = kArchTailCallCodeObject; 1551 opcode = kArchTailCallCodeObject;
1551 break; 1552 break;
1552 case CallDescriptor::kCallJSFunction: 1553 case CallDescriptor::kCallJSFunction:
1553 opcode = kArchTailCallJSFunction; 1554 opcode = kArchTailCallJSFunction;
1554 break; 1555 break;
1555 default: 1556 default:
1556 UNREACHABLE(); 1557 UNREACHABLE();
1557 return; 1558 return;
1558 } 1559 }
1559 opcode |= MiscField::encode(descriptor->flags()); 1560 opcode |= MiscField::encode(descriptor->flags());
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 InstructionSelector::SupportedMachineOperatorFlags() { 1659 InstructionSelector::SupportedMachineOperatorFlags() {
1659 return MachineOperatorBuilder::kFloat64RoundDown | 1660 return MachineOperatorBuilder::kFloat64RoundDown |
1660 MachineOperatorBuilder::kFloat64RoundTruncate | 1661 MachineOperatorBuilder::kFloat64RoundTruncate |
1661 MachineOperatorBuilder::kFloat64RoundTiesAway; 1662 MachineOperatorBuilder::kFloat64RoundTiesAway;
1662 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1663 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1663 } 1664 }
1664 1665
1665 } // namespace compiler 1666 } // namespace compiler
1666 } // namespace internal 1667 } // namespace internal
1667 } // namespace v8 1668 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ppc/linkage-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698