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

Issue 12315005: Constant fold math and string operations. (Closed)

Created:
7 years, 10 months ago by Yang
Modified:
7 years, 10 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Constant fold math and string operations. R=jkummerow@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=13705

Patch Set 1 #

Total comments: 15

Patch Set 2 : addressed comments. fixed -Infinify folding. #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : made ctors private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+733 lines, -267 lines) Patch
M src/assembler.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/hydrogen.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 27 chunks +80 lines, -66 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 22 chunks +184 lines, -150 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 8 chunks +182 lines, -31 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 1 chunk +1 line, -13 lines 0 comments Download
A test/mjsunit/constant-folding-2.js View 1 2 1 chunk +258 lines, -0 lines 0 comments Download
M tools/run-tests.py View 1 chunk +4 lines, -2 lines 0 comments Download
M tools/test.py View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yang
7 years, 10 months ago (2013-02-20 11:52:47 UTC) #1
Jakob Kummerow
Mostly nits, except for the observation that some of the functions in the test case ...
7 years, 10 months ago (2013-02-20 15:31:04 UTC) #2
Yang
https://chromiumcodereview.appspot.com/12315005/diff/1/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://chromiumcodereview.appspot.com/12315005/diff/1/src/hydrogen-instructions.cc#newcode2839 src/hydrogen-instructions.cc:2839: if (isinf(d)) { // +Inifinity and -Infinity. On 2013/02/20 ...
7 years, 10 months ago (2013-02-20 17:51:15 UTC) #3
Yang
The issue was that -Infinity was not being constant folded, but still computed as -1 ...
7 years, 10 months ago (2013-02-20 17:52:18 UTC) #4
Yang
Also renamed the factory methods. On 2013/02/20 17:52:18, Yang wrote: > The issue was that ...
7 years, 10 months ago (2013-02-21 09:39:51 UTC) #5
Jakob Kummerow
LGTM with nits. https://chromiumcodereview.appspot.com/12315005/diff/10002/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://chromiumcodereview.appspot.com/12315005/diff/10002/src/hydrogen-instructions.cc#newcode2756 src/hydrogen-instructions.cc:2756: Zone* zone, HValue* context, HValue* left, ...
7 years, 10 months ago (2013-02-21 10:14:56 UTC) #6
Yang
7 years, 10 months ago (2013-02-21 11:40:47 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r13705 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698