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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "src/base/adapters.h" | 7 #include "src/base/adapters.h" |
8 #include "src/compiler/instruction-selector-impl.h" | 8 #include "src/compiler/instruction-selector-impl.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 opcode = | 1126 opcode = |
1127 kArchCallCFunction | | 1127 kArchCallCFunction | |
1128 MiscField::encode(static_cast<int>(descriptor->CParameterCount())); | 1128 MiscField::encode(static_cast<int>(descriptor->CParameterCount())); |
1129 break; | 1129 break; |
1130 case CallDescriptor::kCallCodeObject: | 1130 case CallDescriptor::kCallCodeObject: |
1131 opcode = kArchCallCodeObject | MiscField::encode(flags); | 1131 opcode = kArchCallCodeObject | MiscField::encode(flags); |
1132 break; | 1132 break; |
1133 case CallDescriptor::kCallJSFunction: | 1133 case CallDescriptor::kCallJSFunction: |
1134 opcode = kArchCallJSFunction | MiscField::encode(flags); | 1134 opcode = kArchCallJSFunction | MiscField::encode(flags); |
1135 break; | 1135 break; |
1136 default: | 1136 case CallDescriptor::kLazyBailout: |
1137 UNREACHABLE(); | 1137 opcode = kArchLazyBailout | MiscField::encode(flags); |
1138 return; | 1138 break; |
1139 } | 1139 } |
1140 | 1140 |
1141 // Emit the call instruction. | 1141 // Emit the call instruction. |
1142 size_t const output_count = buffer.outputs.size(); | 1142 size_t const output_count = buffer.outputs.size(); |
1143 auto* outputs = output_count ? &buffer.outputs.front() : nullptr; | 1143 auto* outputs = output_count ? &buffer.outputs.front() : nullptr; |
1144 Emit(opcode, output_count, outputs, buffer.instruction_args.size(), | 1144 Emit(opcode, output_count, outputs, buffer.instruction_args.size(), |
1145 &buffer.instruction_args.front())->MarkAsCall(); | 1145 &buffer.instruction_args.front())->MarkAsCall(); |
1146 } | 1146 } |
1147 | 1147 |
1148 | 1148 |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1708 if (CpuFeatures::IsSupported(SSE4_1)) { | 1708 if (CpuFeatures::IsSupported(SSE4_1)) { |
1709 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1709 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1710 MachineOperatorBuilder::kFloat64RoundTruncate; | 1710 MachineOperatorBuilder::kFloat64RoundTruncate; |
1711 } | 1711 } |
1712 return flags; | 1712 return flags; |
1713 } | 1713 } |
1714 | 1714 |
1715 } // namespace compiler | 1715 } // namespace compiler |
1716 } // namespace internal | 1716 } // namespace internal |
1717 } // namespace v8 | 1717 } // namespace v8 |
OLD | NEW |