Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index edcac11e3d368d4462a5afc555ee54bd6a47e5f9..ae6a2bd566590ac83c0a45ddf22478e17a6e77e4 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -4992,13 +4992,8 @@ void FullCodeGenerator::EmitLiteralCompareTypeof(Expression* expr, |
Split(eq, if_true, if_false, fall_through); |
} else if (String::Equals(check, factory->string_string())) { |
__ JumpIfSmi(r3, if_false); |
- // Check for undetectable objects => false. |
__ CompareObjectType(r3, r3, r4, FIRST_NONSTRING_TYPE); |
- __ bge(if_false); |
- __ lbz(r4, FieldMemOperand(r3, Map::kBitFieldOffset)); |
- STATIC_ASSERT((1 << Map::kIsUndetectable) < 0x8000); |
- __ andi(r0, r4, Operand(1 << Map::kIsUndetectable)); |
- Split(eq, if_true, if_false, fall_through, cr0); |
+ Split(lt, if_true, if_false, fall_through); |
} else if (String::Equals(check, factory->symbol_string())) { |
__ JumpIfSmi(r3, if_false); |
__ CompareObjectType(r3, r3, r4, SYMBOL_TYPE); |