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

Issue 11773040: Canonicalize away simple arithmetic equivalences. (Closed)

Created:
7 years, 11 months ago by Vyacheslav Egorov (Google)
Modified:
7 years, 11 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Canonicalize away simple arithmetic equivalences. R=fschneider@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=16795

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add support for Mint. Fix bug in 0.0 * X identity. #

Patch Set 3 : Ensure that 1.0 * N is correctly coerced to double. #

Patch Set 4 : Add test, address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -3 lines) Patch
M runtime/vm/intermediate_language.h View 1 2 5 chunks +10 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 1 chunk +175 lines, -0 lines 0 comments Download
A tests/language/arithmetic_canonicalization_test.dart View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Vyacheslav Egorov (Google)
7 years, 11 months ago (2013-01-08 10:06:29 UTC) #1
Florian Schneider
LGTM. Please also add the according tests. https://codereview.chromium.org/11773040/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/11773040/diff/1/runtime/vm/intermediate_language.cc#newcode1408 runtime/vm/intermediate_language.cc:1408: intptr_t value; ...
7 years, 11 months ago (2013-01-08 12:15:45 UTC) #2
Vyacheslav Egorov (Google)
7 years, 11 months ago (2013-01-08 13:26:54 UTC) #3
Thanks for the review. Comments addressed. Test added. Landing

Powered by Google App Engine
This is Rietveld 408576698