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

Issue 16578008: Improved function entry hook coverage (Closed)

Created:
7 years, 6 months ago by Sigurður Ásgeirsson
Modified:
7 years, 5 months ago
Reviewers:
ulan, danno
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/external/v8.git@post_fix
Visibility:
Public.

Description

Improved function entry hook coverage Adds more coverage for function entry hook, sufficient to capture profiles that are contiguous from C++, through JS and back out to C++. R=danno@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=15361 Committed: http://code.google.com/p/v8/source/detail?r=15384

Patch Set 1 #

Total comments: 1

Patch Set 2 : WIP: Make the entry hook per-isolate. #

Patch Set 3 : WIP: Entry hook state per-isolate. #

Patch Set 4 : WIP: Fix X64 implementation. #

Total comments: 16

Patch Set 5 : Make return address resolution public on StackFrame, complete testing. Address Danno's comments. #

Patch Set 6 : Remove reliance on space->Contains check, which is only valid for V8-allocated memory. Go to unsign… #

Total comments: 4

Patch Set 7 : Address Danno's comments. #

Patch Set 8 : Normalize *.h:*.cc file mode to 644. #

Patch Set 9 : Rebase to ToT and cleanup fallout. #

Patch Set 10 : Fix ARM compile. #

Patch Set 11 : Fix Windows X64 compile warnings." #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -191 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -3 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 4 chunks +33 lines, -5 lines 0 comments Download
M src/arm/builtins-arm.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 3 4 5 6 7 8 9 6 chunks +27 lines, -11 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -1 line 0 comments Download
M src/code-stubs.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -10 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -16 lines 0 comments Download
M src/frames.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M src/frames.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -16 lines 0 comments Download
M src/frames-inl.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 3 4 5 6 7 8 5 chunks +19 lines, -5 lines 0 comments Download
M src/ic.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -0 lines 0 comments Download
M src/v8.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -41 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +293 lines, -81 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
danno
Your changes look straight forward, I think your stub additions are fine. See my other ...
7 years, 6 months ago (2013-06-11 11:33:14 UTC) #1
Sigurður Ásgeirsson
Hey Danno, I still need to get more testing in there and cover the non-ia32 ...
7 years, 6 months ago (2013-06-12 18:47:06 UTC) #2
danno
some comments https://codereview.chromium.org/16578008/diff/11001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/16578008/diff/11001/src/api.cc#newcode5150 src/api.cc:5150: bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { API calls should ...
7 years, 6 months ago (2013-06-13 15:33:44 UTC) #3
Sigurður Ásgeirsson
Hey Danno, please take another look. There's still some wonkyness in ARM that I have ...
7 years, 6 months ago (2013-06-19 20:51:51 UTC) #4
Sigurður Ásgeirsson
Oki, I fixed the ARM crash. Turns out the Contains check is only valid for ...
7 years, 6 months ago (2013-06-20 14:28:04 UTC) #5
danno
will finish tomorrow... nothing big yet https://codereview.chromium.org/16578008/diff/50001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/16578008/diff/50001/src/bootstrapper.cc#newcode2579 src/bootstrapper.cc:2579: if (isolate->initialized_from_snapshot()) V8 ...
7 years, 5 months ago (2013-06-25 18:40:35 UTC) #6
danno
Did you mean to add of src/snapshot-common.cc? It is generated and should not be in ...
7 years, 5 months ago (2013-06-27 08:26:36 UTC) #7
Sigurður Ásgeirsson
Thanks - addressed your nits and restored 644 file mode for the files I've touched. ...
7 years, 5 months ago (2013-06-27 13:06:40 UTC) #8
danno
lgtm, I'll land for you
7 years, 5 months ago (2013-06-27 13:34:42 UTC) #9
danno
It doesn't look like this patch applies to tip of tree. Can you please rebase?
7 years, 5 months ago (2013-06-27 13:37:24 UTC) #10
Sigurður Ásgeirsson
Done - seems at ToT someone snuck in a lint violation: /usr/local/google/home/siggi/src/v8/src/hydrogen.h:431: More than one ...
7 years, 5 months ago (2013-06-27 14:33:37 UTC) #11
danno
Committed patchset #9 manually as r15361 (presubmit successful).
7 years, 5 months ago (2013-06-27 14:39:52 UTC) #12
ulan
This CL broke arm build: ../src/arm/code-stubs-arm.cc: In member function 'virtual void v8::internal::ProfileEntryHookStub::Generate(v8::internal::MacroAssembler*)': ../src/arm/code-stubs-arm.cc:7127: error: 'NONE' ...
7 years, 5 months ago (2013-06-27 15:08:36 UTC) #13
Sigurður Ásgeirsson
Hey Danno, I've fixed the respective compilation errors, am in progress of running X64 tests ...
7 years, 5 months ago (2013-06-27 16:12:27 UTC) #14
danno
7 years, 5 months ago (2013-06-28 13:40:57 UTC) #15
Message was sent while issue was closed.
Committed patchset #11 manually as r15384 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698