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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 622 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
623 } | 623 } |
624 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 624 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
625 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) | 625 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) |
626 #undef SYMBOL_ACCESSOR | 626 #undef SYMBOL_ACCESSOR |
627 | 627 |
628 // Allocates a new SharedFunctionInfo object. | 628 // Allocates a new SharedFunctionInfo object. |
629 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 629 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
630 Handle<String> name, int number_of_literals, FunctionKind kind, | 630 Handle<String> name, int number_of_literals, FunctionKind kind, |
631 Handle<Code> code, Handle<ScopeInfo> scope_info, | 631 Handle<Code> code, Handle<ScopeInfo> scope_info, |
632 Handle<TypeFeedbackVector> feedback_vector); | 632 Handle<TypeFeedbackMetadata> feedback_metadata); |
633 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 633 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
634 MaybeHandle<Code> code, | 634 MaybeHandle<Code> code, |
635 bool is_constructor); | 635 bool is_constructor); |
636 | 636 |
637 // Allocates a new JSMessageObject object. | 637 // Allocates a new JSMessageObject object. |
638 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 638 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
639 Handle<Object> argument, | 639 Handle<Object> argument, |
640 int start_position, | 640 int start_position, |
641 int end_position, | 641 int end_position, |
642 Handle<Object> script, | 642 Handle<Object> script, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 Handle<JSFunction> NewFunction(Handle<Map> map, | 703 Handle<JSFunction> NewFunction(Handle<Map> map, |
704 Handle<SharedFunctionInfo> info, | 704 Handle<SharedFunctionInfo> info, |
705 Handle<Context> context, | 705 Handle<Context> context, |
706 PretenureFlag pretenure = TENURED); | 706 PretenureFlag pretenure = TENURED); |
707 }; | 707 }; |
708 | 708 |
709 } // namespace internal | 709 } // namespace internal |
710 } // namespace v8 | 710 } // namespace v8 |
711 | 711 |
712 #endif // V8_FACTORY_H_ | 712 #endif // V8_FACTORY_H_ |
OLD | NEW |