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