Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 6d421dcab81982940a54989f3786ea69db0d2377..e80c6aecede77aa0e04a4b468ea42792b2d6b459 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12314,10 +12314,7 @@ void HOptimizedGraphBuilder::GenerateIsJSProxy(CallRuntime* call) { |
HValue* instance_type = |
Add<HLoadNamedField>(map, nullptr, HObjectAccess::ForMapInstanceType()); |
if_proxy.If<HCompareNumericAndBranch>( |
- instance_type, Add<HConstant>(FIRST_JS_PROXY_TYPE), Token::GTE); |
- if_proxy.And(); |
- if_proxy.If<HCompareNumericAndBranch>( |
- instance_type, Add<HConstant>(LAST_JS_PROXY_TYPE), Token::LTE); |
+ instance_type, Add<HConstant>(JS_PROXY_TYPE), Token::EQ); |
if_proxy.CaptureContinuation(&continuation); |
return ast_context()->ReturnContinuation(&continuation, call->id()); |