Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index d5868f399f0cc02d72d497fa3309175b250d4c6c..efc47b6113a11fca96b221613115801159895283 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -11360,11 +11360,10 @@ void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
return ast_context()->ReturnInstruction(result, expr->id()); |
} else if (op == Token::IN) { |
- HValue* function = AddLoadJSBuiltin(Builtins::IN); |
Add<HPushArguments>(left, right); |
- // TODO(olivf) InvokeFunction produces a check for the parameter count, |
- // even though we are certain to pass the correct number of arguments here. |
- HInstruction* result = New<HInvokeFunction>(function, 2); |
+ HInstruction* result = |
+ New<HCallRuntime>(isolate()->factory()->empty_string(), |
+ Runtime::FunctionForId(Runtime::kHasProperty), 2); |
return ast_context()->ReturnInstruction(result, expr->id()); |
} |