| 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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 | 1144 |
| 1145 // Select the appropriate opcode based on the call type. | 1145 // Select the appropriate opcode based on the call type. |
| 1146 InstructionCode opcode; | 1146 InstructionCode opcode; |
| 1147 switch (descriptor->kind()) { | 1147 switch (descriptor->kind()) { |
| 1148 case CallDescriptor::kCallAddress: | 1148 case CallDescriptor::kCallAddress: |
| 1149 opcode = | 1149 opcode = |
| 1150 kArchCallCFunction | | 1150 kArchCallCFunction | |
| 1151 MiscField::encode(static_cast<int>(descriptor->CParameterCount())); | 1151 MiscField::encode(static_cast<int>(descriptor->CParameterCount())); |
| 1152 break; | 1152 break; |
| 1153 case CallDescriptor::kCallCodeObject: | 1153 case CallDescriptor::kCallCodeObject: |
| 1154 case CallDescriptor::kInterpreterDispatch: |
| 1154 opcode = kArchCallCodeObject | MiscField::encode(flags); | 1155 opcode = kArchCallCodeObject | MiscField::encode(flags); |
| 1155 break; | 1156 break; |
| 1156 case CallDescriptor::kCallJSFunction: | 1157 case CallDescriptor::kCallJSFunction: |
| 1157 opcode = kArchCallJSFunction | MiscField::encode(flags); | 1158 opcode = kArchCallJSFunction | MiscField::encode(flags); |
| 1158 break; | 1159 break; |
| 1159 default: | 1160 default: |
| 1160 UNREACHABLE(); | 1161 UNREACHABLE(); |
| 1161 return; | 1162 return; |
| 1162 } | 1163 } |
| 1163 | 1164 |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1633 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
| 1633 MachineOperatorBuilder::kFloat64RoundTruncate | | 1634 MachineOperatorBuilder::kFloat64RoundTruncate | |
| 1634 MachineOperatorBuilder::kFloat64RoundTiesAway; | 1635 MachineOperatorBuilder::kFloat64RoundTiesAway; |
| 1635 } | 1636 } |
| 1636 return flags; | 1637 return flags; |
| 1637 } | 1638 } |
| 1638 | 1639 |
| 1639 } // namespace compiler | 1640 } // namespace compiler |
| 1640 } // namespace internal | 1641 } // namespace internal |
| 1641 } // namespace v8 | 1642 } // namespace v8 |
| OLD | NEW |