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: | |
925 opcode = kArchTailCallCodeObject; | 924 opcode = kArchTailCallCodeObject; |
926 break; | 925 break; |
927 case CallDescriptor::kCallJSFunction: | 926 case CallDescriptor::kCallJSFunction: |
928 opcode = kArchTailCallJSFunction; | 927 opcode = kArchTailCallJSFunction; |
929 break; | 928 break; |
930 default: | 929 default: |
931 UNREACHABLE(); | 930 UNREACHABLE(); |
932 return; | 931 return; |
933 } | 932 } |
934 opcode |= MiscField::encode(descriptor->flags()); | 933 opcode |= MiscField::encode(descriptor->flags()); |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 if (CpuFeatures::IsSupported(SSE4_1)) { | 1342 if (CpuFeatures::IsSupported(SSE4_1)) { |
1344 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1343 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1345 MachineOperatorBuilder::kFloat64RoundTruncate; | 1344 MachineOperatorBuilder::kFloat64RoundTruncate; |
1346 } | 1345 } |
1347 return flags; | 1346 return flags; |
1348 } | 1347 } |
1349 | 1348 |
1350 } // namespace compiler | 1349 } // namespace compiler |
1351 } // namespace internal | 1350 } // namespace internal |
1352 } // namespace v8 | 1351 } // namespace v8 |
OLD | NEW |