Reviewers: Vyacheslav Egorov, danno,

Message:
Hi guys, here's a start on the entry hook API along with a test for it. Note
that as-is this will test only the non-optimized codegen, I'd appreciate some
tips on how to also cover the optimized path.
I made the entry hook function an uintptr_t to emphasize that this you can't
really pass in any old void (*)() - an entry hook really needs to be implemented in asm. If there's a better or more appropriate way to express this in V8isms,
please let me know.

Description:
Implements a new API to set a function entry hook for profiling.

Exposes a new API; V8::SetFunctionEntryHook.
If a non-NULL function entry hook is set, the code generator(s) will invoke on
the entry hook at the very start of each generated function.


Please review this at https://chromiumcodereview.appspot.com/10706002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M include/v8.h
  M src/api.cc
  M src/ia32/full-codegen-ia32.cc
  M src/ia32/lithium-codegen-ia32.cc
  M src/v8.h
  M src/v8.cc
  M test/cctest/test-api.cc
  M tools/test-wrapper-gypbuild.py


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to