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