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

Issue 2805903004: Working implementation of #29153 range check in as-casts. (Closed)

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

Description

First stab at #29153 range check in as-casts. Mostly working. Having an issue forwarding Symbol::InTypeCheck into dart and back; without it, the exceptions that are thrown are `TypeError`s and not `CastError`s. Certainly a bit longform to read, as well. Committing for feedback/suggestions/help BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/bffe47e678578f852dd19cddf919d62fd8da7fad

Patch Set 1 #

Total comments: 7

Patch Set 2 : Incorporate @rmacnak's feedback: ZoneHandle, position, symbol null. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -0 lines) Patch
M runtime/lib/errors_patch.dart View 1 1 chunk +18 lines, -0 lines 0 comments Download
M runtime/vm/aot_optimizer.cc View 1 1 chunk +116 lines, -0 lines 1 comment Download
M runtime/vm/method_recognizer.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
mfairhurst
Hey Ryan! I have an almost working proof of concept of using range checks in ...
3 years, 8 months ago (2017-04-07 21:02:07 UTC) #2
rmacnak
On 2017/04/07 21:02:07, mfairhurst wrote: > Hey Ryan! > > I have an almost working ...
3 years, 8 months ago (2017-04-10 21:07:18 UTC) #3
rmacnak
https://codereview.chromium.org/2805903004/diff/1/runtime/lib/errors_patch.dart File runtime/lib/errors_patch.dart (right): https://codereview.chromium.org/2805903004/diff/1/runtime/lib/errors_patch.dart#newcode402 runtime/lib/errors_patch.dart:402: _TypeError._throwNew(0, instance, type, InTypeCast, ""); 0 -> position. It's ...
3 years, 8 months ago (2017-04-10 21:07:24 UTC) #4
mfairhurst
Ah, yes, the null error bound. For some reason had thought it was supposed to ...
3 years, 8 months ago (2017-04-11 01:49:50 UTC) #5
mfairhurst
Confirmed no regressions in the test suite: ./tools/test.py -mrelease -ax64 -rdart_precompiled -cprecompiler language Test configuration: ...
3 years, 8 months ago (2017-04-13 16:09:59 UTC) #6
siva
https://codereview.chromium.org/2805903004/diff/20001/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (right): https://codereview.chromium.org/2805903004/diff/20001/runtime/vm/aot_optimizer.cc#newcode1616 runtime/vm/aot_optimizer.cc:1616: copy->DeepCopyTo(Z, new_call); Maybe not for this CL but in ...
3 years, 8 months ago (2017-04-13 17:01:04 UTC) #8
mfairhurst
On 2017/04/13 17:01:04, siva wrote: > https://codereview.chromium.org/2805903004/diff/20001/runtime/vm/aot_optimizer.cc > File runtime/vm/aot_optimizer.cc (right): > > https://codereview.chromium.org/2805903004/diff/20001/runtime/vm/aot_optimizer.cc#newcode1616 > ...
3 years, 8 months ago (2017-04-13 17:15:47 UTC) #9
siva
Don't have to include it in this fix, a new CL is fine. > Would ...
3 years, 8 months ago (2017-04-13 17:36:59 UTC) #11
rmacnak
On 2017/04/13 16:09:59, mfairhurst wrote: > Confirmed no regressions in the test suite: > > ...
3 years, 8 months ago (2017-04-13 17:38:39 UTC) #12
mfairhurst
3 years, 8 months ago (2017-04-13 17:45:04 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
bffe47e678578f852dd19cddf919d62fd8da7fad (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698