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

Side by Side Diff: src/handles.h

Issue 19594002: Handlify JSFunction::SetPrototype method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Toon Verwaest. Created 7 years, 5 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/factory.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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<FixedArray> second); 306 Handle<FixedArray> second);
307 307
308 Handle<String> SubString(Handle<String> str, 308 Handle<String> SubString(Handle<String> str,
309 int start, 309 int start,
310 int end, 310 int end,
311 PretenureFlag pretenure = NOT_TENURED); 311 PretenureFlag pretenure = NOT_TENURED);
312 312
313 // Sets the expected number of properties for the function's instances. 313 // Sets the expected number of properties for the function's instances.
314 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); 314 void SetExpectedNofProperties(Handle<JSFunction> func, int nof);
315 315
316 // Sets the prototype property for a function instance.
317 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value);
318
319 // Sets the expected number of properties based on estimate from compiler. 316 // Sets the expected number of properties based on estimate from compiler.
320 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, 317 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
321 int estimate); 318 int estimate);
322 319
323 320
324 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( 321 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy(
325 Handle<JSFunction> constructor, 322 Handle<JSFunction> constructor,
326 Handle<JSGlobalProxy> global); 323 Handle<JSGlobalProxy> global);
327 324
328 Handle<Object> SetPrototype(Handle<JSFunction> function, 325 Handle<Object> SetPrototype(Handle<JSFunction> function,
(...skipping 23 matching lines...) Expand all
352 private: 349 private:
353 Isolate* isolate_; 350 Isolate* isolate_;
354 Object** limit_; 351 Object** limit_;
355 int level_; 352 int level_;
356 #endif 353 #endif
357 }; 354 };
358 355
359 } } // namespace v8::internal 356 } } // namespace v8::internal
360 357
361 #endif // V8_HANDLES_H_ 358 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698