| 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 4419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4430 static void SetEntropySource(EntropySource source); | 4430 static void SetEntropySource(EntropySource source); |
| 4431 | 4431 |
| 4432 /** | 4432 /** |
| 4433 * Allows the host application to provide a callback that allows v8 to | 4433 * Allows the host application to provide a callback that allows v8 to |
| 4434 * cooperate with a profiler that rewrites return addresses on stack. | 4434 * cooperate with a profiler that rewrites return addresses on stack. |
| 4435 */ | 4435 */ |
| 4436 static void SetReturnAddressLocationResolver( | 4436 static void SetReturnAddressLocationResolver( |
| 4437 ReturnAddressLocationResolver return_address_resolver); | 4437 ReturnAddressLocationResolver return_address_resolver); |
| 4438 | 4438 |
| 4439 /** | 4439 /** |
| 4440 * Deprecated, use the variant with the Isolate parameter below instead. |
| 4441 */ |
| 4442 V8_DEPRECATED(static bool SetFunctionEntryHook(FunctionEntryHook entry_hook)); |
| 4443 |
| 4444 /** |
| 4440 * Allows the host application to provide the address of a function that's | 4445 * Allows the host application to provide the address of a function that's |
| 4441 * invoked on entry to every V8-generated function. | 4446 * invoked on entry to every V8-generated function. |
| 4442 * Note that \p entry_hook is invoked at the very start of each | 4447 * Note that \p entry_hook is invoked at the very start of each |
| 4443 * generated function. | 4448 * generated function. |
| 4444 * | 4449 * |
| 4450 * \param isolate the isolate to operate on. |
| 4445 * \param entry_hook a function that will be invoked on entry to every | 4451 * \param entry_hook a function that will be invoked on entry to every |
| 4446 * V8-generated function. | 4452 * V8-generated function. |
| 4447 * \returns true on success on supported platforms, false on failure. | 4453 * \returns true on success on supported platforms, false on failure. |
| 4448 * \note Setting a new entry hook function when one is already active will | 4454 * \note Setting an entry hook can only be done very early in an isolates |
| 4449 * fail. | 4455 * lifetime, and once set, the entry hook cannot be revoked. |
| 4450 */ | 4456 */ |
| 4451 static bool SetFunctionEntryHook(FunctionEntryHook entry_hook); | 4457 static bool SetFunctionEntryHook(Isolate* isolate, |
| 4458 FunctionEntryHook entry_hook); |
| 4452 | 4459 |
| 4453 /** | 4460 /** |
| 4454 * Allows the host application to provide the address of a function that is | 4461 * Allows the host application to provide the address of a function that is |
| 4455 * notified each time code is added, moved or removed. | 4462 * notified each time code is added, moved or removed. |
| 4456 * | 4463 * |
| 4457 * \param options options for the JIT code event handler. | 4464 * \param options options for the JIT code event handler. |
| 4458 * \param event_handler the JIT code event handler, which will be invoked | 4465 * \param event_handler the JIT code event handler, which will be invoked |
| 4459 * each time code is added, moved or removed. | 4466 * each time code is added, moved or removed. |
| 4460 * \note \p event_handler won't get notified of existent code. | 4467 * \note \p event_handler won't get notified of existent code. |
| 4461 * \note since code removal notifications are not currently issued, the | 4468 * \note since code removal notifications are not currently issued, the |
| (...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6369 | 6376 |
| 6370 | 6377 |
| 6371 } // namespace v8 | 6378 } // namespace v8 |
| 6372 | 6379 |
| 6373 | 6380 |
| 6374 #undef V8EXPORT | 6381 #undef V8EXPORT |
| 6375 #undef TYPE_CHECK | 6382 #undef TYPE_CHECK |
| 6376 | 6383 |
| 6377 | 6384 |
| 6378 #endif // V8_H_ | 6385 #endif // V8_H_ |
| OLD | NEW |