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

Side by Side Diff: src/handles.h

Issue 3146008: Change lazy compilation stub to a builtin.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | « src/compiler.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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 ClearExceptionFlag flag); 346 ClearExceptionFlag flag);
347 347
348 bool CompileLazy(Handle<JSFunction> function, 348 bool CompileLazy(Handle<JSFunction> function,
349 Handle<Object> receiver, 349 Handle<Object> receiver,
350 ClearExceptionFlag flag); 350 ClearExceptionFlag flag);
351 351
352 bool CompileLazyInLoop(Handle<JSFunction> function, 352 bool CompileLazyInLoop(Handle<JSFunction> function,
353 Handle<Object> receiver, 353 Handle<Object> receiver,
354 ClearExceptionFlag flag); 354 ClearExceptionFlag flag);
355 355
356 // Returns the lazy compilation stub for argc arguments.
357 Handle<Code> ComputeLazyCompile(int argc);
358
359 class NoHandleAllocation BASE_EMBEDDED { 356 class NoHandleAllocation BASE_EMBEDDED {
360 public: 357 public:
361 #ifndef DEBUG 358 #ifndef DEBUG
362 NoHandleAllocation() {} 359 NoHandleAllocation() {}
363 ~NoHandleAllocation() {} 360 ~NoHandleAllocation() {}
364 #else 361 #else
365 inline NoHandleAllocation(); 362 inline NoHandleAllocation();
366 inline ~NoHandleAllocation(); 363 inline ~NoHandleAllocation();
367 private: 364 private:
368 int extensions_; 365 int extensions_;
(...skipping 15 matching lines...) Expand all
384 private: 381 private:
385 bool has_been_transformed_; // Tells whether the object has been transformed. 382 bool has_been_transformed_; // Tells whether the object has been transformed.
386 int unused_property_fields_; // Captures the unused number of field. 383 int unused_property_fields_; // Captures the unused number of field.
387 Handle<JSObject> object_; // The object being optimized. 384 Handle<JSObject> object_; // The object being optimized.
388 }; 385 };
389 386
390 387
391 } } // namespace v8::internal 388 } } // namespace v8::internal
392 389
393 #endif // V8_HANDLES_H_ 390 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698