OLD | NEW |
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2328 kNoGCCallbackFlags = 0, | 2328 kNoGCCallbackFlags = 0, |
2329 kGCCallbackFlagCompacted = 1 << 0 | 2329 kGCCallbackFlagCompacted = 1 << 0 |
2330 }; | 2330 }; |
2331 | 2331 |
2332 typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); | 2332 typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); |
2333 typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); | 2333 typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); |
2334 | 2334 |
2335 typedef void (*GCCallback)(); | 2335 typedef void (*GCCallback)(); |
2336 | 2336 |
2337 | 2337 |
2338 // --- C o n t e x t G e n e r a t o r --- | |
2339 | |
2340 /** | |
2341 * Applications must provide a callback function which is called to generate | |
2342 * a context if a context was not deserialized from the snapshot. | |
2343 */ | |
2344 typedef Persistent<Context> (*ContextGenerator)(); | |
2345 | |
2346 | |
2347 /** | 2338 /** |
2348 * Profiler modules. | 2339 * Profiler modules. |
2349 * | 2340 * |
2350 * In V8, profiler consists of several modules: CPU profiler, and different | 2341 * In V8, profiler consists of several modules: CPU profiler, and different |
2351 * kinds of heap profiling. Each can be turned on / off independently. | 2342 * kinds of heap profiling. Each can be turned on / off independently. |
2352 * When PROFILER_MODULE_HEAP_SNAPSHOT flag is passed to ResumeProfilerEx, | 2343 * When PROFILER_MODULE_HEAP_SNAPSHOT flag is passed to ResumeProfilerEx, |
2353 * modules are enabled only temporarily for making a snapshot of the heap. | 2344 * modules are enabled only temporarily for making a snapshot of the heap. |
2354 */ | 2345 */ |
2355 enum ProfilerModules { | 2346 enum ProfilerModules { |
2356 PROFILER_MODULE_NONE = 0, | 2347 PROFILER_MODULE_NONE = 0, |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3548 | 3539 |
3549 } // namespace v8 | 3540 } // namespace v8 |
3550 | 3541 |
3551 | 3542 |
3552 #undef V8EXPORT | 3543 #undef V8EXPORT |
3553 #undef V8EXPORT_INLINE | 3544 #undef V8EXPORT_INLINE |
3554 #undef TYPE_CHECK | 3545 #undef TYPE_CHECK |
3555 | 3546 |
3556 | 3547 |
3557 #endif // V8_H_ | 3548 #endif // V8_H_ |
OLD | NEW |