| 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 // Allocates an external array of the specified length and type. | 875 // Allocates an external array of the specified length and type. |
| 876 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 876 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 877 // failed. | 877 // failed. |
| 878 // Please note this does not perform a garbage collection. | 878 // Please note this does not perform a garbage collection. |
| 879 MUST_USE_RESULT MaybeObject* AllocateExternalArray( | 879 MUST_USE_RESULT MaybeObject* AllocateExternalArray( |
| 880 int length, | 880 int length, |
| 881 ExternalArrayType array_type, | 881 ExternalArrayType array_type, |
| 882 void* external_pointer, | 882 void* external_pointer, |
| 883 PretenureFlag pretenure); | 883 PretenureFlag pretenure); |
| 884 | 884 |
| 885 // Allocate a symbol. | 885 // Allocate a symbol in old space. |
| 886 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 886 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 887 // failed. | 887 // failed. |
| 888 // Please note this does not perform a garbage collection. | 888 // Please note this does not perform a garbage collection. |
| 889 MUST_USE_RESULT MaybeObject* AllocateSymbol( | 889 MUST_USE_RESULT MaybeObject* AllocateSymbol(); |
| 890 PretenureFlag pretenure = NOT_TENURED); | |
| 891 | 890 |
| 892 // Allocate a tenured JS global property cell. | 891 // Allocate a tenured JS global property cell. |
| 893 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 892 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 894 // failed. | 893 // failed. |
| 895 // Please note this does not perform a garbage collection. | 894 // Please note this does not perform a garbage collection. |
| 896 MUST_USE_RESULT MaybeObject* AllocateJSGlobalPropertyCell(Object* value); | 895 MUST_USE_RESULT MaybeObject* AllocateJSGlobalPropertyCell(Object* value); |
| 897 | 896 |
| 898 // Allocates a fixed array initialized with undefined values | 897 // Allocates a fixed array initialized with undefined values |
| 899 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 898 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 900 // failed. | 899 // failed. |
| (...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3030 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3029 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 3031 | 3030 |
| 3032 private: | 3031 private: |
| 3033 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3032 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3034 }; | 3033 }; |
| 3035 #endif // DEBUG | 3034 #endif // DEBUG |
| 3036 | 3035 |
| 3037 } } // namespace v8::internal | 3036 } } // namespace v8::internal |
| 3038 | 3037 |
| 3039 #endif // V8_HEAP_H_ | 3038 #endif // V8_HEAP_H_ |
| OLD | NEW |