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