Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index ef6579e433a8166ca519cc571e00a745f613d232..99b4ddd1e884c4bef8ed45725289219bac43682c 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -11394,11 +11394,9 @@ void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
return ast_context()->ReturnInstruction(result, expr->id()); |
} else if (op == Token::IN) { |
- HValue* function = AddLoadJSBuiltin(Context::IN_BUILTIN_INDEX); |
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>(Runtime::FunctionForId(Runtime::kHasProperty), 2); |
return ast_context()->ReturnInstruction(result, expr->id()); |
} |