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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 571 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
572 Handle<Object> prototype, | 572 Handle<Object> prototype, |
573 bool is_strict = false); | 573 bool is_strict = false); |
574 Handle<JSFunction> NewFunction(Handle<String> name); | 574 Handle<JSFunction> NewFunction(Handle<String> name); |
575 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 575 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
576 Handle<Code> code, | 576 Handle<Code> code, |
577 bool is_strict = false); | 577 bool is_strict = false); |
578 | 578 |
579 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 579 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
580 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, | 580 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, |
| 581 Handle<Object> context_or_undefined, Handle<LiteralsArray> literals, |
| 582 PretenureFlag pretenure = TENURED); |
| 583 |
| 584 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 585 Handle<SharedFunctionInfo> function_info, Handle<Context> context, |
| 586 Handle<LiteralsArray> literals, PretenureFlag pretenure = TENURED); |
| 587 |
| 588 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 589 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, |
581 Handle<Object> context_or_undefined, PretenureFlag pretenure = TENURED); | 590 Handle<Object> context_or_undefined, PretenureFlag pretenure = TENURED); |
582 | 591 |
583 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 592 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
584 Handle<SharedFunctionInfo> function_info, Handle<Context> context, | 593 Handle<SharedFunctionInfo> function_info, Handle<Context> context, |
585 PretenureFlag pretenure = TENURED); | 594 PretenureFlag pretenure = TENURED); |
586 | 595 |
587 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 596 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
588 Handle<Object> prototype, InstanceType type, | 597 Handle<Object> prototype, InstanceType type, |
589 int instance_size, | 598 int instance_size, |
590 bool is_strict = false); | 599 bool is_strict = false); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 815 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
807 FunctionMode function_mode); | 816 FunctionMode function_mode); |
808 | 817 |
809 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 818 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
810 }; | 819 }; |
811 | 820 |
812 } // namespace internal | 821 } // namespace internal |
813 } // namespace v8 | 822 } // namespace v8 |
814 | 823 |
815 #endif // V8_FACTORY_H_ | 824 #endif // V8_FACTORY_H_ |
OLD | NEW |