Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: include/v8.h

Issue 16578008: Improved function entry hook coverage (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@post_fix
Patch Set: Fix Windows X64 compile warnings." Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4459 matching lines...) Expand 10 before | Expand all | Expand 10 after
4470 static void SetEntropySource(EntropySource source); 4470 static void SetEntropySource(EntropySource source);
4471 4471
4472 /** 4472 /**
4473 * Allows the host application to provide a callback that allows v8 to 4473 * Allows the host application to provide a callback that allows v8 to
4474 * cooperate with a profiler that rewrites return addresses on stack. 4474 * cooperate with a profiler that rewrites return addresses on stack.
4475 */ 4475 */
4476 static void SetReturnAddressLocationResolver( 4476 static void SetReturnAddressLocationResolver(
4477 ReturnAddressLocationResolver return_address_resolver); 4477 ReturnAddressLocationResolver return_address_resolver);
4478 4478
4479 /** 4479 /**
4480 * Deprecated, use the variant with the Isolate parameter below instead.
4481 */
4482 V8_DEPRECATED(static bool SetFunctionEntryHook(FunctionEntryHook entry_hook));
4483
4484 /**
4480 * Allows the host application to provide the address of a function that's 4485 * Allows the host application to provide the address of a function that's
4481 * invoked on entry to every V8-generated function. 4486 * invoked on entry to every V8-generated function.
4482 * Note that \p entry_hook is invoked at the very start of each 4487 * Note that \p entry_hook is invoked at the very start of each
4483 * generated function. 4488 * generated function.
4484 * 4489 *
4490 * \param isolate the isolate to operate on.
4485 * \param entry_hook a function that will be invoked on entry to every 4491 * \param entry_hook a function that will be invoked on entry to every
4486 * V8-generated function. 4492 * V8-generated function.
4487 * \returns true on success on supported platforms, false on failure. 4493 * \returns true on success on supported platforms, false on failure.
4488 * \note Setting a new entry hook function when one is already active will 4494 * \note Setting an entry hook can only be done very early in an isolates
4489 * fail. 4495 * lifetime, and once set, the entry hook cannot be revoked.
4490 */ 4496 */
4491 static bool SetFunctionEntryHook(FunctionEntryHook entry_hook); 4497 static bool SetFunctionEntryHook(Isolate* isolate,
4498 FunctionEntryHook entry_hook);
4492 4499
4493 /** 4500 /**
4494 * Allows the host application to provide the address of a function that is 4501 * Allows the host application to provide the address of a function that is
4495 * notified each time code is added, moved or removed. 4502 * notified each time code is added, moved or removed.
4496 * 4503 *
4497 * \param options options for the JIT code event handler. 4504 * \param options options for the JIT code event handler.
4498 * \param event_handler the JIT code event handler, which will be invoked 4505 * \param event_handler the JIT code event handler, which will be invoked
4499 * each time code is added, moved or removed. 4506 * each time code is added, moved or removed.
4500 * \note \p event_handler won't get notified of existent code. 4507 * \note \p event_handler won't get notified of existent code.
4501 * \note since code removal notifications are not currently issued, the 4508 * \note since code removal notifications are not currently issued, the
(...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after
6453 6460
6454 6461
6455 } // namespace v8 6462 } // namespace v8
6456 6463
6457 6464
6458 #undef V8EXPORT 6465 #undef V8EXPORT
6459 #undef TYPE_CHECK 6466 #undef TYPE_CHECK
6460 6467
6461 6468
6462 #endif // V8_H_ 6469 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698