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