| 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 592 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
| 593 Handle<Object> prototype, | 593 Handle<Object> prototype, |
| 594 bool is_strict = false); | 594 bool is_strict = false); |
| 595 Handle<JSFunction> NewFunction(Handle<String> name); | 595 Handle<JSFunction> NewFunction(Handle<String> name); |
| 596 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 596 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
| 597 Handle<Code> code, | 597 Handle<Code> code, |
| 598 bool is_strict = false); | 598 bool is_strict = false); |
| 599 | 599 |
| 600 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 600 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 601 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, | 601 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, |
| 602 Handle<Object> context_or_undefined, Handle<LiteralsArray> literals, | 602 Handle<Object> context_or_undefined, Handle<TypeFeedbackVector> vector, |
| 603 PretenureFlag pretenure = TENURED); | 603 PretenureFlag pretenure = TENURED); |
| 604 | 604 |
| 605 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 605 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 606 Handle<SharedFunctionInfo> function_info, Handle<Context> context, | 606 Handle<SharedFunctionInfo> function_info, Handle<Context> context, |
| 607 Handle<LiteralsArray> literals, PretenureFlag pretenure = TENURED); | 607 Handle<TypeFeedbackVector> vector, PretenureFlag pretenure = TENURED); |
| 608 | 608 |
| 609 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 609 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 610 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, | 610 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, |
| 611 Handle<Object> context_or_undefined, PretenureFlag pretenure = TENURED); | 611 Handle<Object> context_or_undefined, PretenureFlag pretenure = TENURED); |
| 612 | 612 |
| 613 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 613 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 614 Handle<SharedFunctionInfo> function_info, Handle<Context> context, | 614 Handle<SharedFunctionInfo> function_info, Handle<Context> context, |
| 615 PretenureFlag pretenure = TENURED); | 615 PretenureFlag pretenure = TENURED); |
| 616 | 616 |
| 617 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 617 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 837 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 838 FunctionMode function_mode); | 838 FunctionMode function_mode); |
| 839 | 839 |
| 840 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 840 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 841 }; | 841 }; |
| 842 | 842 |
| 843 } // namespace internal | 843 } // namespace internal |
| 844 } // namespace v8 | 844 } // namespace v8 |
| 845 | 845 |
| 846 #endif // V8_FACTORY_H_ | 846 #endif // V8_FACTORY_H_ |
| OLD | NEW |