| 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { | 603 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { |
| 604 CallBuffer buffer(zone(), descriptor, nullptr); | 604 CallBuffer buffer(zone(), descriptor, nullptr); |
| 605 | 605 |
| 606 // Compute InstructionOperands for inputs and outputs. | 606 // Compute InstructionOperands for inputs and outputs. |
| 607 InitializeCallBuffer(node, &buffer, true, false); | 607 InitializeCallBuffer(node, &buffer, true, false); |
| 608 | 608 |
| 609 // Select the appropriate opcode based on the call type. | 609 // Select the appropriate opcode based on the call type. |
| 610 InstructionCode opcode; | 610 InstructionCode opcode; |
| 611 switch (descriptor->kind()) { | 611 switch (descriptor->kind()) { |
| 612 case CallDescriptor::kCallCodeObject: | 612 case CallDescriptor::kCallCodeObject: |
| 613 case CallDescriptor::kInterpreterDispatch: | |
| 614 opcode = kArchTailCallCodeObject; | 613 opcode = kArchTailCallCodeObject; |
| 615 break; | 614 break; |
| 616 case CallDescriptor::kCallJSFunction: | 615 case CallDescriptor::kCallJSFunction: |
| 617 opcode = kArchTailCallJSFunction; | 616 opcode = kArchTailCallJSFunction; |
| 618 break; | 617 break; |
| 619 default: | 618 default: |
| 620 UNREACHABLE(); | 619 UNREACHABLE(); |
| 621 return; | 620 return; |
| 622 } | 621 } |
| 623 opcode |= MiscField::encode(descriptor->flags()); | 622 opcode |= MiscField::encode(descriptor->flags()); |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 IsFp64Mode()) { | 1094 IsFp64Mode()) { |
| 1096 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1095 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1097 MachineOperatorBuilder::kFloat64RoundTruncate; | 1096 MachineOperatorBuilder::kFloat64RoundTruncate; |
| 1098 } | 1097 } |
| 1099 return flags; | 1098 return flags; |
| 1100 } | 1099 } |
| 1101 | 1100 |
| 1102 } // namespace compiler | 1101 } // namespace compiler |
| 1103 } // namespace internal | 1102 } // namespace internal |
| 1104 } // namespace v8 | 1103 } // namespace v8 |
| OLD | NEW |