Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 8b3fc947f0112e6c886af76c0d61d297353083f5..b18bac38388277c4cc7816c4a05768d03ceab6bb 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -4199,8 +4199,7 @@ void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
__ mov(r0, Operand(instr->arity())); |
__ mov(r2, Operand(instr->hydrogen()->property_cell())); |
- Object* cell_value = instr->hydrogen()->property_cell()->value(); |
- ElementsKind kind = static_cast<ElementsKind>(Smi::cast(cell_value)->value()); |
+ ElementsKind kind = instr->hydrogen()->elements_kind(); |
if (instr->arity() == 0) { |
ArrayNoArgumentConstructorStub stub(kind); |
CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); |