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

Issue 2677473003: Fix an assertion about canonical types in the precompiler. (Closed)

Created:
3 years, 10 months ago by Florian Schneider
Modified:
3 years, 10 months ago
Reviewers:
regis, rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix an assertion about canonical types in the precompiler. Recursive types can be equivalent, but have loops of different lengths, therefore not always canonicalized. When rehashing, don't forget the last element. Adjust integer type in hash code computation. It should not make a difference, but seems consistent to use the same size of both sides. BUG= R=regis@google.com Committed: https://github.com/dart-lang/sdk/commit/dbb1a1caa282bfb6bcbee90ea50ac4f8f3441644

Patch Set 1 #

Total comments: 2

Patch Set 2 : add same assertion for type arguments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M runtime/vm/object.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/precompiler.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Florian Schneider
Small code review
3 years, 10 months ago (2017-02-02 23:18:15 UTC) #3
regis
lgtm with one addition. https://codereview.chromium.org/2677473003/diff/1/runtime/vm/precompiler.cc File runtime/vm/precompiler.cc (right): https://codereview.chromium.org/2677473003/diff/1/runtime/vm/precompiler.cc#newcode2720 runtime/vm/precompiler.cc:2720: ASSERT(!present); ASSERT(!present || typearg.IsRecursive()); A ...
3 years, 10 months ago (2017-02-02 23:26:08 UTC) #4
Florian Schneider
https://codereview.chromium.org/2677473003/diff/1/runtime/vm/precompiler.cc File runtime/vm/precompiler.cc (right): https://codereview.chromium.org/2677473003/diff/1/runtime/vm/precompiler.cc#newcode2720 runtime/vm/precompiler.cc:2720: ASSERT(!present); On 2017/02/02 23:26:08, regis wrote: > ASSERT(!present || ...
3 years, 10 months ago (2017-02-02 23:36:42 UTC) #5
Florian Schneider
3 years, 10 months ago (2017-02-03 00:13:33 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
dbb1a1caa282bfb6bcbee90ea50ac4f8f3441644 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698