Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index dfacf4c2a7d5c6474dd8528954f84dc7afb477e0..316ddf12915f432a05ef050186b7a68de7960a68 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -3227,40 +3227,6 @@ void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { |
} |
-void LCodeGen::DoLoadElements(LLoadElements* instr) { |
- Register result = ToRegister(instr->result()); |
- Register input = ToRegister(instr->object()); |
- Register scratch = scratch0(); |
- |
- __ ldr(result, FieldMemOperand(input, JSObject::kElementsOffset)); |
- if (FLAG_debug_code) { |
- Label done, fail; |
- __ ldr(scratch, FieldMemOperand(result, HeapObject::kMapOffset)); |
- __ LoadRoot(ip, Heap::kFixedArrayMapRootIndex); |
- __ cmp(scratch, ip); |
- __ b(eq, &done); |
- __ LoadRoot(ip, Heap::kFixedCOWArrayMapRootIndex); |
- __ cmp(scratch, ip); |
- __ b(eq, &done); |
- // |scratch| still contains |input|'s map. |
- __ ldr(scratch, FieldMemOperand(scratch, Map::kBitField2Offset)); |
- __ ubfx(scratch, scratch, Map::kElementsKindShift, |
- Map::kElementsKindBitCount); |
- __ cmp(scratch, Operand(GetInitialFastElementsKind())); |
- __ b(lt, &fail); |
- __ cmp(scratch, Operand(TERMINAL_FAST_ELEMENTS_KIND)); |
- __ b(le, &done); |
- __ cmp(scratch, Operand(FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND)); |
- __ b(lt, &fail); |
- __ cmp(scratch, Operand(LAST_EXTERNAL_ARRAY_ELEMENTS_KIND)); |
- __ b(le, &done); |
- __ bind(&fail); |
- __ Abort("Check for fast or external elements failed."); |
- __ bind(&done); |
- } |
-} |
- |
- |
void LCodeGen::DoLoadExternalArrayPointer( |
LLoadExternalArrayPointer* instr) { |
Register to_reg = ToRegister(instr->result()); |