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

Issue 1564493002: Make Scanner::kNoSourcePos be a true sentinel value (Closed)

Created:
4 years, 11 months ago by Cutch
Modified:
4 years, 11 months ago
Reviewers:
rmacnak, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make Scanner::kNoSourcePos be a true sentinel value - It is possible to write a Dart program with a function token_pos of 0. - Switch Scanner::kNoSourcePos from 0 to -1. R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/cb8b641cc9a0da1ef4460d57b21c21e48455f1dd

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -33 lines) Patch
M runtime/observatory/tests/service/async_next_test.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/ast.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debugger.cc View 2 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 1 7 chunks +11 lines, -11 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/scanner.h View 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/scopes.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Cutch
4 years, 11 months ago (2016-01-05 22:05:35 UTC) #3
hausner
LGTM with comments. https://codereview.chromium.org/1564493002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1564493002/diff/1/runtime/vm/object.cc#newcode3452 runtime/vm/object.cc:3452: ASSERT(Scanner::ValidSourcePosition(token_pos)); Can there be classes with ...
4 years, 11 months ago (2016-01-05 22:30:50 UTC) #4
Cutch
https://codereview.chromium.org/1564493002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1564493002/diff/1/runtime/vm/object.cc#newcode3452 runtime/vm/object.cc:3452: ASSERT(Scanner::ValidSourcePosition(token_pos)); On 2016/01/05 22:30:50, hausner wrote: > Can there ...
4 years, 11 months ago (2016-01-06 15:42:19 UTC) #6
Cutch
4 years, 11 months ago (2016-01-06 17:06:33 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
cb8b641cc9a0da1ef4460d57b21c21e48455f1dd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698