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 return Handle<Symbol>(bit_cast<Symbol**>( \ | 620 return Handle<Symbol>(bit_cast<Symbol**>( \ |
621 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 621 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
622 } | 622 } |
623 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 623 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
624 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) | 624 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) |
625 #undef SYMBOL_ACCESSOR | 625 #undef SYMBOL_ACCESSOR |
626 | 626 |
627 // Allocates a new SharedFunctionInfo object. | 627 // Allocates a new SharedFunctionInfo object. |
628 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 628 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
629 Handle<String> name, int number_of_literals, FunctionKind kind, | 629 Handle<String> name, int number_of_literals, FunctionKind kind, |
630 Handle<Code> code, Handle<ScopeInfo> scope_info, | 630 Handle<Code> code, Handle<ScopeInfo> scope_info); |
631 Handle<TypeFeedbackVector> feedback_vector); | |
632 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 631 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
633 MaybeHandle<Code> code, | 632 MaybeHandle<Code> code, |
634 bool is_constructor); | 633 bool is_constructor); |
635 | 634 |
636 // Allocates a new JSMessageObject object. | 635 // Allocates a new JSMessageObject object. |
637 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 636 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
638 Handle<Object> argument, | 637 Handle<Object> argument, |
639 int start_position, | 638 int start_position, |
640 int end_position, | 639 int end_position, |
641 Handle<Object> script, | 640 Handle<Object> script, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 704 |
706 // Create a JSArray with no elements and no length. | 705 // Create a JSArray with no elements and no length. |
707 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 706 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
708 PretenureFlag pretenure = NOT_TENURED); | 707 PretenureFlag pretenure = NOT_TENURED); |
709 }; | 708 }; |
710 | 709 |
711 } // namespace internal | 710 } // namespace internal |
712 } // namespace v8 | 711 } // namespace v8 |
713 | 712 |
714 #endif // V8_FACTORY_H_ | 713 #endif // V8_FACTORY_H_ |
OLD | NEW |