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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { | 914 if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { |
915 CallBuffer buffer(zone(), descriptor, nullptr); | 915 CallBuffer buffer(zone(), descriptor, nullptr); |
916 | 916 |
917 // Compute InstructionOperands for inputs and outputs. | 917 // Compute InstructionOperands for inputs and outputs. |
918 InitializeCallBuffer(node, &buffer, true, true); | 918 InitializeCallBuffer(node, &buffer, true, true); |
919 | 919 |
920 // Select the appropriate opcode based on the call type. | 920 // Select the appropriate opcode based on the call type. |
921 InstructionCode opcode; | 921 InstructionCode opcode; |
922 switch (descriptor->kind()) { | 922 switch (descriptor->kind()) { |
923 case CallDescriptor::kCallCodeObject: | 923 case CallDescriptor::kCallCodeObject: |
| 924 case CallDescriptor::kInterpreterDispatch: |
924 opcode = kArchTailCallCodeObject; | 925 opcode = kArchTailCallCodeObject; |
925 break; | 926 break; |
926 case CallDescriptor::kCallJSFunction: | 927 case CallDescriptor::kCallJSFunction: |
927 opcode = kArchTailCallJSFunction; | 928 opcode = kArchTailCallJSFunction; |
928 break; | 929 break; |
929 default: | 930 default: |
930 UNREACHABLE(); | 931 UNREACHABLE(); |
931 return; | 932 return; |
932 } | 933 } |
933 opcode |= MiscField::encode(descriptor->flags()); | 934 opcode |= MiscField::encode(descriptor->flags()); |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 if (CpuFeatures::IsSupported(SSE4_1)) { | 1343 if (CpuFeatures::IsSupported(SSE4_1)) { |
1343 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1344 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1344 MachineOperatorBuilder::kFloat64RoundTruncate; | 1345 MachineOperatorBuilder::kFloat64RoundTruncate; |
1345 } | 1346 } |
1346 return flags; | 1347 return flags; |
1347 } | 1348 } |
1348 | 1349 |
1349 } // namespace compiler | 1350 } // namespace compiler |
1350 } // namespace internal | 1351 } // namespace internal |
1351 } // namespace v8 | 1352 } // namespace v8 |
OLD | NEW |