| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return Constant(OpParameter<int64_t>(node)); | 212 return Constant(OpParameter<int64_t>(node)); |
| 213 case IrOpcode::kFloat32Constant: | 213 case IrOpcode::kFloat32Constant: |
| 214 return Constant(OpParameter<float>(node)); | 214 return Constant(OpParameter<float>(node)); |
| 215 case IrOpcode::kRelocatableInt32Constant: | 215 case IrOpcode::kRelocatableInt32Constant: |
| 216 case IrOpcode::kRelocatableInt64Constant: | 216 case IrOpcode::kRelocatableInt64Constant: |
| 217 return Constant(OpParameter<RelocatablePtrConstantInfo>(node)); | 217 return Constant(OpParameter<RelocatablePtrConstantInfo>(node)); |
| 218 case IrOpcode::kFloat64Constant: | 218 case IrOpcode::kFloat64Constant: |
| 219 case IrOpcode::kNumberConstant: | 219 case IrOpcode::kNumberConstant: |
| 220 return Constant(OpParameter<double>(node)); | 220 return Constant(OpParameter<double>(node)); |
| 221 case IrOpcode::kExternalConstant: | 221 case IrOpcode::kExternalConstant: |
| 222 case IrOpcode::kComment: |
| 222 return Constant(OpParameter<ExternalReference>(node)); | 223 return Constant(OpParameter<ExternalReference>(node)); |
| 223 case IrOpcode::kHeapConstant: | 224 case IrOpcode::kHeapConstant: |
| 224 return Constant(OpParameter<Handle<HeapObject>>(node)); | 225 return Constant(OpParameter<Handle<HeapObject>>(node)); |
| 225 default: | 226 default: |
| 226 break; | 227 break; |
| 227 } | 228 } |
| 228 UNREACHABLE(); | 229 UNREACHABLE(); |
| 229 return Constant(static_cast<int32_t>(0)); | 230 return Constant(static_cast<int32_t>(0)); |
| 230 } | 231 } |
| 231 | 232 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // or mode_ == kFlags_set. | 384 // or mode_ == kFlags_set. |
| 384 BasicBlock* true_block_; // Only valid if mode_ == kFlags_branch. | 385 BasicBlock* true_block_; // Only valid if mode_ == kFlags_branch. |
| 385 BasicBlock* false_block_; // Only valid if mode_ == kFlags_branch. | 386 BasicBlock* false_block_; // Only valid if mode_ == kFlags_branch. |
| 386 }; | 387 }; |
| 387 | 388 |
| 388 } // namespace compiler | 389 } // namespace compiler |
| 389 } // namespace internal | 390 } // namespace internal |
| 390 } // namespace v8 | 391 } // namespace v8 |
| 391 | 392 |
| 392 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 393 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
| OLD | NEW |