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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 499 |
500 // Reinitialize an JSGlobalProxy based on a constructor. The object | 500 // Reinitialize an JSGlobalProxy based on a constructor. The object |
501 // must have the same size as objects allocated using the | 501 // must have the same size as objects allocated using the |
502 // constructor. The object is reinitialized and behaves as an | 502 // constructor. The object is reinitialized and behaves as an |
503 // object that has been freshly allocated using the constructor. | 503 // object that has been freshly allocated using the constructor. |
504 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, | 504 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, |
505 Handle<JSFunction> constructor); | 505 Handle<JSFunction> constructor); |
506 | 506 |
507 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); | 507 Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy(); |
508 | 508 |
509 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | |
510 Handle<Object> prototype, | |
511 bool is_strict = false); | |
512 Handle<JSFunction> NewFunction(Handle<String> name); | 509 Handle<JSFunction> NewFunction(Handle<String> name); |
513 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 510 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
514 Handle<Code> code, | 511 Handle<Code> code, |
515 bool is_strict = false); | 512 bool is_strict = false); |
516 | 513 |
517 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 514 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
518 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, | 515 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, |
519 Handle<Context> context, PretenureFlag pretenure = TENURED); | 516 Handle<Context> context, PretenureFlag pretenure = TENURED); |
520 | 517 |
521 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 518 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 | 718 |
722 // Create a JSArray with no elements and no length. | 719 // Create a JSArray with no elements and no length. |
723 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 720 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
724 PretenureFlag pretenure = NOT_TENURED); | 721 PretenureFlag pretenure = NOT_TENURED); |
725 }; | 722 }; |
726 | 723 |
727 } // namespace internal | 724 } // namespace internal |
728 } // namespace v8 | 725 } // namespace v8 |
729 | 726 |
730 #endif // V8_FACTORY_H_ | 727 #endif // V8_FACTORY_H_ |
OLD | NEW |