Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: src/arm/codegen-arm.h

Issue 165528: Refactor SetFunctionInfo to reduce long argument list take 2 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/x64/codegen-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // be called by compiler.cc. 145 // be called by compiler.cc.
146 static Handle<Code> MakeCode(FunctionLiteral* fun, 146 static Handle<Code> MakeCode(FunctionLiteral* fun,
147 Handle<Script> script, 147 Handle<Script> script,
148 bool is_eval); 148 bool is_eval);
149 149
150 #ifdef ENABLE_LOGGING_AND_PROFILING 150 #ifdef ENABLE_LOGGING_AND_PROFILING
151 static bool ShouldGenerateLog(Expression* type); 151 static bool ShouldGenerateLog(Expression* type);
152 #endif 152 #endif
153 153
154 static void SetFunctionInfo(Handle<JSFunction> fun, 154 static void SetFunctionInfo(Handle<JSFunction> fun,
155 int length, 155 FunctionLiteral* lit,
156 int function_token_position,
157 int start_position,
158 int end_position,
159 bool is_expression,
160 bool is_toplevel, 156 bool is_toplevel,
161 Handle<Script> script, 157 Handle<Script> script);
162 Handle<String> inferred_name);
163 158
164 // Accessors 159 // Accessors
165 MacroAssembler* masm() { return masm_; } 160 MacroAssembler* masm() { return masm_; }
166 161
167 VirtualFrame* frame() const { return frame_; } 162 VirtualFrame* frame() const { return frame_; }
168 163
169 bool has_valid_frame() const { return frame_ != NULL; } 164 bool has_valid_frame() const { return frame_ != NULL; }
170 165
171 // Set the virtual frame to be new_frame, with non-frame register 166 // Set the virtual frame to be new_frame, with non-frame register
172 // reference counts given by non_frame_registers. The non-frame 167 // reference counts given by non_frame_registers. The non-frame
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 constant_rhs_); 493 constant_rhs_);
499 } 494 }
500 } 495 }
501 #endif 496 #endif
502 }; 497 };
503 498
504 499
505 } } // namespace v8::internal 500 } } // namespace v8::internal
506 501
507 #endif // V8_ARM_CODEGEN_ARM_H_ 502 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698