| 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 #undef SYMBOL_ACCESSOR | 619 #undef SYMBOL_ACCESSOR |
| 620 | 620 |
| 621 // Allocates a new SharedFunctionInfo object. | 621 // Allocates a new SharedFunctionInfo object. |
| 622 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 622 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 623 Handle<String> name, int number_of_literals, FunctionKind kind, | 623 Handle<String> name, int number_of_literals, FunctionKind kind, |
| 624 Handle<Code> code, Handle<ScopeInfo> scope_info, | 624 Handle<Code> code, Handle<ScopeInfo> scope_info, |
| 625 Handle<TypeFeedbackVector> feedback_vector); | 625 Handle<TypeFeedbackVector> feedback_vector); |
| 626 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 626 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
| 627 MaybeHandle<Code> code); | 627 MaybeHandle<Code> code); |
| 628 | 628 |
| 629 // Allocate a new type feedback vector | |
| 630 template <typename Spec> | |
| 631 Handle<TypeFeedbackVector> NewTypeFeedbackVector(const Spec* spec); | |
| 632 | |
| 633 // Allocates a new JSMessageObject object. | 629 // Allocates a new JSMessageObject object. |
| 634 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, | 630 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
| 635 Handle<Object> argument, | 631 Handle<Object> argument, |
| 636 int start_position, | 632 int start_position, |
| 637 int end_position, | 633 int end_position, |
| 638 Handle<Object> script, | 634 Handle<Object> script, |
| 639 Handle<Object> stack_frames); | 635 Handle<Object> stack_frames); |
| 640 | 636 |
| 641 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 637 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
| 642 | 638 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 // size, but keeping the original prototype. The receiver must have at least | 713 // size, but keeping the original prototype. The receiver must have at least |
| 718 // the size of the new object. The object is reinitialized and behaves as an | 714 // the size of the new object. The object is reinitialized and behaves as an |
| 719 // object that has been freshly allocated. | 715 // object that has been freshly allocated. |
| 720 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 716 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 721 }; | 717 }; |
| 722 | 718 |
| 723 } // namespace internal | 719 } // namespace internal |
| 724 } // namespace v8 | 720 } // namespace v8 |
| 725 | 721 |
| 726 #endif // V8_FACTORY_H_ | 722 #endif // V8_FACTORY_H_ |
| OLD | NEW |