Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index c774b6d9aea56cd1b7c184546c778986de42f03d..937792142977b616198b5d28094aa4c1d4095ad5 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -3371,39 +3371,6 @@ void FullCodeGenerator::EmitIsNonNegativeSmi(CallRuntime* expr) { |
} |
-void FullCodeGenerator::EmitIsObject(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- DCHECK(args->length() == 1); |
- |
- VisitForAccumulatorValue(args->at(0)); |
- |
- Label materialize_true, materialize_false; |
- Label* if_true = NULL; |
- Label* if_false = NULL; |
- Label* fall_through = NULL; |
- context()->PrepareTest(&materialize_true, &materialize_false, |
- &if_true, &if_false, &fall_through); |
- |
- __ JumpIfSmi(r0, if_false); |
- __ LoadRoot(ip, Heap::kNullValueRootIndex); |
- __ cmp(r0, ip); |
- __ b(eq, if_true); |
- __ ldr(r2, FieldMemOperand(r0, HeapObject::kMapOffset)); |
- // Undetectable objects behave like undefined when tested with typeof. |
- __ ldrb(r1, FieldMemOperand(r2, Map::kBitFieldOffset)); |
- __ tst(r1, Operand(1 << Map::kIsUndetectable)); |
- __ b(ne, if_false); |
- __ ldrb(r1, FieldMemOperand(r2, Map::kInstanceTypeOffset)); |
- __ cmp(r1, Operand(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
- __ b(lt, if_false); |
- __ cmp(r1, Operand(LAST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
- PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- Split(le, if_true, if_false, fall_through); |
- |
- context()->Plug(if_true, if_false); |
-} |
- |
- |
void FullCodeGenerator::EmitIsSpecObject(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 1); |