| 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/globals.h" | 8 #include "src/globals.h" |
| 9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
| 10 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 468 |
| 469 Handle<JSWeakMap> NewJSWeakMap(); | 469 Handle<JSWeakMap> NewJSWeakMap(); |
| 470 | 470 |
| 471 Handle<JSObject> NewArgumentsObject(Handle<JSFunction> callee, int length); | 471 Handle<JSObject> NewArgumentsObject(Handle<JSFunction> callee, int length); |
| 472 | 472 |
| 473 // JS objects are pretenured when allocated by the bootstrapper and | 473 // JS objects are pretenured when allocated by the bootstrapper and |
| 474 // runtime. | 474 // runtime. |
| 475 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 475 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
| 476 PretenureFlag pretenure = NOT_TENURED); | 476 PretenureFlag pretenure = NOT_TENURED); |
| 477 // JSObject without a prototype. | 477 // JSObject without a prototype. |
| 478 Handle<JSObject> NewJSObjectWithNullProto(); | 478 Handle<JSObject> NewJSObjectWithNullProto( |
| 479 PretenureFlag pretenure = NOT_TENURED); |
| 479 | 480 |
| 480 // Global objects are pretenured and initialized based on a constructor. | 481 // Global objects are pretenured and initialized based on a constructor. |
| 481 Handle<JSGlobalObject> NewJSGlobalObject(Handle<JSFunction> constructor); | 482 Handle<JSGlobalObject> NewJSGlobalObject(Handle<JSFunction> constructor); |
| 482 | 483 |
| 483 // JS objects are pretenured when allocated by the bootstrapper and | 484 // JS objects are pretenured when allocated by the bootstrapper and |
| 484 // runtime. | 485 // runtime. |
| 485 Handle<JSObject> NewJSObjectFromMap( | 486 Handle<JSObject> NewJSObjectFromMap( |
| 486 Handle<Map> map, | 487 Handle<Map> map, |
| 487 PretenureFlag pretenure = NOT_TENURED, | 488 PretenureFlag pretenure = NOT_TENURED, |
| 488 Handle<AllocationSite> allocation_site = Handle<AllocationSite>::null()); | 489 Handle<AllocationSite> allocation_site = Handle<AllocationSite>::null()); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 836 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 836 FunctionMode function_mode); | 837 FunctionMode function_mode); |
| 837 | 838 |
| 838 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 839 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 839 }; | 840 }; |
| 840 | 841 |
| 841 } // namespace internal | 842 } // namespace internal |
| 842 } // namespace v8 | 843 } // namespace v8 |
| 843 | 844 |
| 844 #endif // V8_FACTORY_H_ | 845 #endif // V8_FACTORY_H_ |
| OLD | NEW |