V8 profiling patch rebased on Chromium v35

This patch was already applied for Chromium v34. The only difference is a minor change to fix a depreciated API warning. V8 tests passed.