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

Issue 6685045: Add support for unary plus in hydrogen compiler. (Closed)

Created:
9 years, 9 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add support for unary plus in hydrogen compiler. Also strength-reduction of unary minus. Fixes issue 1248. BUG=1248 Committed: http://code.google.com/p/v8/source/detail?r=7217

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changed sign implementation to use HMul. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -10 lines) Patch
M src/hydrogen.cc View 1 2 chunks +9 lines, -9 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 1 chunk +43 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
9 years, 9 months ago (2011-03-14 13:42:48 UTC) #1
Kevin Millikin (Chromium)
http://codereview.chromium.org/6685045/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/6685045/diff/1/src/hydrogen.cc#newcode4536 src/hydrogen.cc:4536: instr = new HSub(graph_->GetConstant0(), value); I'm suspicious of this ...
9 years, 9 months ago (2011-03-14 14:18:46 UTC) #2
Lasse Reichstein
I have changed it to using HMul, reorganized the function to avoid the long if ...
9 years, 9 months ago (2011-03-15 12:18:33 UTC) #3
Kevin Millikin (Chromium)
9 years, 9 months ago (2011-03-15 12:34:00 UTC) #4
LGTM.

Powered by Google App Engine
This is Rietveld 408576698