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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 // Allocates a partial map for bootstrapping. | 766 // Allocates a partial map for bootstrapping. |
767 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, | 767 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, |
768 int instance_size); | 768 int instance_size); |
769 | 769 |
770 // Allocates an empty code cache. | 770 // Allocates an empty code cache. |
771 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); | 771 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); |
772 | 772 |
773 // Allocates an empty PolymorphicCodeCache. | 773 // Allocates an empty PolymorphicCodeCache. |
774 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); | 774 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); |
775 | 775 |
776 // Allocates an AliasedArgumentsEntry. | |
777 MUST_USE_RESULT MaybeObject* AllocateAliasedArgumentsEntry(int slot); | |
778 | |
779 // Clear the Instanceof cache (used when a prototype changes). | 776 // Clear the Instanceof cache (used when a prototype changes). |
780 inline void ClearInstanceofCache(); | 777 inline void ClearInstanceofCache(); |
781 | 778 |
782 // Iterates the whole code space to clear all ICs of the given kind. | 779 // Iterates the whole code space to clear all ICs of the given kind. |
783 void ClearAllICsByKind(Code::Kind kind); | 780 void ClearAllICsByKind(Code::Kind kind); |
784 | 781 |
785 // For use during bootup. | 782 // For use during bootup. |
786 void RepairFreeListsAfterBoot(); | 783 void RepairFreeListsAfterBoot(); |
787 | 784 |
788 // Allocates and fully initializes a String. There are two String | 785 // Allocates and fully initializes a String. There are two String |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 ExternalArrayType array_type, | 897 ExternalArrayType array_type, |
901 PretenureFlag pretenure); | 898 PretenureFlag pretenure); |
902 | 899 |
903 // Allocate a symbol in old space. | 900 // Allocate a symbol in old space. |
904 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 901 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
905 // failed. | 902 // failed. |
906 // Please note this does not perform a garbage collection. | 903 // Please note this does not perform a garbage collection. |
907 MUST_USE_RESULT MaybeObject* AllocateSymbol(); | 904 MUST_USE_RESULT MaybeObject* AllocateSymbol(); |
908 MUST_USE_RESULT MaybeObject* AllocatePrivateSymbol(); | 905 MUST_USE_RESULT MaybeObject* AllocatePrivateSymbol(); |
909 | 906 |
910 // Allocate a tenured AllocationSite. It's payload is null | |
911 MUST_USE_RESULT MaybeObject* AllocateAllocationSite(); | |
912 | |
913 // Allocates a fixed array initialized with undefined values | 907 // Allocates a fixed array initialized with undefined values |
914 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 908 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
915 // failed. | 909 // failed. |
916 // Please note this does not perform a garbage collection. | 910 // Please note this does not perform a garbage collection. |
917 MUST_USE_RESULT MaybeObject* AllocateFixedArray( | 911 MUST_USE_RESULT MaybeObject* AllocateFixedArray( |
918 int length, | 912 int length, |
919 PretenureFlag pretenure = NOT_TENURED); | 913 PretenureFlag pretenure = NOT_TENURED); |
920 | 914 |
921 // Allocates an uninitialized fixed array. It must be filled by the caller. | 915 // Allocates an uninitialized fixed array. It must be filled by the caller. |
922 // | 916 // |
(...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2998 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2992 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2999 | 2993 |
3000 private: | 2994 private: |
3001 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2995 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3002 }; | 2996 }; |
3003 #endif // DEBUG | 2997 #endif // DEBUG |
3004 | 2998 |
3005 } } // namespace v8::internal | 2999 } } // namespace v8::internal |
3006 | 3000 |
3007 #endif // V8_HEAP_H_ | 3001 #endif // V8_HEAP_H_ |
OLD | NEW |