| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index 480cbaa9553f295f6ad844f789e54fa128059402..8d3cfb7c6d4cb605b1e0e196ce1d11f170143477 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2955,6 +2955,27 @@ class V8EXPORT ExternalResourceVisitor { // NOLINT
|
|
|
|
|
| /**
|
| + * CodeAddressEvent is used as a callback function for external logging
|
| + * of symbols to address.
|
| + */
|
| +enum CodeAddressOperation {
|
| + Add = 1,
|
| + Move,
|
| + Remove,
|
| + Reset,
|
| + Source
|
| +};
|
| +
|
| +typedef bool (*CodeAddressEvent)(CodeAddressOperation operation,
|
| + const void* addr1,
|
| + int len,
|
| + const char* symbol,
|
| + int tag,
|
| + const void* addr2,
|
| + int line);
|
| +
|
| +
|
| +/**
|
| * Container class for static utility functions.
|
| */
|
| class V8EXPORT V8 {
|
| @@ -3366,6 +3387,13 @@ class V8EXPORT V8 {
|
| */
|
| static int ContextDisposedNotification();
|
|
|
| + /**
|
| + * This function sets or removes callback to get code address locations.
|
| + * Set enumExisting flag to true to enumerate existing code addresses.
|
| + */
|
| + static void SetCodeAddressEventCallback(CodeAddressEvent callback,
|
| + bool enumExisting);
|
| +
|
| private:
|
| V8();
|
|
|
|
|