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