Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 0160474833c8b4f9ade5b121d0ab560fa385517e..2fab578b9b34e1b97109dab8c308d996ed401df3 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -396,8 +396,7 @@ HValue* CodeStubGraphBuilder<TypeofStub>::BuildCodeStub() { |
// Is it an undetectable object? |
IfBuilder is_undetectable(this); |
is_undetectable.If<HCompareNumericAndBranch>( |
- bit_field_masked, Add<HConstant>(1 << Map::kIsUndetectable), |
- Token::EQ); |
+ bit_field_masked, graph()->GetConstant0(), Token::NE); |
is_undetectable.Then(); |
{ |
// typeof an undetectable object is 'undefined'. |