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 604 matching lines...) Loading... |
615 | 615 |
616 // Allocates a new SharedFunctionInfo object. | 616 // Allocates a new SharedFunctionInfo object. |
617 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 617 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
618 Handle<String> name, int number_of_literals, FunctionKind kind, | 618 Handle<String> name, int number_of_literals, FunctionKind kind, |
619 Handle<Code> code, Handle<ScopeInfo> scope_info, | 619 Handle<Code> code, Handle<ScopeInfo> scope_info, |
620 Handle<TypeFeedbackVector> feedback_vector); | 620 Handle<TypeFeedbackVector> feedback_vector); |
621 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 621 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
622 MaybeHandle<Code> code); | 622 MaybeHandle<Code> code); |
623 | 623 |
624 // Allocate a new type feedback vector | 624 // Allocate a new type feedback vector |
625 Handle<TypeFeedbackVector> NewTypeFeedbackVector(int slot_count); | 625 Handle<TypeFeedbackVector> NewTypeFeedbackVector(int slot_count, |
| 626 int ic_slot_count); |
626 | 627 |
627 // Allocates a new JSMessageObject object. | 628 // Allocates a new JSMessageObject object. |
628 Handle<JSMessageObject> NewJSMessageObject( | 629 Handle<JSMessageObject> NewJSMessageObject( |
629 Handle<String> type, | 630 Handle<String> type, |
630 Handle<JSArray> arguments, | 631 Handle<JSArray> arguments, |
631 int start_position, | 632 int start_position, |
632 int end_position, | 633 int end_position, |
633 Handle<Object> script, | 634 Handle<Object> script, |
634 Handle<Object> stack_frames); | 635 Handle<Object> stack_frames); |
635 | 636 |
(...skipping 81 matching lines...) Loading... |
717 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 718 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
718 // size, but keeping the original prototype. The receiver must have at least | 719 // size, but keeping the original prototype. The receiver must have at least |
719 // the size of the new object. The object is reinitialized and behaves as an | 720 // the size of the new object. The object is reinitialized and behaves as an |
720 // object that has been freshly allocated. | 721 // object that has been freshly allocated. |
721 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 722 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
722 }; | 723 }; |
723 | 724 |
724 } } // namespace v8::internal | 725 } } // namespace v8::internal |
725 | 726 |
726 #endif // V8_FACTORY_H_ | 727 #endif // V8_FACTORY_H_ |
OLD | NEW |