| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index efc47b6113a11fca96b221613115801159895283..d5868f399f0cc02d72d497fa3309175b250d4c6c 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -11360,10 +11360,11 @@
|
| return ast_context()->ReturnInstruction(result, expr->id());
|
|
|
| } else if (op == Token::IN) {
|
| + HValue* function = AddLoadJSBuiltin(Builtins::IN);
|
| Add<HPushArguments>(left, right);
|
| - HInstruction* result =
|
| - New<HCallRuntime>(isolate()->factory()->empty_string(),
|
| - Runtime::FunctionForId(Runtime::kHasProperty), 2);
|
| + // 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);
|
| return ast_context()->ReturnInstruction(result, expr->id());
|
| }
|
|
|
|
|