Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index e1cf7d808035bc4ac41a6187c2fdda76c7f60cc9..2778f1173b28dc33ad5eba7ed7c9612ffd40bc46 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -2079,7 +2079,7 @@ HValue* HGraphBuilder::BuildToObject(HValue* receiver) { |
// First check whether {receiver} is already a spec object (fast case). |
IfBuilder receiver_is_not_spec_object(this); |
receiver_is_not_spec_object.If<HCompareNumericAndBranch>( |
- receiver_instance_type, Add<HConstant>(FIRST_SPEC_OBJECT_TYPE), |
+ receiver_instance_type, Add<HConstant>(FIRST_JS_RECEIVER_TYPE), |
Token::LT); |
receiver_is_not_spec_object.Then(); |
{ |
@@ -4963,8 +4963,8 @@ void HOptimizedGraphBuilder::VisitReturnStatement(ReturnStatement* stmt) { |
HValue* receiver = environment()->arguments_environment()->Lookup(0); |
HHasInstanceTypeAndBranch* typecheck = |
New<HHasInstanceTypeAndBranch>(return_value, |
- FIRST_SPEC_OBJECT_TYPE, |
- LAST_SPEC_OBJECT_TYPE); |
+ FIRST_JS_RECEIVER_TYPE, |
+ LAST_JS_RECEIVER_TYPE); |
HBasicBlock* if_spec_object = graph()->CreateBasicBlock(); |
HBasicBlock* not_spec_object = graph()->CreateBasicBlock(); |
typecheck->SetSuccessorAt(0, if_spec_object); |
@@ -12143,8 +12143,8 @@ void HOptimizedGraphBuilder::GenerateIsSpecObject(CallRuntime* call) { |
HValue* value = Pop(); |
HHasInstanceTypeAndBranch* result = |
New<HHasInstanceTypeAndBranch>(value, |
- FIRST_SPEC_OBJECT_TYPE, |
- LAST_SPEC_OBJECT_TYPE); |
+ FIRST_JS_RECEIVER_TYPE, |
+ LAST_JS_RECEIVER_TYPE); |
return ast_context()->ReturnControl(result, call->id()); |
} |