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

Issue 660375: Revert change to EquivalentTime in date.js. The checks that I've removed in t... (Closed)

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

Description

Revert change to EquivalentTime in date.js. The checks that I've removed in the last changed were essential after all. Committed: http://code.google.com/p/v8/source/detail?r=3999

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M src/date-delay.js View 1 1 chunk +3 lines, -5 lines 0 comments Download
M src/runtime.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Oleg Eterevsky
10 years, 9 months ago (2010-03-02 13:58:31 UTC) #1
Vitaly Repeshko
http://codereview.chromium.org/660375/diff/7/1002 File src/runtime.cc (right): http://codereview.chromium.org/660375/diff/7/1002#newcode4971 src/runtime.cc:4971: Just an idea: Does it make sense to assert ...
10 years, 9 months ago (2010-03-02 14:01:19 UTC) #2
antonm
LGTM http://codereview.chromium.org/660375/diff/7/1002 File src/runtime.cc (right): http://codereview.chromium.org/660375/diff/7/1002#newcode4947 src/runtime.cc:4947: ASSERT(args[0]->IsSmi()); I think we should either have ASSERTs ...
10 years, 9 months ago (2010-03-02 14:07:53 UTC) #3
Oleg Eterevsky
10 years, 9 months ago (2010-03-02 14:16:17 UTC) #4
http://codereview.chromium.org/660375/diff/7/1002
File src/runtime.cc (right):

http://codereview.chromium.org/660375/diff/7/1002#newcode4947
src/runtime.cc:4947: ASSERT(args[0]->IsSmi());
On 2010/03/02 14:07:53, antonm wrote:
> I think we should either have ASSERTs and use Smi::cast or
CONVERT_SMI_CHECKED.

I've removed the ASSERTs.

http://codereview.chromium.org/660375/diff/7/1002#newcode4971
src/runtime.cc:4971: 
On 2010/03/02 14:01:19, Vitaly wrote:
> Just an idea: Does it make sense to assert 'month' is in the valid range here?

Done.

Powered by Google App Engine
This is Rietveld 408576698