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

Side by Side Diff: src/compiler/ppc/instruction-selector-ppc.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 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:
1551 opcode = kArchTailCallCodeObject; 1550 opcode = kArchTailCallCodeObject;
1552 break; 1551 break;
1553 case CallDescriptor::kCallJSFunction: 1552 case CallDescriptor::kCallJSFunction:
1554 opcode = kArchTailCallJSFunction; 1553 opcode = kArchTailCallJSFunction;
1555 break; 1554 break;
1556 default: 1555 default:
1557 UNREACHABLE(); 1556 UNREACHABLE();
1558 return; 1557 return;
1559 } 1558 }
1560 opcode |= MiscField::encode(descriptor->flags()); 1559 opcode |= MiscField::encode(descriptor->flags());
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 InstructionSelector::SupportedMachineOperatorFlags() { 1658 InstructionSelector::SupportedMachineOperatorFlags() {
1660 return MachineOperatorBuilder::kFloat64RoundDown | 1659 return MachineOperatorBuilder::kFloat64RoundDown |
1661 MachineOperatorBuilder::kFloat64RoundTruncate | 1660 MachineOperatorBuilder::kFloat64RoundTruncate |
1662 MachineOperatorBuilder::kFloat64RoundTiesAway; 1661 MachineOperatorBuilder::kFloat64RoundTiesAway;
1663 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1662 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1664 } 1663 }
1665 1664
1666 } // namespace compiler 1665 } // namespace compiler
1667 } // namespace internal 1666 } // namespace internal
1668 } // namespace v8 1667 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698