Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 1df1649d3dca1322f8b34edbd4f2705332d7ee1a..6086645db3c2c08dc3706474d2e224792544a012 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -2764,28 +2764,6 @@ void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
} |
-void FullCodeGenerator::EmitIsSymbol(CallRuntime* expr) { |
- ZoneList<Expression*>* args = expr->arguments(); |
- ASSERT(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); |
- __ CompareObjectType(r0, r1, r2, SYMBOL_TYPE); |
- PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
- Split(eq, if_true, if_false, fall_through); |
- |
- context()->Plug(if_true, if_false); |
-} |
- |
- |
void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
ASSERT(args->length() == 1); |
@@ -4292,6 +4270,10 @@ void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr, |
__ ldrb(r1, FieldMemOperand(r0, Map::kBitFieldOffset)); |
__ tst(r1, Operand(1 << Map::kIsUndetectable)); |
Split(eq, if_true, if_false, fall_through); |
+ } else if (check->Equals(isolate()->heap()->symbol_string())) { |
+ __ JumpIfSmi(r0, if_false); |
+ __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); |
+ Split(eq, if_true, if_false, fall_through); |
} else if (check->Equals(isolate()->heap()->boolean_string())) { |
__ CompareRoot(r0, Heap::kTrueValueRootIndex); |
__ b(eq, if_true); |
@@ -4324,10 +4306,6 @@ void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr, |
__ CompareRoot(r0, Heap::kNullValueRootIndex); |
__ b(eq, if_true); |
} |
- if (FLAG_harmony_symbols) { |
- __ CompareObjectType(r0, r0, r1, SYMBOL_TYPE); |
- __ b(eq, if_true); |
- } |
// Check for JS objects => true. |
__ CompareObjectType(r0, r0, r1, FIRST_NONCALLABLE_SPEC_OBJECT_TYPE); |
__ b(lt, if_false); |