| 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/base/bits.h" | 6 #include "src/base/bits.h" |
| 7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
| 8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
| 9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
| 10 | 10 |
| (...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 // Compute InstructionOperands for inputs and outputs. | 1183 // Compute InstructionOperands for inputs and outputs. |
| 1184 // TODO(turbofan): on ARM it's probably better to use the code object in a | 1184 // TODO(turbofan): on ARM it's probably better to use the code object in a |
| 1185 // register if there are multiple uses of it. Improve constant pool and the | 1185 // register if there are multiple uses of it. Improve constant pool and the |
| 1186 // heuristics in the register allocator for where to emit constants. | 1186 // heuristics in the register allocator for where to emit constants. |
| 1187 InitializeCallBuffer(node, &buffer, true, false); | 1187 InitializeCallBuffer(node, &buffer, true, false); |
| 1188 | 1188 |
| 1189 // Select the appropriate opcode based on the call type. | 1189 // Select the appropriate opcode based on the call type. |
| 1190 InstructionCode opcode; | 1190 InstructionCode opcode; |
| 1191 switch (descriptor->kind()) { | 1191 switch (descriptor->kind()) { |
| 1192 case CallDescriptor::kCallCodeObject: | 1192 case CallDescriptor::kCallCodeObject: |
| 1193 case CallDescriptor::kInterpreterDispatch: |
| 1193 opcode = kArchTailCallCodeObject; | 1194 opcode = kArchTailCallCodeObject; |
| 1194 break; | 1195 break; |
| 1195 case CallDescriptor::kCallJSFunction: | 1196 case CallDescriptor::kCallJSFunction: |
| 1196 opcode = kArchTailCallJSFunction; | 1197 opcode = kArchTailCallJSFunction; |
| 1197 break; | 1198 break; |
| 1198 default: | 1199 default: |
| 1199 UNREACHABLE(); | 1200 UNREACHABLE(); |
| 1200 return; | 1201 return; |
| 1201 } | 1202 } |
| 1202 opcode |= MiscField::encode(descriptor->flags()); | 1203 opcode |= MiscField::encode(descriptor->flags()); |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1632 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1632 MachineOperatorBuilder::kFloat64RoundTruncate | | 1633 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1633 MachineOperatorBuilder::kFloat64RoundTiesAway; | 1634 MachineOperatorBuilder::kFloat64RoundTiesAway; |
| 1634 } | 1635 } |
| 1635 return flags; | 1636 return flags; |
| 1636 } | 1637 } |
| 1637 | 1638 |
| 1638 } // namespace compiler | 1639 } // namespace compiler |
| 1639 } // namespace internal | 1640 } // namespace internal |
| 1640 } // namespace v8 | 1641 } // namespace v8 |
| OLD | NEW |