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: |
613 opcode = kArchTailCallCodeObject; | 614 opcode = kArchTailCallCodeObject; |
614 break; | 615 break; |
615 case CallDescriptor::kCallJSFunction: | 616 case CallDescriptor::kCallJSFunction: |
616 opcode = kArchTailCallJSFunction; | 617 opcode = kArchTailCallJSFunction; |
617 break; | 618 break; |
618 default: | 619 default: |
619 UNREACHABLE(); | 620 UNREACHABLE(); |
620 return; | 621 return; |
621 } | 622 } |
622 opcode |= MiscField::encode(descriptor->flags()); | 623 opcode |= MiscField::encode(descriptor->flags()); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 IsFp64Mode()) { | 1095 IsFp64Mode()) { |
1095 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1096 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1096 MachineOperatorBuilder::kFloat64RoundTruncate; | 1097 MachineOperatorBuilder::kFloat64RoundTruncate; |
1097 } | 1098 } |
1098 return flags; | 1099 return flags; |
1099 } | 1100 } |
1100 | 1101 |
1101 } // namespace compiler | 1102 } // namespace compiler |
1102 } // namespace internal | 1103 } // namespace internal |
1103 } // namespace v8 | 1104 } // namespace v8 |
OLD | NEW |