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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { | 752 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { |
753 CallBuffer buffer(zone(), descriptor, nullptr); | 753 CallBuffer buffer(zone(), descriptor, nullptr); |
754 | 754 |
755 // Compute InstructionOperands for inputs and outputs. | 755 // Compute InstructionOperands for inputs and outputs. |
756 InitializeCallBuffer(node, &buffer, true, false); | 756 InitializeCallBuffer(node, &buffer, true, false); |
757 | 757 |
758 // Select the appropriate opcode based on the call type. | 758 // Select the appropriate opcode based on the call type. |
759 InstructionCode opcode; | 759 InstructionCode opcode; |
760 switch (descriptor->kind()) { | 760 switch (descriptor->kind()) { |
761 case CallDescriptor::kCallCodeObject: | 761 case CallDescriptor::kCallCodeObject: |
| 762 case CallDescriptor::kInterpreterDispatch: |
762 opcode = kArchTailCallCodeObject; | 763 opcode = kArchTailCallCodeObject; |
763 break; | 764 break; |
764 case CallDescriptor::kCallJSFunction: | 765 case CallDescriptor::kCallJSFunction: |
765 opcode = kArchTailCallJSFunction; | 766 opcode = kArchTailCallJSFunction; |
766 break; | 767 break; |
767 default: | 768 default: |
768 UNREACHABLE(); | 769 UNREACHABLE(); |
769 return; | 770 return; |
770 } | 771 } |
771 opcode |= MiscField::encode(descriptor->flags()); | 772 opcode |= MiscField::encode(descriptor->flags()); |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 // static | 1312 // static |
1312 MachineOperatorBuilder::Flags | 1313 MachineOperatorBuilder::Flags |
1313 InstructionSelector::SupportedMachineOperatorFlags() { | 1314 InstructionSelector::SupportedMachineOperatorFlags() { |
1314 return MachineOperatorBuilder::kFloat64RoundDown | | 1315 return MachineOperatorBuilder::kFloat64RoundDown | |
1315 MachineOperatorBuilder::kFloat64RoundTruncate; | 1316 MachineOperatorBuilder::kFloat64RoundTruncate; |
1316 } | 1317 } |
1317 | 1318 |
1318 } // namespace compiler | 1319 } // namespace compiler |
1319 } // namespace internal | 1320 } // namespace internal |
1320 } // namespace v8 | 1321 } // namespace v8 |
OLD | NEW |