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

Side by Side Diff: src/handles.h

Issue 360011: Obey the flag --lazy in the toplevel code generator.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/fast-codegen.cc ('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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 302
303 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( 303 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy(
304 Handle<JSFunction> constructor, 304 Handle<JSFunction> constructor,
305 Handle<JSGlobalProxy> global); 305 Handle<JSGlobalProxy> global);
306 306
307 Handle<Object> SetPrototype(Handle<JSFunction> function, 307 Handle<Object> SetPrototype(Handle<JSFunction> function,
308 Handle<Object> prototype); 308 Handle<Object> prototype);
309 309
310 310
311 // Do lazy compilation of the given function. Returns true on success 311 // Does lazy compilation of the given function. Returns true on success and
312 // and false if the compilation resulted in a stack overflow. 312 // false if the compilation resulted in a stack overflow.
313 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; 313 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION };
314 314
315 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, 315 bool CompileLazyShared(Handle<SharedFunctionInfo> shared,
316 ClearExceptionFlag flag, 316 ClearExceptionFlag flag,
317 int loop_nesting); 317 int loop_nesting);
318 318
319 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); 319 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag);
320 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag); 320 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag);
321 321
322 // Returns the lazy compilation stub for argc arguments.
323 Handle<Code> ComputeLazyCompile(int argc);
324
322 // These deal with lazily loaded properties. 325 // These deal with lazily loaded properties.
323 void SetupLazy(Handle<JSObject> obj, 326 void SetupLazy(Handle<JSObject> obj,
324 int index, 327 int index,
325 Handle<Context> compile_context, 328 Handle<Context> compile_context,
326 Handle<Context> function_context); 329 Handle<Context> function_context);
327 void LoadLazy(Handle<JSObject> obj, bool* pending_exception); 330 void LoadLazy(Handle<JSObject> obj, bool* pending_exception);
328 331
329 class NoHandleAllocation BASE_EMBEDDED { 332 class NoHandleAllocation BASE_EMBEDDED {
330 public: 333 public:
331 #ifndef DEBUG 334 #ifndef DEBUG
(...skipping 22 matching lines...) Expand all
354 private: 357 private:
355 bool has_been_transformed_; // Tells whether the object has been transformed. 358 bool has_been_transformed_; // Tells whether the object has been transformed.
356 int unused_property_fields_; // Captures the unused number of field. 359 int unused_property_fields_; // Captures the unused number of field.
357 Handle<JSObject> object_; // The object being optimized. 360 Handle<JSObject> object_; // The object being optimized.
358 }; 361 };
359 362
360 363
361 } } // namespace v8::internal 364 } } // namespace v8::internal
362 365
363 #endif // V8_HANDLES_H_ 366 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/fast-codegen.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698