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/compiler-source-position-table.h" | 10 #include "src/compiler/compiler-source-position-table.h" |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 MarkAsRepresentation(type.representation(), node); | 1453 MarkAsRepresentation(type.representation(), node); |
1454 return VisitAtomicLoad(node); | 1454 return VisitAtomicLoad(node); |
1455 } | 1455 } |
1456 case IrOpcode::kAtomicStore: | 1456 case IrOpcode::kAtomicStore: |
1457 return VisitAtomicStore(node); | 1457 return VisitAtomicStore(node); |
1458 case IrOpcode::kAtomicExchange: { | 1458 case IrOpcode::kAtomicExchange: { |
1459 MachineType type = AtomicExchangeRepresentationOf(node->op()); | 1459 MachineType type = AtomicExchangeRepresentationOf(node->op()); |
1460 MarkAsRepresentation(type.representation(), node); | 1460 MarkAsRepresentation(type.representation(), node); |
1461 return VisitAtomicExchange(node); | 1461 return VisitAtomicExchange(node); |
1462 } | 1462 } |
| 1463 case IrOpcode::kAtomicCompareExchange: { |
| 1464 MachineType type = AtomicCompareExchangeRepresentationOf(node->op()); |
| 1465 MarkAsRepresentation(type.representation(), node); |
| 1466 return VisitAtomicCompareExchange(node); |
| 1467 } |
1463 case IrOpcode::kProtectedLoad: { | 1468 case IrOpcode::kProtectedLoad: { |
1464 LoadRepresentation type = LoadRepresentationOf(node->op()); | 1469 LoadRepresentation type = LoadRepresentationOf(node->op()); |
1465 MarkAsRepresentation(type.representation(), node); | 1470 MarkAsRepresentation(type.representation(), node); |
1466 return VisitProtectedLoad(node); | 1471 return VisitProtectedLoad(node); |
1467 } | 1472 } |
1468 case IrOpcode::kUnsafePointerAdd: | 1473 case IrOpcode::kUnsafePointerAdd: |
1469 MarkAsRepresentation(MachineType::PointerRepresentation(), node); | 1474 MarkAsRepresentation(MachineType::PointerRepresentation(), node); |
1470 return VisitUnsafePointerAdd(node); | 1475 return VisitUnsafePointerAdd(node); |
1471 case IrOpcode::kFloat32x4Splat: | 1476 case IrOpcode::kFloat32x4Splat: |
1472 return MarkAsSimd128(node), VisitFloat32x4Splat(node); | 1477 return MarkAsSimd128(node), VisitFloat32x4Splat(node); |
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2727 return new (instruction_zone()) FrameStateDescriptor( | 2732 return new (instruction_zone()) FrameStateDescriptor( |
2728 instruction_zone(), state_info.type(), state_info.bailout_id(), | 2733 instruction_zone(), state_info.type(), state_info.bailout_id(), |
2729 state_info.state_combine(), parameters, locals, stack, | 2734 state_info.state_combine(), parameters, locals, stack, |
2730 state_info.shared_info(), outer_state); | 2735 state_info.shared_info(), outer_state); |
2731 } | 2736 } |
2732 | 2737 |
2733 | 2738 |
2734 } // namespace compiler | 2739 } // namespace compiler |
2735 } // namespace internal | 2740 } // namespace internal |
2736 } // namespace v8 | 2741 } // namespace v8 |
OLD | NEW |