Index: src/compiler/arm/instruction-selector-arm.cc |
diff --git a/src/compiler/arm/instruction-selector-arm.cc b/src/compiler/arm/instruction-selector-arm.cc |
index a1f9d4eb39f9b5d2a017210e9d96c5df3147a3a5..da8296124cb68cf7227aa2f50c4d82d064ee157e 100644 |
--- a/src/compiler/arm/instruction-selector-arm.cc |
+++ b/src/compiler/arm/instruction-selector-arm.cc |
@@ -285,28 +285,30 @@ static void VisitBinop(InstructionSelector* selector, Node* node, |
void InstructionSelector::VisitLoad(Node* node) { |
- MachineType rep = OpParameter<MachineType>(node); |
+ MachineType rep = RepresentationOf(OpParameter<MachineType>(node)); |
ArmOperandGenerator g(this); |
Node* base = node->InputAt(0); |
Node* index = node->InputAt(1); |
- InstructionOperand* result = rep == kMachineFloat64 |
+ InstructionOperand* result = rep == kRepFloat64 |
? g.DefineAsDoubleRegister(node) |
: g.DefineAsRegister(node); |
ArchOpcode opcode; |
+ // TODO(titzer): signed/unsigned small loads |
switch (rep) { |
- case kMachineFloat64: |
+ case kRepFloat64: |
opcode = kArmFloat64Load; |
break; |
- case kMachineWord8: |
+ case kRepBit: // Fall through. |
+ case kRepWord8: |
opcode = kArmLoadWord8; |
break; |
- case kMachineWord16: |
+ case kRepWord16: |
opcode = kArmLoadWord16; |
break; |
- case kMachineTagged: // Fall through. |
- case kMachineWord32: |
+ case kRepTagged: // Fall through. |
+ case kRepWord32: |
opcode = kArmLoadWord32; |
break; |
default: |
@@ -334,9 +336,9 @@ void InstructionSelector::VisitStore(Node* node) { |
Node* value = node->InputAt(2); |
StoreRepresentation store_rep = OpParameter<StoreRepresentation>(node); |
- MachineType rep = store_rep.rep; |
+ MachineType rep = RepresentationOf(store_rep.machine_type); |
if (store_rep.write_barrier_kind == kFullWriteBarrier) { |
- DCHECK(rep == kMachineTagged); |
+ DCHECK(rep == kRepTagged); |
// TODO(dcarney): refactor RecordWrite function to take temp registers |
// and pass them here instead of using fixed regs |
// TODO(dcarney): handle immediate indices. |
@@ -347,22 +349,23 @@ void InstructionSelector::VisitStore(Node* node) { |
return; |
} |
DCHECK_EQ(kNoWriteBarrier, store_rep.write_barrier_kind); |
- InstructionOperand* val = rep == kMachineFloat64 ? g.UseDoubleRegister(value) |
- : g.UseRegister(value); |
+ InstructionOperand* val = |
+ rep == kRepFloat64 ? g.UseDoubleRegister(value) : g.UseRegister(value); |
ArchOpcode opcode; |
switch (rep) { |
- case kMachineFloat64: |
+ case kRepFloat64: |
opcode = kArmFloat64Store; |
break; |
- case kMachineWord8: |
+ case kRepBit: // Fall through. |
+ case kRepWord8: |
opcode = kArmStoreWord8; |
break; |
- case kMachineWord16: |
+ case kRepWord16: |
opcode = kArmStoreWord16; |
break; |
- case kMachineTagged: // Fall through. |
- case kMachineWord32: |
+ case kRepTagged: // Fall through. |
+ case kRepWord32: |
opcode = kArmStoreWord32; |
break; |
default: |