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

Issue 2881953002: Use Kernel frontend from run_vm_tests. (Closed)

Created:
3 years, 7 months ago by aam
Modified:
3 years, 7 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use Kernel frontend from run_vm_tests. With this change one can run run_vm_tests and pass to it reference to kernel parser snapshot. For example, out/DebugX64/run_vm_tests --dfe=out/DebugX64/gen/kernel-service.dart.snapshot Debugger_RemoveBreakpoint As this represents first step, this change enables only tests in debugger_test.cc to run with kernel frontend. There will be follow-up cls that enable all of the VM tests to use kernel frontend. BUG=https://github.com/dart-lang/sdk/issues/28264 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/d91f228766a2c1708bec8f62bbe2756e4a529f5e

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 10

Patch Set 3 : Move common logic to TestCase. #

Patch Set 4 : Cleanup previous refactoring commit. #

Patch Set 5 : Rename --run_vm_test_with_kernel_snapshot option to --dfe #

Total comments: 20

Patch Set 6 : Make it explicit that only kernel isolates should be spawned. Return correct value when test fails.… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -40 lines) Patch
M runtime/bin/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/run_vm_tests.cc View 1 2 3 4 5 5 chunks +130 lines, -21 lines 0 comments Download
M runtime/include/dart_api.h View 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M runtime/vm/kernel_isolate.h View 1 chunk +4 lines, -1 line 0 comments Download
M runtime/vm/kernel_isolate.cc View 1 2 5 chunks +48 lines, -13 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 2 3 4 5 3 chunks +49 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
aam
Hi Siva, PTAL. Thanks!
3 years, 7 months ago (2017-05-12 23:03:39 UTC) #4
siva
https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc#newcode139 runtime/bin/run_vm_tests.cc:139: Will this code run for non kernel isolates too? ...
3 years, 7 months ago (2017-05-15 04:34:27 UTC) #6
aam
https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc#newcode139 runtime/bin/run_vm_tests.cc:139: On 2017/05/15 at 04:34:26, siva wrote: > Will this ...
3 years, 7 months ago (2017-05-15 23:49:14 UTC) #7
aam
https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc#newcode198 runtime/bin/run_vm_tests.cc:198: if (strstr(argv[arg_pos], "--run_vm_test_with_kernel_snapshot") == On 2017/05/15 at 23:49:14, aam ...
3 years, 7 months ago (2017-05-16 00:48:32 UTC) #8
aam
On 2017/05/16 at 00:48:32, aam wrote: > https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc > File runtime/bin/run_vm_tests.cc (right): > > https://codereview.chromium.org/2881953002/diff/20001/runtime/bin/run_vm_tests.cc#newcode198 ...
3 years, 7 months ago (2017-05-16 01:19:55 UTC) #9
siva
LGTM with some comments. https://codereview.chromium.org/2881953002/diff/80001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2881953002/diff/80001/runtime/bin/run_vm_tests.cc#newcode163 runtime/bin/run_vm_tests.cc:163: } I wonder if all ...
3 years, 7 months ago (2017-05-18 00:02:39 UTC) #11
aam
Thank you for the comments, Siva! PTAL https://codereview.chromium.org/2881953002/diff/80001/runtime/bin/run_vm_tests.cc File runtime/bin/run_vm_tests.cc (right): https://codereview.chromium.org/2881953002/diff/80001/runtime/bin/run_vm_tests.cc#newcode163 runtime/bin/run_vm_tests.cc:163: } On ...
3 years, 7 months ago (2017-05-18 01:03:01 UTC) #12
siva
lgtm
3 years, 7 months ago (2017-05-18 04:04:02 UTC) #14
aam
3 years, 7 months ago (2017-05-18 04:26:03 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
d91f228766a2c1708bec8f62bbe2756e4a529f5e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698