| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |