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

Side by Side Diff: src/handles.h

Issue 10746: Track loop nesting across function calls when the function... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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 | « src/globals.h ('k') | src/handles.cc » ('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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 Handle<JSFunction> constructor, 187 Handle<JSFunction> constructor,
188 Handle<JSGlobalProxy> global); 188 Handle<JSGlobalProxy> global);
189 189
190 Handle<Object> SetPrototype(Handle<JSFunction> function, 190 Handle<Object> SetPrototype(Handle<JSFunction> function,
191 Handle<Object> prototype); 191 Handle<Object> prototype);
192 192
193 193
194 // Do lazy compilation of the given function. Returns true on success 194 // Do lazy compilation of the given function. Returns true on success
195 // and false if the compilation resulted in a stack overflow. 195 // and false if the compilation resulted in a stack overflow.
196 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; 196 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION };
197
197 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, 198 bool CompileLazyShared(Handle<SharedFunctionInfo> shared,
198 ClearExceptionFlag flag); 199 ClearExceptionFlag flag,
200 int loop_nesting);
201
199 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); 202 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag);
203 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag);
200 204
201 // These deal with lazily loaded properties. 205 // These deal with lazily loaded properties.
202 void SetupLazy(Handle<JSFunction> fun, 206 void SetupLazy(Handle<JSFunction> fun,
203 int index, 207 int index,
204 Handle<Context> compile_context, 208 Handle<Context> compile_context,
205 Handle<Context> function_context); 209 Handle<Context> function_context);
206 void LoadLazy(Handle<JSFunction> fun, bool* pending_exception); 210 void LoadLazy(Handle<JSFunction> fun, bool* pending_exception);
207 211
208 class NoHandleAllocation BASE_EMBEDDED { 212 class NoHandleAllocation BASE_EMBEDDED {
209 public: 213 public:
(...skipping 22 matching lines...) Expand all
232 private: 236 private:
233 bool has_been_transformed_; // Tells whether the object has been transformed. 237 bool has_been_transformed_; // Tells whether the object has been transformed.
234 int unused_property_fields_; // Captures the unused number of field. 238 int unused_property_fields_; // Captures the unused number of field.
235 Handle<JSObject> object_; // The object being optimized. 239 Handle<JSObject> object_; // The object being optimized.
236 }; 240 };
237 241
238 242
239 } } // namespace v8::internal 243 } } // namespace v8::internal
240 244
241 #endif // V8_HANDLES_H_ 245 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698