Revision: 12144 Author: [email protected] Date: Thu Jul 19 03:46:03 2012 Log: Simplify TryInline's signature.
We don't actually need the arguments of the call, just their count. This change
is needed because in an accessor call there is no explicit argument list. Review URL: https://chromiumcodereview.appspot.com/10795029 http://code.google.com/p/v8/source/detail?r=12144 Modified: /branches/bleeding_edge/src/hydrogen.cc /branches/bleeding_edge/src/hydrogen.h ======================================= --- /branches/bleeding_edge/src/hydrogen.cc Mon Jul 16 05:22:46 2012 +++ /branches/bleeding_edge/src/hydrogen.cc Thu Jul 19 03:46:03 2012 @@ -6550,7 +6550,7 @@ bool HGraphBuilder::TryInline(CallKind call_kind, Handle<JSFunction> target, - ZoneList<Expression*>* arguments, + int arguments_count, HValue* receiver, int ast_id, int return_id, @@ -6712,7 +6712,7 @@ HConstant* undefined = graph()->GetConstantUndefined(); HEnvironment* inner_env = environment()->CopyForInlining(target, - arguments->length(), + arguments_count, function, undefined, call_kind, @@ -6748,7 +6748,7 @@ HEnterInlined* enter_inlined = new(zone()) HEnterInlined(target, - arguments->length(), + arguments_count, function, call_kind, function_state()->is_construct(), @@ -6851,7 +6851,7 @@ return TryInline(call_kind, expr->target(), - expr->arguments(), + expr->arguments()->length(), NULL, expr->id(), expr->ReturnId(), @@ -6862,7 +6862,7 @@ bool HGraphBuilder::TryInlineConstruct(CallNew* expr, HValue* receiver) { return TryInline(CALL_AS_FUNCTION, expr->target(), - expr->arguments(), + expr->arguments()->length(), receiver, expr->id(), expr->ReturnId(), ======================================= --- /branches/bleeding_edge/src/hydrogen.h Thu Jul 19 01:43:00 2012 +++ /branches/bleeding_edge/src/hydrogen.h Thu Jul 19 03:46:03 2012 @@ -1032,7 +1032,7 @@ int InliningAstSize(Handle<JSFunction> target); bool TryInline(CallKind call_kind, Handle<JSFunction> target, - ZoneList<Expression*>* arguments, + int arguments_count, HValue* receiver, int ast_id, int return_id, -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
