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

Issue 26451006: VM: Fix bug in canonicalization of identical in the optimizing compiler. (Closed)

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

Description

VM: Fix bug in canonicalization of identical in the optimizing compiler. Make sure that BranchInstr::Canonicalize does not mutate it's input before all conditions for the optimzations to take place are met. Otherwise, bailing out leaves the affected comparison instruction in an invalid state. BUG=https://code.google.com/p/dart/issues/detail?id=14109 R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=28646

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -32 lines) Patch
M runtime/vm/intermediate_language.h View 3 chunks +5 lines, -3 lines 2 comments Download
M runtime/vm/intermediate_language.cc View 4 chunks +47 lines, -29 lines 2 comments Download
A tests/language/vm/optimized_identical_test.dart View 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Florian Schneider
7 years, 2 months ago (2013-10-15 14:58:57 UTC) #1
srdjan
lgtm https://codereview.chromium.org/26451006/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/26451006/diff/1/runtime/vm/intermediate_language.cc#newcode1520 runtime/vm/intermediate_language.cc:1520: ASSERT(!*negated); It seems safer to set *negated to ...
7 years, 2 months ago (2013-10-15 15:10:15 UTC) #2
Florian Schneider
Thanks for the quick review! https://codereview.chromium.org/26451006/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/26451006/diff/1/runtime/vm/intermediate_language.cc#newcode1520 runtime/vm/intermediate_language.cc:1520: ASSERT(!*negated); On 2013/10/15 15:10:16, ...
7 years, 2 months ago (2013-10-15 15:15:03 UTC) #3
Florian Schneider
7 years, 2 months ago (2013-10-15 15:15:53 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r28646 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698