Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index f7daa257cdc295cc85d6b2fc6d5a8d995185ec2d..c77f676340260b9d8a7302a3b1c4915e7ac8c1af 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -11698,9 +11698,12 @@ void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
return ast_context()->ReturnInstruction(result, expr->id()); |
} else if (op == Token::IN) { |
- Add<HPushArguments>(left, right); |
+ Callable callable = CodeFactory::HasProperty(isolate()); |
+ HValue* stub = Add<HConstant>(callable.code()); |
+ HValue* values[] = {context(), left, right}; |
HInstruction* result = |
- New<HCallRuntime>(Runtime::FunctionForId(Runtime::kHasProperty), 2); |
+ New<HCallWithDescriptor>(stub, 0, callable.descriptor(), |
+ Vector<HValue*>(values, arraysize(values))); |
return ast_context()->ReturnInstruction(result, expr->id()); |
} |