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 3198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3209 static void RemoveGCPrologueCallback(GCPrologueCallback callback); | 3209 static void RemoveGCPrologueCallback(GCPrologueCallback callback); |
3210 | 3210 |
3211 /** | 3211 /** |
3212 * The function is deprecated. Please use AddGCPrologueCallback instead. | 3212 * The function is deprecated. Please use AddGCPrologueCallback instead. |
3213 * Enables the host application to receive a notification before a | 3213 * Enables the host application to receive a notification before a |
3214 * garbage collection. Allocations are not allowed in the | 3214 * garbage collection. Allocations are not allowed in the |
3215 * callback function, you therefore cannot manipulate objects (set | 3215 * callback function, you therefore cannot manipulate objects (set |
3216 * or delete properties for example) since it is possible such | 3216 * or delete properties for example) since it is possible such |
3217 * operations will result in the allocation of objects. | 3217 * operations will result in the allocation of objects. |
3218 */ | 3218 */ |
3219 static void SetGlobalGCPrologueCallback(GCCallback); | 3219 V8_DEPRECATED(static void SetGlobalGCPrologueCallback(GCCallback)); |
3220 | 3220 |
3221 /** | 3221 /** |
3222 * Enables the host application to receive a notification after a | 3222 * Enables the host application to receive a notification after a |
3223 * garbage collection. Allocations are not allowed in the | 3223 * garbage collection. Allocations are not allowed in the |
3224 * callback function, you therefore cannot manipulate objects (set | 3224 * callback function, you therefore cannot manipulate objects (set |
3225 * or delete properties for example) since it is possible such | 3225 * or delete properties for example) since it is possible such |
3226 * operations will result in the allocation of objects. It is possible | 3226 * operations will result in the allocation of objects. It is possible |
3227 * to specify the GCType filter for your callback. But it is not possible to | 3227 * to specify the GCType filter for your callback. But it is not possible to |
3228 * register the same callback function two times with different | 3228 * register the same callback function two times with different |
3229 * GCType filters. | 3229 * GCType filters. |
3230 */ | 3230 */ |
3231 static void AddGCEpilogueCallback( | 3231 static void AddGCEpilogueCallback( |
3232 GCEpilogueCallback callback, GCType gc_type_filter = kGCTypeAll); | 3232 GCEpilogueCallback callback, GCType gc_type_filter = kGCTypeAll); |
3233 | 3233 |
3234 /** | 3234 /** |
3235 * This function removes callback which was installed by | 3235 * This function removes callback which was installed by |
3236 * AddGCEpilogueCallback function. | 3236 * AddGCEpilogueCallback function. |
3237 */ | 3237 */ |
3238 static void RemoveGCEpilogueCallback(GCEpilogueCallback callback); | 3238 static void RemoveGCEpilogueCallback(GCEpilogueCallback callback); |
3239 | 3239 |
3240 /** | 3240 /** |
3241 * The function is deprecated. Please use AddGCEpilogueCallback instead. | 3241 * The function is deprecated. Please use AddGCEpilogueCallback instead. |
3242 * Enables the host application to receive a notification after a | 3242 * Enables the host application to receive a notification after a |
3243 * major garbage collection. Allocations are not allowed in the | 3243 * major garbage collection. Allocations are not allowed in the |
3244 * callback function, you therefore cannot manipulate objects (set | 3244 * callback function, you therefore cannot manipulate objects (set |
3245 * or delete properties for example) since it is possible such | 3245 * or delete properties for example) since it is possible such |
3246 * operations will result in the allocation of objects. | 3246 * operations will result in the allocation of objects. |
3247 */ | 3247 */ |
3248 static void SetGlobalGCEpilogueCallback(GCCallback); | 3248 V8_DEPRECATED(static void SetGlobalGCEpilogueCallback(GCCallback)); |
3249 | 3249 |
3250 /** | 3250 /** |
3251 * Enables the host application to provide a mechanism to be notified | 3251 * Enables the host application to provide a mechanism to be notified |
3252 * and perform custom logging when V8 Allocates Executable Memory. | 3252 * and perform custom logging when V8 Allocates Executable Memory. |
3253 */ | 3253 */ |
3254 static void AddMemoryAllocationCallback(MemoryAllocationCallback callback, | 3254 static void AddMemoryAllocationCallback(MemoryAllocationCallback callback, |
3255 ObjectSpace space, | 3255 ObjectSpace space, |
3256 AllocationAction action); | 3256 AllocationAction action); |
3257 | 3257 |
3258 /** | 3258 /** |
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4849 | 4849 |
4850 | 4850 |
4851 } // namespace v8 | 4851 } // namespace v8 |
4852 | 4852 |
4853 | 4853 |
4854 #undef V8EXPORT | 4854 #undef V8EXPORT |
4855 #undef TYPE_CHECK | 4855 #undef TYPE_CHECK |
4856 | 4856 |
4857 | 4857 |
4858 #endif // V8_H_ | 4858 #endif // V8_H_ |
OLD | NEW |