| 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 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
| 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
| 7 | 7 |
| 8 #include "src/compiler/instruction.h" | 8 #include "src/compiler/instruction.h" |
| 9 #include "src/compiler/instruction-selector.h" | 9 #include "src/compiler/instruction-selector.h" |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 case IrOpcode::kInt64Constant: | 176 case IrOpcode::kInt64Constant: |
| 177 return Constant(OpParameter<int64_t>(node)); | 177 return Constant(OpParameter<int64_t>(node)); |
| 178 case IrOpcode::kFloat32Constant: | 178 case IrOpcode::kFloat32Constant: |
| 179 return Constant(OpParameter<float>(node)); | 179 return Constant(OpParameter<float>(node)); |
| 180 case IrOpcode::kFloat64Constant: | 180 case IrOpcode::kFloat64Constant: |
| 181 case IrOpcode::kNumberConstant: | 181 case IrOpcode::kNumberConstant: |
| 182 return Constant(OpParameter<double>(node)); | 182 return Constant(OpParameter<double>(node)); |
| 183 case IrOpcode::kExternalConstant: | 183 case IrOpcode::kExternalConstant: |
| 184 return Constant(OpParameter<ExternalReference>(node)); | 184 return Constant(OpParameter<ExternalReference>(node)); |
| 185 case IrOpcode::kHeapConstant: | 185 case IrOpcode::kHeapConstant: |
| 186 return Constant(OpParameter<Unique<HeapObject> >(node).handle()); | 186 return Constant(OpParameter<Handle<HeapObject>>(node)); |
| 187 default: | 187 default: |
| 188 break; | 188 break; |
| 189 } | 189 } |
| 190 UNREACHABLE(); | 190 UNREACHABLE(); |
| 191 return Constant(static_cast<int32_t>(0)); | 191 return Constant(static_cast<int32_t>(0)); |
| 192 } | 192 } |
| 193 | 193 |
| 194 UnallocatedOperand Define(Node* node, UnallocatedOperand operand) { | 194 UnallocatedOperand Define(Node* node, UnallocatedOperand operand) { |
| 195 DCHECK_NOT_NULL(node); | 195 DCHECK_NOT_NULL(node); |
| 196 DCHECK_EQ(operand.virtual_register(), GetVReg(node)); | 196 DCHECK_EQ(operand.virtual_register(), GetVReg(node)); |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 : (frame_state_descriptor->GetTotalSize() + | 376 : (frame_state_descriptor->GetTotalSize() + |
| 377 1); // Include deopt id. | 377 1); // Include deopt id. |
| 378 } | 378 } |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 } // namespace compiler | 381 } // namespace compiler |
| 382 } // namespace internal | 382 } // namespace internal |
| 383 } // namespace v8 | 383 } // namespace v8 |
| 384 | 384 |
| 385 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 385 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
| OLD | NEW |