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(int slot_count); | 621 Handle<TypeFeedbackVector> NewTypeFeedbackVector(int slot_count, |
| 622 int ic_slot_count); |
622 | 623 |
623 // Allocates a new JSMessageObject object. | 624 // Allocates a new JSMessageObject object. |
624 Handle<JSMessageObject> NewJSMessageObject( | 625 Handle<JSMessageObject> NewJSMessageObject( |
625 Handle<String> type, | 626 Handle<String> type, |
626 Handle<JSArray> arguments, | 627 Handle<JSArray> arguments, |
627 int start_position, | 628 int start_position, |
628 int end_position, | 629 int end_position, |
629 Handle<Object> script, | 630 Handle<Object> script, |
630 Handle<Object> stack_frames); | 631 Handle<Object> stack_frames); |
631 | 632 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 714 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
714 // size, but keeping the original prototype. The receiver must have at least | 715 // size, but keeping the original prototype. The receiver must have at least |
715 // the size of the new object. The object is reinitialized and behaves as an | 716 // the size of the new object. The object is reinitialized and behaves as an |
716 // object that has been freshly allocated. | 717 // object that has been freshly allocated. |
717 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 718 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
718 }; | 719 }; |
719 | 720 |
720 } } // namespace v8::internal | 721 } } // namespace v8::internal |
721 | 722 |
722 #endif // V8_FACTORY_H_ | 723 #endif // V8_FACTORY_H_ |
OLD | NEW |