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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 // failed. | 932 // failed. |
933 // Please note this does not perform a garbage collection. | 933 // Please note this does not perform a garbage collection. |
934 MUST_USE_RESULT MaybeObject* AllocateSymbol(); | 934 MUST_USE_RESULT MaybeObject* AllocateSymbol(); |
935 | 935 |
936 // Allocate a tenured JS global property cell. | 936 // Allocate a tenured JS global property cell. |
937 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 937 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
938 // failed. | 938 // failed. |
939 // Please note this does not perform a garbage collection. | 939 // Please note this does not perform a garbage collection. |
940 MUST_USE_RESULT MaybeObject* AllocateJSGlobalPropertyCell(Object* value); | 940 MUST_USE_RESULT MaybeObject* AllocateJSGlobalPropertyCell(Object* value); |
941 | 941 |
| 942 // Allocate Box. |
| 943 MUST_USE_RESULT MaybeObject* AllocateBox(Object* value, |
| 944 PretenureFlag pretenure); |
| 945 |
942 // Allocates a fixed array initialized with undefined values | 946 // Allocates a fixed array initialized with undefined values |
943 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 947 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
944 // failed. | 948 // failed. |
945 // Please note this does not perform a garbage collection. | 949 // Please note this does not perform a garbage collection. |
946 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length, | 950 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length, |
947 PretenureFlag pretenure); | 951 PretenureFlag pretenure); |
948 // Allocates a fixed array initialized with undefined values | 952 // Allocates a fixed array initialized with undefined values |
949 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length); | 953 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length); |
950 | 954 |
951 // Allocates an uninitialized fixed array. It must be filled by the caller. | 955 // Allocates an uninitialized fixed array. It must be filled by the caller. |
(...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3043 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3047 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3044 | 3048 |
3045 private: | 3049 private: |
3046 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3050 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3047 }; | 3051 }; |
3048 #endif // DEBUG | 3052 #endif // DEBUG |
3049 | 3053 |
3050 } } // namespace v8::internal | 3054 } } // namespace v8::internal |
3051 | 3055 |
3052 #endif // V8_HEAP_H_ | 3056 #endif // V8_HEAP_H_ |
OLD | NEW |