OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
7 | 7 |
8 #include "src/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/messages.h" | 9 #include "src/messages.h" |
10 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 // JS objects are pretenured when allocated by the bootstrapper and | 370 // JS objects are pretenured when allocated by the bootstrapper and |
371 // runtime. | 371 // runtime. |
372 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 372 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
373 PretenureFlag pretenure = NOT_TENURED); | 373 PretenureFlag pretenure = NOT_TENURED); |
374 // JSObject that should have a memento pointing to the allocation site. | 374 // JSObject that should have a memento pointing to the allocation site. |
375 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor, | 375 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor, |
376 Handle<AllocationSite> site); | 376 Handle<AllocationSite> site); |
377 | 377 |
378 // Global objects are pretenured and initialized based on a constructor. | 378 // Global objects are pretenured and initialized based on a constructor. |
379 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 379 Handle<JSGlobalObject> NewJSGlobalObject(Handle<JSFunction> constructor); |
380 | 380 |
381 // JS objects are pretenured when allocated by the bootstrapper and | 381 // JS objects are pretenured when allocated by the bootstrapper and |
382 // runtime. | 382 // runtime. |
383 Handle<JSObject> NewJSObjectFromMap( | 383 Handle<JSObject> NewJSObjectFromMap( |
384 Handle<Map> map, | 384 Handle<Map> map, |
385 PretenureFlag pretenure = NOT_TENURED, | 385 PretenureFlag pretenure = NOT_TENURED, |
386 Handle<AllocationSite> allocation_site = Handle<AllocationSite>::null()); | 386 Handle<AllocationSite> allocation_site = Handle<AllocationSite>::null()); |
387 | 387 |
388 // JS modules are pretenured. | 388 // JS modules are pretenured. |
389 Handle<JSModule> NewJSModule(Handle<Context> context, | 389 Handle<JSModule> NewJSModule(Handle<Context> context, |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 // size, but keeping the original prototype. The receiver must have at least | 715 // size, but keeping the original prototype. The receiver must have at least |
716 // the size of the new object. The object is reinitialized and behaves as an | 716 // the size of the new object. The object is reinitialized and behaves as an |
717 // object that has been freshly allocated. | 717 // object that has been freshly allocated. |
718 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 718 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
719 }; | 719 }; |
720 | 720 |
721 } // namespace internal | 721 } // namespace internal |
722 } // namespace v8 | 722 } // namespace v8 |
723 | 723 |
724 #endif // V8_FACTORY_H_ | 724 #endif // V8_FACTORY_H_ |
OLD | NEW |