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

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

Issue 62146: Add name inference for anonymous functions to facilitate debugging and profiling of JS code. (Closed)
Patch Set: updated v8_base_arm project Created 11 years, 8 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
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-ia32.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 static bool ShouldGenerateLog(Expression* type); 153 static bool ShouldGenerateLog(Expression* type);
154 #endif 154 #endif
155 155
156 static void SetFunctionInfo(Handle<JSFunction> fun, 156 static void SetFunctionInfo(Handle<JSFunction> fun,
157 int length, 157 int length,
158 int function_token_position, 158 int function_token_position,
159 int start_position, 159 int start_position,
160 int end_position, 160 int end_position,
161 bool is_expression, 161 bool is_expression,
162 bool is_toplevel, 162 bool is_toplevel,
163 Handle<Script> script); 163 Handle<Script> script,
164 Handle<String> inferred_name);
164 165
165 // Accessors 166 // Accessors
166 MacroAssembler* masm() { return masm_; } 167 MacroAssembler* masm() { return masm_; }
167 168
168 VirtualFrame* frame() const { return frame_; } 169 VirtualFrame* frame() const { return frame_; }
169 170
170 bool has_valid_frame() const { return frame_ != NULL; } 171 bool has_valid_frame() const { return frame_ != NULL; }
171 172
172 // Set the virtual frame to be new_frame, with non-frame register 173 // Set the virtual frame to be new_frame, with non-frame register
173 // reference counts given by non_frame_registers. The non-frame 174 // reference counts given by non_frame_registers. The non-frame
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 friend class JumpTarget; 437 friend class JumpTarget;
437 friend class Reference; 438 friend class Reference;
438 439
439 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 440 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
440 }; 441 };
441 442
442 443
443 } } // namespace v8::internal 444 } } // namespace v8::internal
444 445
445 #endif // V8_CODEGEN_ARM_H_ 446 #endif // V8_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698