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/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { | 911 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { |
912 CallBuffer buffer(zone(), descriptor, nullptr); | 912 CallBuffer buffer(zone(), descriptor, nullptr); |
913 | 913 |
914 // Compute InstructionOperands for inputs and outputs. | 914 // Compute InstructionOperands for inputs and outputs. |
915 InitializeCallBuffer(node, &buffer, true, true); | 915 InitializeCallBuffer(node, &buffer, true, true); |
916 | 916 |
917 // Select the appropriate opcode based on the call type. | 917 // Select the appropriate opcode based on the call type. |
918 InstructionCode opcode; | 918 InstructionCode opcode; |
919 switch (descriptor->kind()) { | 919 switch (descriptor->kind()) { |
920 case CallDescriptor::kCallCodeObject: | 920 case CallDescriptor::kCallCodeObject: |
| 921 case CallDescriptor::kInterpreterDispatch: |
921 opcode = kArchTailCallCodeObject; | 922 opcode = kArchTailCallCodeObject; |
922 break; | 923 break; |
923 case CallDescriptor::kCallJSFunction: | 924 case CallDescriptor::kCallJSFunction: |
924 opcode = kArchTailCallJSFunction; | 925 opcode = kArchTailCallJSFunction; |
925 break; | 926 break; |
926 default: | 927 default: |
927 UNREACHABLE(); | 928 UNREACHABLE(); |
928 return; | 929 return; |
929 } | 930 } |
930 opcode |= MiscField::encode(descriptor->flags()); | 931 opcode |= MiscField::encode(descriptor->flags()); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 MachineOperatorBuilder::kFloat32Min | | 1347 MachineOperatorBuilder::kFloat32Min | |
1347 MachineOperatorBuilder::kFloat64Max | | 1348 MachineOperatorBuilder::kFloat64Max | |
1348 MachineOperatorBuilder::kFloat64Min | | 1349 MachineOperatorBuilder::kFloat64Min | |
1349 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1350 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1350 return flags; | 1351 return flags; |
1351 } | 1352 } |
1352 | 1353 |
1353 } // namespace compiler | 1354 } // namespace compiler |
1354 } // namespace internal | 1355 } // namespace internal |
1355 } // namespace v8 | 1356 } // namespace v8 |
OLD | NEW |