From 7b05678316754f06082f451583a0eb4980dd4e3e Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Fri, 14 Aug 2009 11:05:42 +0000 Subject: [PATCH] Refactor SetFunctionInfo to reduce long argument list. Review URL: http://codereview.chromium.org/165527 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2687 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/codegen.cc | 29 ++++++++++------------------- src/compiler.cc | 7 ++----- src/ia32/codegen-ia32.h | 9 ++------- 3 files changed, 14 insertions(+), 31 deletions(-) diff --git a/src/codegen.cc b/src/codegen.cc index 7a4bb12ed0..c80d906b34 100644 --- a/src/codegen.cc +++ b/src/codegen.cc @@ -243,23 +243,18 @@ bool CodeGenerator::ShouldGenerateLog(Expression* type) { // in the full script source. When counting characters in the script source the // the first character is number 0 (not 1). void CodeGenerator::SetFunctionInfo(Handle fun, - int length, - int function_token_position, - int start_position, - int end_position, - bool is_expression, + FunctionLiteral* lit, bool is_toplevel, - Handle