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/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/messages.h" | 9 #include "src/messages.h" |
10 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 620 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
621 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) | 621 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) |
622 #undef SYMBOL_ACCESSOR | 622 #undef SYMBOL_ACCESSOR |
623 | 623 |
624 // Allocates a new SharedFunctionInfo object. | 624 // Allocates a new SharedFunctionInfo object. |
625 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 625 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
626 Handle<String> name, int number_of_literals, FunctionKind kind, | 626 Handle<String> name, int number_of_literals, FunctionKind kind, |
627 Handle<Code> code, Handle<ScopeInfo> scope_info, | 627 Handle<Code> code, Handle<ScopeInfo> scope_info, |
628 Handle<TypeFeedbackVector> feedback_vector); | 628 Handle<TypeFeedbackVector> feedback_vector); |
629 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 629 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
630 MaybeHandle<Code> code); | 630 MaybeHandle<Code> code, |
| 631 bool is_constructor); |
631 | 632 |
632 // Allocates a new JSMessageObject object. | 633 // Allocates a new JSMessageObject object. |
633 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 634 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
634 Handle<Object> argument, | 635 Handle<Object> argument, |
635 int start_position, | 636 int start_position, |
636 int end_position, | 637 int end_position, |
637 Handle<Object> script, | 638 Handle<Object> script, |
638 Handle<Object> stack_frames); | 639 Handle<Object> stack_frames); |
639 | 640 |
640 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 641 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 | 711 |
711 Handle<JSFunction> NewFunction(Handle<Map> map, | 712 Handle<JSFunction> NewFunction(Handle<Map> map, |
712 Handle<String> name, | 713 Handle<String> name, |
713 MaybeHandle<Code> maybe_code); | 714 MaybeHandle<Code> maybe_code); |
714 }; | 715 }; |
715 | 716 |
716 } // namespace internal | 717 } // namespace internal |
717 } // namespace v8 | 718 } // namespace v8 |
718 | 719 |
719 #endif // V8_FACTORY_H_ | 720 #endif // V8_FACTORY_H_ |
OLD | NEW |