| 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 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 | 611 |
| 612 // Allocates a new SharedFunctionInfo object. | 612 // Allocates a new SharedFunctionInfo object. |
| 613 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 613 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 614 Handle<String> name, int number_of_literals, FunctionKind kind, | 614 Handle<String> name, int number_of_literals, FunctionKind kind, |
| 615 Handle<Code> code, Handle<ScopeInfo> scope_info, | 615 Handle<Code> code, Handle<ScopeInfo> scope_info, |
| 616 Handle<TypeFeedbackVector> feedback_vector); | 616 Handle<TypeFeedbackVector> feedback_vector); |
| 617 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 617 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
| 618 MaybeHandle<Code> code); | 618 MaybeHandle<Code> code); |
| 619 | 619 |
| 620 // Allocate a new type feedback vector | 620 // Allocate a new type feedback vector |
| 621 Handle<TypeFeedbackVector> NewTypeFeedbackVector( | 621 template <typename Spec> |
| 622 const FeedbackVectorSpec& spec); | 622 Handle<TypeFeedbackVector> NewTypeFeedbackVector(const Spec* spec); |
| 623 | 623 |
| 624 // Allocates a new JSMessageObject object. | 624 // Allocates a new JSMessageObject object. |
| 625 Handle<JSMessageObject> NewJSMessageObject( | 625 Handle<JSMessageObject> NewJSMessageObject( |
| 626 Handle<String> type, | 626 Handle<String> type, |
| 627 Handle<JSArray> arguments, | 627 Handle<JSArray> arguments, |
| 628 int start_position, | 628 int start_position, |
| 629 int end_position, | 629 int end_position, |
| 630 Handle<Object> script, | 630 Handle<Object> script, |
| 631 Handle<Object> stack_frames); | 631 Handle<Object> stack_frames); |
| 632 | 632 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 707 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 708 // size, but keeping the original prototype. The receiver must have at least | 708 // size, but keeping the original prototype. The receiver must have at least |
| 709 // the size of the new object. The object is reinitialized and behaves as an | 709 // the size of the new object. The object is reinitialized and behaves as an |
| 710 // object that has been freshly allocated. | 710 // object that has been freshly allocated. |
| 711 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 711 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 712 }; | 712 }; |
| 713 | 713 |
| 714 } } // namespace v8::internal | 714 } } // namespace v8::internal |
| 715 | 715 |
| 716 #endif // V8_FACTORY_H_ | 716 #endif // V8_FACTORY_H_ |
| OLD | NEW |