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: | |
1496 opcode = kArchTailCallCodeObject; | 1495 opcode = kArchTailCallCodeObject; |
1497 break; | 1496 break; |
1498 case CallDescriptor::kCallJSFunction: | 1497 case CallDescriptor::kCallJSFunction: |
1499 opcode = kArchTailCallJSFunction; | 1498 opcode = kArchTailCallJSFunction; |
1500 break; | 1499 break; |
1501 default: | 1500 default: |
1502 UNREACHABLE(); | 1501 UNREACHABLE(); |
1503 return; | 1502 return; |
1504 } | 1503 } |
1505 opcode |= MiscField::encode(descriptor->flags()); | 1504 opcode |= MiscField::encode(descriptor->flags()); |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2078 MachineOperatorBuilder::kFloat64RoundTruncate | | 2077 MachineOperatorBuilder::kFloat64RoundTruncate | |
2079 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2078 MachineOperatorBuilder::kFloat64RoundTiesAway | |
2080 MachineOperatorBuilder::kWord32ShiftIsSafe | | 2079 MachineOperatorBuilder::kWord32ShiftIsSafe | |
2081 MachineOperatorBuilder::kInt32DivIsSafe | | 2080 MachineOperatorBuilder::kInt32DivIsSafe | |
2082 MachineOperatorBuilder::kUint32DivIsSafe; | 2081 MachineOperatorBuilder::kUint32DivIsSafe; |
2083 } | 2082 } |
2084 | 2083 |
2085 } // namespace compiler | 2084 } // namespace compiler |
2086 } // namespace internal | 2085 } // namespace internal |
2087 } // namespace v8 | 2086 } // namespace v8 |
OLD | NEW |