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

Issue 2622863003: [debugger] infrastructure for side-effect-free debug-evaluate. (Closed)

Created:
3 years, 11 months ago by Yang
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com, rmcilroy, Michael Hablich, ofrobots
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[debugger] infrastructure for side-effect-free debug-evaluate. R=jgruber@chromium.org, mstarzinger@chromium.org BUG=v8:5821 Review-Url: https://codereview.chromium.org/2622863003 Cr-Commit-Position: refs/heads/master@{#42270} Committed: https://chromium.googlesource.com/v8/v8/+/aa75904e3c2072f6b0d6ed92f75d1fb729d7cefa

Patch Set 1 #

Total comments: 23

Patch Set 2 : address comments. #

Patch Set 3 : more. #

Total comments: 6

Patch Set 4 : clean ups. #

Total comments: 9

Patch Set 5 : platform ports. #

Patch Set 6 : address comments #

Patch Set 7 : rebase #

Patch Set 8 : fix mips #

Patch Set 9 : fix mips one more time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+570 lines, -161 lines) Patch
M src/api-arguments.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/api-arguments.cc View 1 2 3 4 5 6 4 chunks +14 lines, -0 lines 0 comments Download
M src/api-arguments-inl.h View 1 2 3 9 chunks +20 lines, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 3 4 4 chunks +13 lines, -15 lines 0 comments Download
M src/arm64/macro-assembler-arm64.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 2 3 4 5 6 4 chunks +13 lines, -13 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 6 3 chunks +4 lines, -2 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/builtins/arm/builtins-arm.cc View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -6 lines 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -6 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M src/debug/arm/debug-arm.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/debug/arm64/debug-arm64.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug.h View 1 2 3 4 5 6 6 chunks +41 lines, -1 line 0 comments Download
M src/debug/debug.cc View 1 2 3 4 5 6 10 chunks +64 lines, -3 lines 0 comments Download
M src/debug/debug-evaluate.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/debug/debug-evaluate.cc View 1 2 3 4 5 3 chunks +149 lines, -3 lines 0 comments Download
M src/debug/ia32/debug-ia32.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/debug/mips/debug-mips.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/debug/mips64/debug-mips64.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/debug/x64/debug-x64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/external-reference-table.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 3 4 5 6 4 chunks +12 lines, -14 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/macro-assembler-mips.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -14 lines 0 comments Download
M src/mips64/macro-assembler-mips64.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -14 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 5 6 2 chunks +11 lines, -5 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 3 4 5 6 4 chunks +13 lines, -15 lines 0 comments Download
A test/debugger/debug/debug-evaluate-no-side-effect.js View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (29 generated)
Yang
Please take a look. I'll add the ports later.
3 years, 11 months ago (2017-01-10 11:26:42 UTC) #1
jgruber
🙌 lgtm with comments https://codereview.chromium.org/2622863003/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2622863003/diff/1/src/debug/debug.cc#newcode2314 src/debug/debug.cc:2314: if (debug_->readonly_check_failed_ && isolate->has_pending_exception() && ...
3 years, 11 months ago (2017-01-10 12:46:38 UTC) #2
Yang
https://codereview.chromium.org/2622863003/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2622863003/diff/1/src/debug/debug.cc#newcode2314 src/debug/debug.cc:2314: if (debug_->readonly_check_failed_ && isolate->has_pending_exception() && On 2017/01/10 12:46:37, jgruber ...
3 years, 11 months ago (2017-01-10 14:14:07 UTC) #3
ofrobots
Looking great! 😺 https://codereview.chromium.org/2622863003/diff/40001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2622863003/diff/40001/src/flag-definitions.h#newcode696 src/flag-definitions.h:696: DEFINE_BOOL(side_effect_free_debug_evaluate, false, A flag is fine ...
3 years, 11 months ago (2017-01-10 17:23:13 UTC) #5
Yang
On 2017/01/10 17:23:13, ofrobots wrote: > Looking great! 😺 > > https://codereview.chromium.org/2622863003/diff/40001/src/flag-definitions.h > File src/flag-definitions.h ...
3 years, 11 months ago (2017-01-10 17:59:33 UTC) #6
Yang
On 2017/01/10 17:59:33, Yang wrote: > On 2017/01/10 17:23:13, ofrobots wrote: > > Looking great! ...
3 years, 11 months ago (2017-01-10 18:13:57 UTC) #7
rmcilroy
https://codereview.chromium.org/2622863003/diff/40001/src/debug/debug-evaluate.cc File src/debug/debug-evaluate.cc (right): https://codereview.chromium.org/2622863003/diff/40001/src/debug/debug-evaluate.cc#newcode305 src/debug/debug-evaluate.cc:305: case Bytecode::kPopContext: It seems like this might bitrot as ...
3 years, 11 months ago (2017-01-10 18:17:38 UTC) #9
Yang
On 2017/01/10 18:17:38, rmcilroy wrote: > https://codereview.chromium.org/2622863003/diff/40001/src/debug/debug-evaluate.cc > File src/debug/debug-evaluate.cc (right): > > https://codereview.chromium.org/2622863003/diff/40001/src/debug/debug-evaluate.cc#newcode305 > ...
3 years, 11 months ago (2017-01-10 18:20:46 UTC) #10
rmcilroy
https://codereview.chromium.org/2622863003/diff/40001/src/debug/debug-evaluate.cc File src/debug/debug-evaluate.cc (right): https://codereview.chromium.org/2622863003/diff/40001/src/debug/debug-evaluate.cc#newcode300 src/debug/debug-evaluate.cc:300: case Bytecode::kAdd: You probably want to add kAddSmi as ...
3 years, 11 months ago (2017-01-10 21:10:25 UTC) #11
Yang
Updated CL. - Added checks to accessor and interceptor callbacks. - Whitelist for builtins. - ...
3 years, 11 months ago (2017-01-11 10:32:10 UTC) #12
rmcilroy
> @Ross I think the burden on making sure existing functions work even when > ...
3 years, 11 months ago (2017-01-11 14:58:29 UTC) #17
jgruber
Still lgtm. https://codereview.chromium.org/2622863003/diff/60001/src/debug/debug-evaluate.cc File src/debug/debug-evaluate.cc (right): https://codereview.chromium.org/2622863003/diff/60001/src/debug/debug-evaluate.cc#newcode258 src/debug/debug-evaluate.cc:258: namespace { Nit: whitespace. https://codereview.chromium.org/2622863003/diff/60001/src/debug/debug-evaluate.cc#newcode361 src/debug/debug-evaluate.cc:361: } ...
3 years, 11 months ago (2017-01-11 16:12:39 UTC) #18
Yang
Addressed comments and added platform ports. https://codereview.chromium.org/2622863003/diff/60001/src/debug/debug-evaluate.cc File src/debug/debug-evaluate.cc (right): https://codereview.chromium.org/2622863003/diff/60001/src/debug/debug-evaluate.cc#newcode361 src/debug/debug-evaluate.cc:361: } On 2017/01/11 ...
3 years, 11 months ago (2017-01-12 06:04:51 UTC) #19
Yang
Michael or Ross, do you want to take a look at this before I commit?
3 years, 11 months ago (2017-01-12 10:55:36 UTC) #39
Michael Starzinger
LGTM on the plumbing outside the debugger, only skimmed over the debugger internals.
3 years, 11 months ago (2017-01-12 14:14:09 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2622863003/180001
3 years, 11 months ago (2017-01-12 14:16:24 UTC) #43
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 14:18:52 UTC) #46
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/v8/v8/+/aa75904e3c2072f6b0d6ed92f75d1fb729d...

Powered by Google App Engine
This is Rietveld 408576698