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

Issue 981002: Add a special case in Math.round for a SMI result. Also change the implementa... (Closed)

Created:
10 years, 9 months ago by Oleg Eterevsky
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add a special case in Math.round for a SMI result. Also change the implementation for non-SMI case. Committed: http://code.google.com/p/v8/source/detail?r=4146

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M src/runtime.cc View 1 chunk +13 lines, -4 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Oleg Eterevsky
10 years, 9 months ago (2010-03-15 18:51:42 UTC) #1
Erik Corry
Drive-by comment: Is it worth doing some of the work in math.js like we do ...
10 years, 9 months ago (2010-03-15 20:07:55 UTC) #2
Erik Corry
http://codereview.chromium.org/981002/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/981002/diff/1/2#newcode5337 src/runtime.cc:5337: return Heap::NumberFromDouble(x); Seems like we could just return args[0] ...
10 years, 9 months ago (2010-03-15 20:11:34 UTC) #3
Rico
10 years, 9 months ago (2010-03-16 06:22:37 UTC) #4
A side note - I already considered making inline versions of these two methods
(floor and round)- if you guys think it is worth it I will do it today/tomorrow.

Powered by Google App Engine
This is Rietveld 408576698