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 | 10 |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 Handle<String> name, int number_of_literals, FunctionKind kind, | 634 Handle<String> name, int number_of_literals, FunctionKind kind, |
635 Handle<Code> code, Handle<ScopeInfo> scope_info, | 635 Handle<Code> code, Handle<ScopeInfo> scope_info, |
636 Handle<TypeFeedbackVector> feedback_vector); | 636 Handle<TypeFeedbackVector> feedback_vector); |
637 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 637 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
638 MaybeHandle<Code> code); | 638 MaybeHandle<Code> code); |
639 | 639 |
640 // Allocate a new type feedback vector | 640 // Allocate a new type feedback vector |
641 template <typename Spec> | 641 template <typename Spec> |
642 Handle<TypeFeedbackVector> NewTypeFeedbackVector(const Spec* spec); | 642 Handle<TypeFeedbackVector> NewTypeFeedbackVector(const Spec* spec); |
643 | 643 |
| 644 Handle<LiteralsArray> NewLiteralsArray(Handle<TypeFeedbackVector> vector, |
| 645 int number_of_literals, |
| 646 PretenureFlag pretenure); |
| 647 |
644 // Allocates a new JSMessageObject object. | 648 // Allocates a new JSMessageObject object. |
645 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 649 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
646 Handle<Object> argument, | 650 Handle<Object> argument, |
647 int start_position, | 651 int start_position, |
648 int end_position, | 652 int end_position, |
649 Handle<Object> script, | 653 Handle<Object> script, |
650 Handle<Object> stack_frames); | 654 Handle<Object> stack_frames); |
651 | 655 |
652 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 656 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
653 | 657 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 731 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
728 // size, but keeping the original prototype. The receiver must have at least | 732 // size, but keeping the original prototype. The receiver must have at least |
729 // the size of the new object. The object is reinitialized and behaves as an | 733 // the size of the new object. The object is reinitialized and behaves as an |
730 // object that has been freshly allocated. | 734 // object that has been freshly allocated. |
731 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 735 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
732 }; | 736 }; |
733 | 737 |
734 } } // namespace v8::internal | 738 } } // namespace v8::internal |
735 | 739 |
736 #endif // V8_FACTORY_H_ | 740 #endif // V8_FACTORY_H_ |
OLD | NEW |