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

Issue 2680303002: Kernel debugging; service tests (Closed)

Created:
3 years, 10 months ago by jensj
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Kernel debugging; service tests - Offsets on more stuff - Status file for kernel -> Testing with (before fasta) ``` python tools/test.py -mrelease -cdartk --no-tree-shake --no-dfe service ``` now shows everything as passing. Reload stuff, and evaluation stuff (e.g.) has been disabled though. - Lots of new service tests that tests what positions we stop at when saying next. As fasta has now landed debugging does not currently work, but this is still needed in order to both test better and allow for proper kernel debugging support. R=hausner@google.com, kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/9837563cd18e624761cd1521c4b1b3f755368a0f

Patch Set 1 #

Patch Set 2 : Don't format service_test_common.dart #

Patch Set 3 : New failing test #

Total comments: 99

Patch Set 4 : Changes based on feedback. Also fixed regress_28443_test #

Total comments: 4

Patch Set 5 : Rebased; Fix regress_28325 (actual fix); changes based on feedback. #

Patch Set 6 : Correct file offset when calling on field (mind the rebase) #

Total comments: 2

Patch Set 7 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1385 lines, -91 lines) Patch
M pkg/kernel/binary.md View 1 2 3 4 5 6 6 chunks +13 lines, -0 lines 0 comments Download
M pkg/kernel/lib/analyzer/ast_from_analyzer.dart View 1 2 3 4 5 6 11 chunks +35 lines, -11 lines 0 comments Download
M pkg/kernel/lib/ast.dart View 1 2 3 4 5 6 2 chunks +11 lines, -3 lines 0 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 1 2 3 4 5 6 5 chunks +18 lines, -7 lines 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 1 2 3 4 5 6 6 chunks +6 lines, -0 lines 0 comments Download
M pkg/kernel/lib/transformations/continuation.dart View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
A runtime/observatory/tests/service/add_breakpoint_rpc_kernel_test.dart View 1 2 3 1 chunk +137 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/field_script_other.dart View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/field_script_test.dart View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_assign_call_test.dart View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_assign_int_test.dart View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_call_on_field_in_class_test.dart View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_call_on_field_test.dart View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_call_on_static_field_in_class_test.dart View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_catch_test.dart View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_closure_test.dart View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_create_list_and_map_test.dart View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_for_each_loop_test.dart View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_for_loop_with_break_and_continue_test.dart View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_function_expression_test.dart View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_is_and_as_test.dart View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_new_test.dart View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_simple_async_test.dart View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_simple_async_with_returns_test.dart View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_simple_linear_2_test.dart View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/next_through_simple_linear_test.dart View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
M runtime/observatory/tests/service/service.status View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/service_kernel.status View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
M runtime/observatory/tests/service/service_test_common.dart View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
M runtime/observatory/tests/service/step_test.dart View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/kernel.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M runtime/vm/kernel_binary.cc View 1 2 3 4 5 6 6 chunks +8 lines, -1 line 0 comments Download
M runtime/vm/kernel_to_il.h View 1 2 3 4 4 chunks +8 lines, -2 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 3 4 5 6 32 chunks +106 lines, -57 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 1 chunk +11 lines, -2 lines 0 comments Download
M runtime/vm/scanner.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
jensj
3 years, 10 months ago (2017-02-08 13:16:36 UTC) #3
Kevin Millikin (Google)
A first round of comments. https://codereview.chromium.org/2680303002/diff/40001/pkg/kernel/binary.md File pkg/kernel/binary.md (right): https://codereview.chromium.org/2680303002/diff/40001/pkg/kernel/binary.md#newcode820 pkg/kernel/binary.md:820: FileOffset fileOffset; Document these ...
3 years, 10 months ago (2017-02-08 15:37:53 UTC) #4
Cutch
https://codereview.chromium.org/2680303002/diff/40001/runtime/observatory/tests/service/add_breakpoint_rpc_kernel_test.dart File runtime/observatory/tests/service/add_breakpoint_rpc_kernel_test.dart (right): https://codereview.chromium.org/2680303002/diff/40001/runtime/observatory/tests/service/add_breakpoint_rpc_kernel_test.dart#newcode52 runtime/observatory/tests/service/add_breakpoint_rpc_kernel_test.dart:52: var stream = await isolate.vm.getEventStream(VM.kDebugStream); Please factor this code ...
3 years, 10 months ago (2017-02-08 16:48:20 UTC) #6
Kevin Millikin (Google)
https://codereview.chromium.org/2680303002/diff/40001/runtime/observatory/tests/service/get_object_rpc_test.dart File runtime/observatory/tests/service/get_object_rpc_test.dart (right): https://codereview.chromium.org/2680303002/diff/40001/runtime/observatory/tests/service/get_object_rpc_test.dart#newcode710 runtime/observatory/tests/service/get_object_rpc_test.dart:710: if (isKernel(isolate)) { On 2017/02/08 16:48:20, Cutch wrote: > ...
3 years, 10 months ago (2017-02-08 19:38:21 UTC) #7
Cutch
https://codereview.chromium.org/2680303002/diff/40001/runtime/observatory/tests/service/get_object_rpc_test.dart File runtime/observatory/tests/service/get_object_rpc_test.dart (right): https://codereview.chromium.org/2680303002/diff/40001/runtime/observatory/tests/service/get_object_rpc_test.dart#newcode663 runtime/observatory/tests/service/get_object_rpc_test.dart:663: expect(result['dependencies'].length, isPositive); On 2017/02/08 16:48:20, Cutch wrote: > Please ...
3 years, 10 months ago (2017-02-08 22:02:37 UTC) #8
jensj
Thanks for the review. PTAL. https://codereview.chromium.org/2680303002/diff/40001/pkg/kernel/binary.md File pkg/kernel/binary.md (right): https://codereview.chromium.org/2680303002/diff/40001/pkg/kernel/binary.md#newcode820 pkg/kernel/binary.md:820: FileOffset fileOffset; On 2017/02/08 ...
3 years, 10 months ago (2017-02-13 14:04:17 UTC) #9
hausner
DBC: Comments in the tests that document at which token we expect a breakpoint will ...
3 years, 10 months ago (2017-02-14 13:16:04 UTC) #11
jensj
https://codereview.chromium.org/2680303002/diff/60001/runtime/observatory/tests/service/next_through_closure_test.dart File runtime/observatory/tests/service/next_through_closure_test.dart (right): https://codereview.chromium.org/2680303002/diff/60001/runtime/observatory/tests/service/next_through_closure_test.dart#newcode24 runtime/observatory/tests/service/next_through_closure_test.dart:24: "$file:${LINE_A+0}:9", On 2017/02/14 13:16:04, hausner wrote: > Add comments ...
3 years, 10 months ago (2017-02-14 13:23:55 UTC) #12
jensj
ping.
3 years, 9 months ago (2017-03-03 11:37:35 UTC) #14
Kevin Millikin (Google)
The changes to Kernel, the VM's reader, and the flow graph builder LGTM.
3 years, 9 months ago (2017-03-06 13:57:59 UTC) #15
hausner
Rest of VM changes LGTM. https://codereview.chromium.org/2680303002/diff/100001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/2680303002/diff/100001/runtime/vm/object.cc#newcode9233 runtime/vm/object.cc:9233: for (intptr_t i = ...
3 years, 9 months ago (2017-03-06 16:58:56 UTC) #16
Cutch
Not LGTM until the following are addressed: 1) Please address the branches in the individual ...
3 years, 9 months ago (2017-03-07 01:58:37 UTC) #17
jensj
In regards to the 2 issues John brought up: 1) I have removed the branches ...
3 years, 9 months ago (2017-03-07 08:43:40 UTC) #19
jensj
Committed patchset #7 (id:120001) manually as 9837563cd18e624761cd1521c4b1b3f755368a0f (presubmit successful).
3 years, 9 months ago (2017-03-07 08:44:08 UTC) #21
Cutch
3 years, 9 months ago (2017-03-07 17:20:42 UTC) #22
Message was sent while issue was closed.
On 2017/03/07 08:43:40, jensj wrote:
> In regards to the 2 issues John brought up:
> 
> 1) I have removed the branches and marked them as skip in kernel for now. This
> has to change anyway, as we've moved to fasta and the kernel isolate. How it
is
> addressed once fasta-debugging gets up-to-speed will be an issue for another
CL.
> I thus see that issue as 'closed' here.
> 

SGTM.

> 2) I'm rather sure this was fixed about a week ago, but it cannot currently be
> tested because of the switch to fasta. I have removed the includeOwner stuff.
> Thanks for pointing that out.
> 
> In total this means that all changes to existing tests have been canceled and
> only additions remain.
> That should address all concerns that John brought up, leaving me 3 lgtm's.
> Landing.
> 

Thanks!

Powered by Google App Engine
This is Rietveld 408576698