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

Side by Side Diff: src/factory.h

Issue 32323013: Introduce JSFunction::EnsureHasInitialMap method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | src/factory.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 Handle<AllocationSite> NewAllocationSite(); 255 Handle<AllocationSite> NewAllocationSite();
256 256
257 Handle<Map> NewMap( 257 Handle<Map> NewMap(
258 InstanceType type, 258 InstanceType type,
259 int instance_size, 259 int instance_size,
260 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 260 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
261 261
262 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); 262 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function);
263 263
264 Handle<Map> NewInitialMap(Handle<JSFunction> function);
265
264 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map); 266 Handle<Map> CopyWithPreallocatedFieldDescriptors(Handle<Map> map);
265 267
266 // Copy the map adding more inobject properties if possible without 268 // Copy the map adding more inobject properties if possible without
267 // overflowing the instance size. 269 // overflowing the instance size.
268 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 270 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
269 Handle<Map> CopyMap(Handle<Map> map); 271 Handle<Map> CopyMap(Handle<Map> map);
270 272
271 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, 273 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object,
272 ElementsKind elements_kind); 274 ElementsKind elements_kind);
273 275
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 Handle<FixedArrayBase> elements, 336 Handle<FixedArrayBase> elements,
335 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 337 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
336 PretenureFlag pretenure = NOT_TENURED); 338 PretenureFlag pretenure = NOT_TENURED);
337 339
338 void SetElementsCapacityAndLength(Handle<JSArray> array, 340 void SetElementsCapacityAndLength(Handle<JSArray> array,
339 int capacity, 341 int capacity,
340 int length); 342 int length);
341 343
342 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); 344 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements);
343 345
346 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function);
347
344 Handle<JSArrayBuffer> NewJSArrayBuffer(); 348 Handle<JSArrayBuffer> NewJSArrayBuffer();
345 349
346 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); 350 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type);
347 351
348 Handle<JSDataView> NewJSDataView(); 352 Handle<JSDataView> NewJSDataView();
349 353
350 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 354 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
351 355
352 // Change the type of the argument into a JS object/function and reinitialize. 356 // Change the type of the argument into a JS object/function and reinitialize.
353 void BecomeJSObject(Handle<JSReceiver> object); 357 void BecomeJSObject(Handle<JSReceiver> object);
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 } 678 }
675 679
676 private: 680 private:
677 Isolate* isolate_; 681 Isolate* isolate_;
678 }; 682 };
679 683
680 684
681 } } // namespace v8::internal 685 } } // namespace v8::internal
682 686
683 #endif // V8_FACTORY_H_ 687 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698