OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 int instance_size, | 805 int instance_size, |
806 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); | 806 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); |
807 | 807 |
808 // Allocates a partial map for bootstrapping. | 808 // Allocates a partial map for bootstrapping. |
809 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, | 809 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, |
810 int instance_size); | 810 int instance_size); |
811 | 811 |
812 // Allocates an empty code cache. | 812 // Allocates an empty code cache. |
813 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); | 813 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); |
814 | 814 |
815 // Allocates a serialized scope info. | |
816 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length); | |
817 | |
818 // Allocates an External object for v8's external API. | |
819 MUST_USE_RESULT MaybeObject* AllocateExternal(void* value); | |
820 | |
821 // Allocates an empty PolymorphicCodeCache. | 815 // Allocates an empty PolymorphicCodeCache. |
822 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); | 816 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); |
823 | 817 |
824 // Allocates a pre-tenured empty AccessorPair. | |
825 MUST_USE_RESULT MaybeObject* AllocateAccessorPair(); | |
826 | |
827 // Allocates an empty TypeFeedbackInfo. | |
828 MUST_USE_RESULT MaybeObject* AllocateTypeFeedbackInfo(); | |
829 | |
830 // Allocates an AliasedArgumentsEntry. | 818 // Allocates an AliasedArgumentsEntry. |
831 MUST_USE_RESULT MaybeObject* AllocateAliasedArgumentsEntry(int slot); | 819 MUST_USE_RESULT MaybeObject* AllocateAliasedArgumentsEntry(int slot); |
832 | 820 |
833 // Clear the Instanceof cache (used when a prototype changes). | 821 // Clear the Instanceof cache (used when a prototype changes). |
834 inline void ClearInstanceofCache(); | 822 inline void ClearInstanceofCache(); |
835 | 823 |
836 // Iterates the whole code space to clear all ICs of the given kind. | 824 // Iterates the whole code space to clear all ICs of the given kind. |
837 void ClearAllICsByKind(Code::Kind kind); | 825 void ClearAllICsByKind(Code::Kind kind); |
838 | 826 |
839 // For use during bootup. | 827 // For use during bootup. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 // Please note this does not perform a garbage collection. | 1029 // Please note this does not perform a garbage collection. |
1042 MUST_USE_RESULT MaybeObject* AllocateFixedDoubleArrayWithHoles( | 1030 MUST_USE_RESULT MaybeObject* AllocateFixedDoubleArrayWithHoles( |
1043 int length, | 1031 int length, |
1044 PretenureFlag pretenure = NOT_TENURED); | 1032 PretenureFlag pretenure = NOT_TENURED); |
1045 | 1033 |
1046 // AllocateHashTable is identical to AllocateFixedArray except | 1034 // AllocateHashTable is identical to AllocateFixedArray except |
1047 // that the resulting object has hash_table_map as map. | 1035 // that the resulting object has hash_table_map as map. |
1048 MUST_USE_RESULT MaybeObject* AllocateHashTable( | 1036 MUST_USE_RESULT MaybeObject* AllocateHashTable( |
1049 int length, PretenureFlag pretenure = NOT_TENURED); | 1037 int length, PretenureFlag pretenure = NOT_TENURED); |
1050 | 1038 |
1051 // Allocate a native (but otherwise uninitialized) context. | |
1052 MUST_USE_RESULT MaybeObject* AllocateNativeContext(); | |
1053 | |
1054 // Allocate a global context. | 1039 // Allocate a global context. |
1055 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(JSFunction* function, | 1040 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(JSFunction* function, |
1056 ScopeInfo* scope_info); | 1041 ScopeInfo* scope_info); |
1057 | 1042 |
1058 // Allocate a module context. | |
1059 MUST_USE_RESULT MaybeObject* AllocateModuleContext(ScopeInfo* scope_info); | |
1060 | |
1061 // Allocate a function context. | 1043 // Allocate a function context. |
1062 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, | 1044 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, |
1063 JSFunction* function); | 1045 JSFunction* function); |
1064 | 1046 |
1065 // Allocate a catch context. | 1047 // Allocate a catch context. |
1066 MUST_USE_RESULT MaybeObject* AllocateCatchContext(JSFunction* function, | 1048 MUST_USE_RESULT MaybeObject* AllocateCatchContext(JSFunction* function, |
1067 Context* previous, | 1049 Context* previous, |
1068 String* name, | 1050 String* name, |
1069 Object* thrown_object); | 1051 Object* thrown_object); |
1070 // Allocate a 'with' context. | 1052 // Allocate a 'with' context. |
(...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3138 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3120 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3139 | 3121 |
3140 private: | 3122 private: |
3141 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3123 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3142 }; | 3124 }; |
3143 #endif // DEBUG | 3125 #endif // DEBUG |
3144 | 3126 |
3145 } } // namespace v8::internal | 3127 } } // namespace v8::internal |
3146 | 3128 |
3147 #endif // V8_HEAP_H_ | 3129 #endif // V8_HEAP_H_ |
OLD | NEW |