| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 static void DefineWrapperClass( | 423 static void DefineWrapperClass( |
| 424 uint16_t class_id, | 424 uint16_t class_id, |
| 425 WrapperInfoCallback callback); | 425 WrapperInfoCallback callback); |
| 426 | 426 |
| 427 /** | 427 /** |
| 428 * Default value of persistent handle class ID. Must not be used to | 428 * Default value of persistent handle class ID. Must not be used to |
| 429 * define a class. Can be used to reset a class of a persistent | 429 * define a class. Can be used to reset a class of a persistent |
| 430 * handle. | 430 * handle. |
| 431 */ | 431 */ |
| 432 static const uint16_t kPersistentHandleNoClassId = 0; | 432 static const uint16_t kPersistentHandleNoClassId = 0; |
| 433 |
| 434 /** Returns the number of currently existing persistent handles. */ |
| 435 static int GetPersistentHandleCount(); |
| 433 }; | 436 }; |
| 434 | 437 |
| 435 | 438 |
| 436 /** | 439 /** |
| 437 * Interface for providing information about embedder's objects | 440 * Interface for providing information about embedder's objects |
| 438 * held by global handles. This information is reported in two ways: | 441 * held by global handles. This information is reported in two ways: |
| 439 * | 442 * |
| 440 * 1. When calling AddObjectGroup, an embedder may pass | 443 * 1. When calling AddObjectGroup, an embedder may pass |
| 441 * RetainedObjectInfo instance describing the group. To collect | 444 * RetainedObjectInfo instance describing the group. To collect |
| 442 * this information while taking a heap snapshot, V8 calls GC | 445 * this information while taking a heap snapshot, V8 calls GC |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 }; | 510 }; |
| 508 | 511 |
| 509 | 512 |
| 510 } // namespace v8 | 513 } // namespace v8 |
| 511 | 514 |
| 512 | 515 |
| 513 #undef V8EXPORT | 516 #undef V8EXPORT |
| 514 | 517 |
| 515 | 518 |
| 516 #endif // V8_V8_PROFILER_H_ | 519 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |