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

Issue 661179: Inline Math.sqrt(). ... (Closed)

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

Description

Inline Math.sqrt(). Also changed name of GeneratePow and the %_ call name to follow convention based on MathSin and MathCos. Moved GeneratePow down to the other methods. Committed: http://code.google.com/p/v8/source/detail?r=4054

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 40

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : '' #

Total comments: 10

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -180 lines) Patch
M src/codegen.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 4 5 3 chunks +245 lines, -176 lines 2 comments Download
M src/math.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A test/mjsunit/math-sqrt.js View 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Rico
10 years, 10 months ago (2010-02-26 13:08:40 UTC) #1
Lasse Reichstein
You need to handle allocation failure. http://codereview.chromium.org/661179/diff/1005/1006 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/661179/diff/1005/1006#newcode5817 src/ia32/codegen-ia32.cc:5817: I assume this ...
10 years, 10 months ago (2010-02-26 13:49:32 UTC) #2
Kevin Millikin (Chromium)
A few drive-by comments, this is not a real review. (I did not look at ...
10 years, 9 months ago (2010-02-28 04:56:00 UTC) #3
Rico
Kevin, I created a new version of Math.pow with the suggestions that you gave (here ...
10 years, 9 months ago (2010-03-03 14:18:06 UTC) #4
Kevin Millikin (Chromium)
I only looked at GenerateMathPow, but that LGTM. http://codereview.chromium.org/661179/diff/12/13 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/661179/diff/12/13#newcode5963 src/ia32/codegen-ia32.cc:5963: // ...
10 years, 9 months ago (2010-03-03 15:08:09 UTC) #5
Rico
I addressed the comments - could one of you have look at sqrt as well? ...
10 years, 9 months ago (2010-03-04 07:28:18 UTC) #6
Lasse Reichstein
Just looking at squareroot: LGTM. http://codereview.chromium.org/661179/diff/12/13 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/661179/diff/12/13#newcode6076 src/ia32/codegen-ia32.cc:6076: if (CpuFeatures::IsSupported(SSE2)) { You ...
10 years, 9 months ago (2010-03-08 08:22:05 UTC) #7
Kevin Millikin (Chromium)
http://codereview.chromium.org/661179/diff/2001/2002 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/661179/diff/2001/2002#newcode6081 src/ia32/codegen-ia32.cc:6081: frame_->Spill(result.reg()); frame() http://codereview.chromium.org/661179/diff/2001/2002#newcode6105 src/ia32/codegen-ia32.cc:6105: Result scratch = allocator()->Allocate(); Allocating ...
10 years, 9 months ago (2010-03-08 08:26:07 UTC) #8
Rico
http://codereview.chromium.org/661179/diff/2001/2002 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/661179/diff/2001/2002#newcode6081 src/ia32/codegen-ia32.cc:6081: frame_->Spill(result.reg()); On 2010/03/08 08:26:07, Kevin Millikin wrote: > frame() ...
10 years, 9 months ago (2010-03-08 08:38:30 UTC) #9
Rico
I added the map heap-checks in both pow and sqrt. If we later decide that ...
10 years, 9 months ago (2010-03-08 12:24:27 UTC) #10
Lasse Reichstein
10 years, 9 months ago (2010-03-08 13:17:01 UTC) #11
LGTM.

http://codereview.chromium.org/661179/diff/3015/2013
File src/ia32/codegen-ia32.cc (right):

http://codereview.chromium.org/661179/diff/3015/2013#newcode5918
src/ia32/codegen-ia32.cc:5918: Factory::heap_number_map());
Indentation? Ditto for other two.

http://codereview.chromium.org/661179/diff/3015/2013#newcode5919
src/ia32/codegen-ia32.cc:5919: call_runtime.Branch(not_zero);
not_zero->not_equal (I know they are identical, but for a comparison, it reads
much better)
Ditto for other two.

Powered by Google App Engine
This is Rietveld 408576698