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

Issue 102283004: Fix invalid aliasing in type propagation of AssertAssignable. (Closed)

Created:
7 years ago by Florian Schneider
Modified:
7 years ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix invalid aliasing in type propagation of AssertAssignable. We have to create a copy when computing the initial type for AssertAssignable instead of using the CompileType of the input operand. Aliasing can cause invalid elimination of checks after strengthening of asserts. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=31227

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M runtime/vm/flow_graph_type_propagator.cc View 2 chunks +9 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
This fixes the crash due to illegally eliminated check-smi instructions in tests/language/assert_assignable_type_test, but propagates type ...
7 years ago (2013-12-18 15:01:18 UTC) #1
srdjan
LGTM and thanks for finishing the analysis/fix.
7 years ago (2013-12-18 15:26:35 UTC) #2
Florian Schneider
7 years ago (2013-12-18 15:30:13 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r31227 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698