| 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "src/base/adapters.h" | 7 #include "src/base/adapters.h" |
| 8 #include "src/compiler/instruction-selector-impl.h" | 8 #include "src/compiler/instruction-selector-impl.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
| (...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1122 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { | 1122 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { |
| 1123 CallBuffer buffer(zone(), descriptor, nullptr); | 1123 CallBuffer buffer(zone(), descriptor, nullptr); |
| 1124 | 1124 |
| 1125 // Compute InstructionOperands for inputs and outputs. | 1125 // Compute InstructionOperands for inputs and outputs. |
| 1126 InitializeCallBuffer(node, &buffer, true, true); | 1126 InitializeCallBuffer(node, &buffer, true, true); |
| 1127 | 1127 |
| 1128 // Select the appropriate opcode based on the call type. | 1128 // Select the appropriate opcode based on the call type. |
| 1129 InstructionCode opcode; | 1129 InstructionCode opcode; |
| 1130 switch (descriptor->kind()) { | 1130 switch (descriptor->kind()) { |
| 1131 case CallDescriptor::kCallCodeObject: | 1131 case CallDescriptor::kCallCodeObject: |
| 1132 case CallDescriptor::kInterpreterDispatch: |
| 1132 opcode = kArchTailCallCodeObject; | 1133 opcode = kArchTailCallCodeObject; |
| 1133 break; | 1134 break; |
| 1134 case CallDescriptor::kCallJSFunction: | 1135 case CallDescriptor::kCallJSFunction: |
| 1135 opcode = kArchTailCallJSFunction; | 1136 opcode = kArchTailCallJSFunction; |
| 1136 break; | 1137 break; |
| 1137 default: | 1138 default: |
| 1138 UNREACHABLE(); | 1139 UNREACHABLE(); |
| 1139 return; | 1140 return; |
| 1140 } | 1141 } |
| 1141 opcode |= MiscField::encode(descriptor->flags()); | 1142 opcode |= MiscField::encode(descriptor->flags()); |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 if (CpuFeatures::IsSupported(SSE4_1)) { | 1674 if (CpuFeatures::IsSupported(SSE4_1)) { |
| 1674 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1675 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1675 MachineOperatorBuilder::kFloat64RoundTruncate; | 1676 MachineOperatorBuilder::kFloat64RoundTruncate; |
| 1676 } | 1677 } |
| 1677 return flags; | 1678 return flags; |
| 1678 } | 1679 } |
| 1679 | 1680 |
| 1680 } // namespace compiler | 1681 } // namespace compiler |
| 1681 } // namespace internal | 1682 } // namespace internal |
| 1682 } // namespace v8 | 1683 } // namespace v8 |
| OLD | NEW |