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

Issue 2531873002: Add --verify-ir flag to dartk and test.py. (Closed)

Created:
4 years ago by asgerf
Modified:
4 years ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add --verify-ir flag to dartk and test.py. This replaces the old --sanity-check flag from dartk. Some files have been renamed to avoid the wording "sanity check". Compared to --sanity-check, the following checks have been added: - variables are not referenced out of scope - variables are not redeclared - class type parameters are not referenced from static context A unit test has been added to check that the verifier rejects certain invalid ASTs. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/8f124898398cee6b147290bddcec722e76e93dbe

Patch Set 1 #

Patch Set 2 : Minor fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -233 lines) Patch
M pkg/compiler/lib/src/kernel/kernel.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/kernel/bin/dartk.dart View 4 chunks +7 lines, -7 lines 0 comments Download
M pkg/kernel/bin/transform.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/kernel/lib/ast.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
D pkg/kernel/lib/checks.dart View 1 chunk +0 lines, -167 lines 0 comments Download
M pkg/kernel/lib/text/ast_to_text.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/kernel/lib/transformations/flags.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
A pkg/kernel/lib/verifier.dart View 1 1 chunk +292 lines, -0 lines 0 comments Download
M pkg/kernel/test/baseline_tester.dart View 2 chunks +3 lines, -3 lines 0 comments Download
D pkg/kernel/test/check_bench.dart View 1 chunk +0 lines, -35 lines 0 comments Download
M pkg/kernel/test/parent_pointer_test_disabled.dart View 1 chunk +1 line, -1 line 0 comments Download
A + pkg/kernel/test/verify_bench.dart View 2 chunks +7 lines, -6 lines 0 comments Download
A pkg/kernel/test/verify_test.dart View 1 chunk +166 lines, -0 lines 0 comments Download
M tools/testing/dart/compiler_configuration.dart View 1 6 chunks +15 lines, -9 lines 0 comments Download
M tools/testing/dart/test_options.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
asgerf
--verify-ir adds ~20 seconds to testing (5:55 -> 6:15) so I did not want to ...
4 years ago (2016-11-25 15:37:52 UTC) #2
Kevin Millikin (Google)
LGTM.
4 years ago (2016-11-28 11:14:04 UTC) #3
asgerf
4 years ago (2016-11-28 11:21:25 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
8f124898398cee6b147290bddcec722e76e93dbe (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698