Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 61eb7d13c14d4d67e8f3c10e1407497ea9b77e69..c8522ea0bba320abc8344bbbf6ea6a0ceab5768a 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2854,41 +2854,6 @@ void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { |
} |
-void LCodeGen::DoLoadElements(LLoadElements* instr) { |
- Register result = ToRegister(instr->result()); |
- Register input = ToRegister(instr->object()); |
- __ movq(result, FieldOperand(input, JSObject::kElementsOffset)); |
- if (FLAG_debug_code) { |
- Label done, ok, fail; |
- __ CompareRoot(FieldOperand(result, HeapObject::kMapOffset), |
- Heap::kFixedArrayMapRootIndex); |
- __ j(equal, &done, Label::kNear); |
- __ CompareRoot(FieldOperand(result, HeapObject::kMapOffset), |
- Heap::kFixedCOWArrayMapRootIndex); |
- __ j(equal, &done, Label::kNear); |
- Register temp((result.is(rax)) ? rbx : rax); |
- __ push(temp); |
- __ movq(temp, FieldOperand(result, HeapObject::kMapOffset)); |
- __ movzxbq(temp, FieldOperand(temp, Map::kBitField2Offset)); |
- __ and_(temp, Immediate(Map::kElementsKindMask)); |
- __ shr(temp, Immediate(Map::kElementsKindShift)); |
- __ cmpl(temp, Immediate(GetInitialFastElementsKind())); |
- __ j(less, &fail, Label::kNear); |
- __ cmpl(temp, Immediate(TERMINAL_FAST_ELEMENTS_KIND)); |
- __ j(less_equal, &ok, Label::kNear); |
- __ cmpl(temp, Immediate(FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND)); |
- __ j(less, &fail, Label::kNear); |
- __ cmpl(temp, Immediate(LAST_EXTERNAL_ARRAY_ELEMENTS_KIND)); |
- __ j(less_equal, &ok, Label::kNear); |
- __ bind(&fail); |
- __ Abort("Check for fast or external elements failed"); |
- __ bind(&ok); |
- __ pop(temp); |
- __ bind(&done); |
- } |
-} |
- |
- |
void LCodeGen::DoLoadExternalArrayPointer( |
LLoadExternalArrayPointer* instr) { |
Register result = ToRegister(instr->result()); |