Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 363fe82fbc8c9eed1772a9f24762a457660b4ef1..c2b9adc0df29c0a1efa22e55145a5f7995432409 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5318,9 +5318,9 @@ void HGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
case Token::EQ: |
case Token::EQ_STRICT: { |
AddInstruction(new(zone()) HCheckNonSmi(left)); |
- AddInstruction(HCheckInstanceType::NewIsJSObjectOrJSFunction(left)); |
+ AddInstruction(HCheckInstanceType::NewIsSpecObject(left)); |
AddInstruction(new(zone()) HCheckNonSmi(right)); |
- AddInstruction(HCheckInstanceType::NewIsJSObjectOrJSFunction(right)); |
+ AddInstruction(HCheckInstanceType::NewIsSpecObject(right)); |
instr = new(zone()) HCompareJSObjectEq(left, right); |
break; |
} |
@@ -5398,7 +5398,9 @@ void HGraphBuilder::GenerateIsSpecObject(CallRuntime* call) { |
CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
HValue* value = Pop(); |
HHasInstanceType* result = |
- new(zone()) HHasInstanceType(value, FIRST_JS_OBJECT_TYPE, LAST_TYPE); |
+ new(zone()) HHasInstanceType(value, |
+ FIRST_SPEC_OBJECT_TYPE, |
+ LAST_SPEC_OBJECT_TYPE); |
ast_context()->ReturnInstruction(result, call->id()); |
} |