| 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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 MarkAsWord32(NodeProperties::FindProjection(node, 1)); | 1173 MarkAsWord32(NodeProperties::FindProjection(node, 1)); |
| 1174 return VisitWord32PairShl(node); | 1174 return VisitWord32PairShl(node); |
| 1175 case IrOpcode::kWord32PairShr: | 1175 case IrOpcode::kWord32PairShr: |
| 1176 MarkAsWord32(NodeProperties::FindProjection(node, 0)); | 1176 MarkAsWord32(NodeProperties::FindProjection(node, 0)); |
| 1177 MarkAsWord32(NodeProperties::FindProjection(node, 1)); | 1177 MarkAsWord32(NodeProperties::FindProjection(node, 1)); |
| 1178 return VisitWord32PairShr(node); | 1178 return VisitWord32PairShr(node); |
| 1179 case IrOpcode::kWord32PairSar: | 1179 case IrOpcode::kWord32PairSar: |
| 1180 MarkAsWord32(NodeProperties::FindProjection(node, 0)); | 1180 MarkAsWord32(NodeProperties::FindProjection(node, 0)); |
| 1181 MarkAsWord32(NodeProperties::FindProjection(node, 1)); | 1181 MarkAsWord32(NodeProperties::FindProjection(node, 1)); |
| 1182 return VisitWord32PairSar(node); | 1182 return VisitWord32PairSar(node); |
| 1183 case IrOpcode::kAtomicLoad: { | |
| 1184 LoadRepresentation type = LoadRepresentationOf(node->op()); | |
| 1185 MarkAsRepresentation(type.representation(), node); | |
| 1186 return VisitAtomicLoad(node); | |
| 1187 } | |
| 1188 default: | 1183 default: |
| 1189 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", | 1184 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", |
| 1190 node->opcode(), node->op()->mnemonic(), node->id()); | 1185 node->opcode(), node->op()->mnemonic(), node->id()); |
| 1191 break; | 1186 break; |
| 1192 } | 1187 } |
| 1193 } | 1188 } |
| 1194 | 1189 |
| 1195 | 1190 |
| 1196 void InstructionSelector::VisitLoadStackPointer(Node* node) { | 1191 void InstructionSelector::VisitLoadStackPointer(Node* node) { |
| 1197 OperandGenerator g(this); | 1192 OperandGenerator g(this); |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 return new (instruction_zone()) FrameStateDescriptor( | 1802 return new (instruction_zone()) FrameStateDescriptor( |
| 1808 instruction_zone(), state_info.type(), state_info.bailout_id(), | 1803 instruction_zone(), state_info.type(), state_info.bailout_id(), |
| 1809 state_info.state_combine(), parameters, locals, stack, | 1804 state_info.state_combine(), parameters, locals, stack, |
| 1810 state_info.shared_info(), outer_state); | 1805 state_info.shared_info(), outer_state); |
| 1811 } | 1806 } |
| 1812 | 1807 |
| 1813 | 1808 |
| 1814 } // namespace compiler | 1809 } // namespace compiler |
| 1815 } // namespace internal | 1810 } // namespace internal |
| 1816 } // namespace v8 | 1811 } // namespace v8 |
| OLD | NEW |