| 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/compiler/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
| 10 #include "src/compiler/instruction-selector-impl.h" | 10 #include "src/compiler/instruction-selector-impl.h" |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 namespace { | 346 namespace { |
| 347 | 347 |
| 348 enum class FrameStateInputKind { kAny, kStackSlot }; | 348 enum class FrameStateInputKind { kAny, kStackSlot }; |
| 349 | 349 |
| 350 InstructionOperand OperandForDeopt(OperandGenerator* g, Node* input, | 350 InstructionOperand OperandForDeopt(OperandGenerator* g, Node* input, |
| 351 FrameStateInputKind kind, | 351 FrameStateInputKind kind, |
| 352 MachineRepresentation rep) { | 352 MachineRepresentation rep) { |
| 353 switch (input->opcode()) { | 353 switch (input->opcode()) { |
| 354 case IrOpcode::kInt32Constant: | 354 case IrOpcode::kInt32Constant: |
| 355 case IrOpcode::kInt64Constant: |
| 355 case IrOpcode::kNumberConstant: | 356 case IrOpcode::kNumberConstant: |
| 356 case IrOpcode::kFloat32Constant: | 357 case IrOpcode::kFloat32Constant: |
| 357 case IrOpcode::kFloat64Constant: | 358 case IrOpcode::kFloat64Constant: |
| 358 case IrOpcode::kHeapConstant: | 359 case IrOpcode::kHeapConstant: |
| 359 return g->UseImmediate(input); | 360 return g->UseImmediate(input); |
| 360 case IrOpcode::kObjectState: | 361 case IrOpcode::kObjectState: |
| 361 UNREACHABLE(); | 362 UNREACHABLE(); |
| 362 break; | 363 break; |
| 363 default: | 364 default: |
| 364 if (rep == MachineRepresentation::kNone) { | 365 if (rep == MachineRepresentation::kNone) { |
| (...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 return new (instruction_zone()) FrameStateDescriptor( | 2068 return new (instruction_zone()) FrameStateDescriptor( |
| 2068 instruction_zone(), state_info.type(), state_info.bailout_id(), | 2069 instruction_zone(), state_info.type(), state_info.bailout_id(), |
| 2069 state_info.state_combine(), parameters, locals, stack, | 2070 state_info.state_combine(), parameters, locals, stack, |
| 2070 state_info.shared_info(), outer_state); | 2071 state_info.shared_info(), outer_state); |
| 2071 } | 2072 } |
| 2072 | 2073 |
| 2073 | 2074 |
| 2074 } // namespace compiler | 2075 } // namespace compiler |
| 2075 } // namespace internal | 2076 } // namespace internal |
| 2076 } // namespace v8 | 2077 } // namespace v8 |
| OLD | NEW |