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

Issue 125121: Optimize Math.sin and Math.cos by avoiding runtime calls. (Closed)

Created:
11 years, 6 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Optimize Math.sin and Math.cos by avoiding runtime calls. Committed: http://code.google.com/p/v8/source/detail?r=2166

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -12 lines) Patch
M src/arm/codegen-arm.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M src/arm/codegen-arm-inl.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/codegen.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/ia32/assembler-ia32.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 7 chunks +106 lines, -9 lines 0 comments Download
M src/ia32/codegen-ia32-inl.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/math.js View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/codegen-x64.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M src/x64/codegen-x64-inl.h View 1 chunk +11 lines, -0 lines 0 comments Download
A test/mjsunit/sin-cos.js View 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (chromium)
11 years, 6 months ago (2009-06-15 11:32:36 UTC) #1
Kasper Lund
If you fix the slow-case runtime call this LGTM. http://codereview.chromium.org/125121/diff/1022/1023 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/125121/diff/1022/1023#newcode5008 Line ...
11 years, 6 months ago (2009-06-15 11:47:02 UTC) #2
Mads Ager (chromium)
http://codereview.chromium.org/125121/diff/1022/1023 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/125121/diff/1022/1023#newcode5008 Line 5008: Result answer = frame_->CallRuntime(Runtime::kMath_sin, 1); On 2009/06/15 11:47:02, ...
11 years, 6 months ago (2009-06-15 12:05:26 UTC) #3
Kevin Millikin (Chromium)
http://codereview.chromium.org/125121/diff/1022/1033 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/125121/diff/1022/1033#newcode3419 Line 3419: Load(args->at(0)); This should be a call to LoadAndSpill. ...
11 years, 6 months ago (2009-06-15 12:08:48 UTC) #4
Mads Ager (chromium)
11 years, 6 months ago (2009-06-15 12:14:42 UTC) #5
Thanks Kevin.  Both done (in a separate changelist since I went ahead and
committed this one).

Powered by Google App Engine
This is Rietveld 408576698