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

Issue 2940283002: [kernel] Fix assert message. (Closed)

Created:
3 years, 6 months ago by jensj
Modified:
3 years, 6 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[kernel] Fix assert message. This mimics the behaviour of the source-based pipeline, i.e. instead of "manually" calling _AssertionError._create and giving the correct parameters (wrong parameters, actually), use the helper method _AssertionError.ThrowNew. BUG= R=ahe@google.com, vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/0a1583aa0480dfc49ee3f589a45bd0c58f4104d9

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -44 lines) Patch
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M pkg/kernel/binary.md View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/kernel/lib/ast.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 1 1 chunk +4 lines, -1 line 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/kernel/lib/clone.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/lib/errors_patch.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 3 chunks +21 lines, -35 lines 0 comments Download
M tests/language/language_kernel.status View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
jensj
Source-based assert message: ``` dart --enable_asserts --enable-inlining-annotations --optimization-counter-threshold=10 --no-background-compilation /usr/local/google/home/jensj/code/dart-sdk/sdk/bla3.dart 'file:///usr/local/google/home/jensj/code/dart-sdk/sdk/tests/language/vm/regress_27671_other.dart': Failed assertion: line 9 ...
3 years, 6 months ago (2017-06-16 06:27:30 UTC) #2
jensj
On 2017/06/16 06:27:30, jensj wrote: > Source-based assert message: > ``` > dart --enable_asserts --enable-inlining-annotations ...
3 years, 6 months ago (2017-06-16 06:28:28 UTC) #3
Vyacheslav Egorov (Google)
C++ changes LGTM
3 years, 6 months ago (2017-06-16 06:30:08 UTC) #4
ahe
body_builder.dart lgtm with comments. https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2662 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2662: Token lastTokenInCondition = rightParenthesis.previous; We ...
3 years, 6 months ago (2017-06-16 07:39:43 UTC) #5
ahe
Rest of dart files LGTM with comments. https://codereview.chromium.org/2940283002/diff/1/pkg/kernel/lib/ast.dart File pkg/kernel/lib/ast.dart (right): https://codereview.chromium.org/2940283002/diff/1/pkg/kernel/lib/ast.dart#newcode3167 pkg/kernel/lib/ast.dart:3167: AssertStatement(this.condition, [this.message]) ...
3 years, 6 months ago (2017-06-16 07:41:51 UTC) #6
jensj
https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2662 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2662: Token lastTokenInCondition = rightParenthesis.previous; On 2017/06/16 07:39:42, ahe wrote: ...
3 years, 6 months ago (2017-06-16 07:43:30 UTC) #7
ahe
https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2662 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2662: Token lastTokenInCondition = rightParenthesis.previous; On 2017/06/16 07:43:29, jensj wrote: ...
3 years, 6 months ago (2017-06-16 07:53:35 UTC) #8
jensj
Thanks! Comments addressed. PTAL. https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2940283002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode2662 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:2662: Token lastTokenInCondition = rightParenthesis.previous; On ...
3 years, 6 months ago (2017-06-16 09:28:25 UTC) #9
ahe
lgtm Awesome!
3 years, 6 months ago (2017-06-16 10:18:53 UTC) #10
jensj
3 years, 6 months ago (2017-06-16 10:28:25 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
0a1583aa0480dfc49ee3f589a45bd0c58f4104d9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698