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 551189: Propagate receiver from initial call site to code generator. (Closed)
Patch Set: Created 10 years, 10 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
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 Handle<JSGlobalProxy> global); 306 Handle<JSGlobalProxy> global);
307 307
308 Handle<Object> SetPrototype(Handle<JSFunction> function, 308 Handle<Object> SetPrototype(Handle<JSFunction> function,
309 Handle<Object> prototype); 309 Handle<Object> prototype);
310 310
311 311
312 // Does lazy compilation of the given function. Returns true on success and 312 // Does lazy compilation of the given function. Returns true on success and
313 // false if the compilation resulted in a stack overflow. 313 // false if the compilation resulted in a stack overflow.
314 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; 314 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION };
315 315
316 bool EnsureCompiled(Handle<SharedFunctionInfo> shared,
317 ClearExceptionFlag flag);
318
316 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, 319 bool CompileLazyShared(Handle<SharedFunctionInfo> shared,
317 ClearExceptionFlag flag, 320 ClearExceptionFlag flag);
318 int loop_nesting);
319 321
320 bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag); 322 bool CompileLazy(Handle<JSFunction> function,
321 bool CompileLazyInLoop(Handle<JSFunction> function, ClearExceptionFlag flag); 323 Handle<Object> receiver,
324 ClearExceptionFlag flag);
325
326 bool CompileLazyInLoop(Handle<JSFunction> function,
327 Handle<Object> receiver,
328 ClearExceptionFlag flag);
322 329
323 // Returns the lazy compilation stub for argc arguments. 330 // Returns the lazy compilation stub for argc arguments.
324 Handle<Code> ComputeLazyCompile(int argc); 331 Handle<Code> ComputeLazyCompile(int argc);
325 332
326 // These deal with lazily loaded properties. 333 // These deal with lazily loaded properties.
327 void SetupLazy(Handle<JSObject> obj, 334 void SetupLazy(Handle<JSObject> obj,
328 int index, 335 int index,
329 Handle<Context> compile_context, 336 Handle<Context> compile_context,
330 Handle<Context> function_context); 337 Handle<Context> function_context);
331 void LoadLazy(Handle<JSObject> obj, bool* pending_exception); 338 void LoadLazy(Handle<JSObject> obj, bool* pending_exception);
(...skipping 26 matching lines...) Expand all
358 private: 365 private:
359 bool has_been_transformed_; // Tells whether the object has been transformed. 366 bool has_been_transformed_; // Tells whether the object has been transformed.
360 int unused_property_fields_; // Captures the unused number of field. 367 int unused_property_fields_; // Captures the unused number of field.
361 Handle<JSObject> object_; // The object being optimized. 368 Handle<JSObject> object_; // The object being optimized.
362 }; 369 };
363 370
364 371
365 } } // namespace v8::internal 372 } } // namespace v8::internal
366 373
367 #endif // V8_HANDLES_H_ 374 #endif // V8_HANDLES_H_
OLDNEW
« src/compiler.h ('K') | « src/fast-codegen.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698