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

Issue 1701963002: Unwrap TypeRef returned by InstantiateFrom in AssertAssignableInstr::Canonicalize. (Closed)

Created:
4 years, 10 months ago by Vyacheslav Egorov (Google)
Modified:
4 years, 10 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org, regis
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Unwrap TypeRef returned by InstantiateFrom in AssertAssignableInstr::Canonicalize. Runtime system does not expect to see TypeRef as a destination type for a type check: type references should only appear in the type arguments of recursive types. Reorganize canonicalization code to make it more readable and assertions to catch this issue earlier. BUG=http://dartbug.com/25782 R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/b2994a4f556a13d6420b122a97ceef739f427653

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -8 lines) Patch
M runtime/vm/intermediate_language.h View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 chunk +14 lines, -8 lines 0 comments Download
A tests/standalone/assert_assignable_canon_test.dart View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Vyacheslav Egorov (Google)
PTAL
4 years, 10 months ago (2016-02-16 12:00:11 UTC) #2
Florian Schneider
lgtm
4 years, 10 months ago (2016-02-16 12:13:43 UTC) #3
Vyacheslav Egorov (Google)
4 years, 10 months ago (2016-02-16 12:44:12 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b2994a4f556a13d6420b122a97ceef739f427653 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698