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

Issue 3295017: Removing a wrong check.... (Closed)

Created:
10 years, 3 months ago by SeRya
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Removing a wrong check. A strings which represents an array index with length 8 and 9 digits do not pass this check. However generated hash is valid. Committed: http://code.google.com/p/v8/source/detail?r=5420

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M src/objects.h View 2 2 chunks +2 lines, -1 line 0 comments Download
M src/objects.cc View 2 2 chunks +8 lines, -5 lines 0 comments Download
M src/runtime.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M test/mjsunit/str-to-num.js View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
SeRya
10 years, 3 months ago (2010-09-06 17:15:48 UTC) #1
caseq
On 2010/09/06 17:15:48, SeRya wrote: > Sergey, please have someone from v8 team review this ...
10 years, 3 months ago (2010-09-06 17:56:32 UTC) #2
antonm
Drive by comments. I agree with Andrei (caseq@) that check in MakeCachedArrayIndex seems strange. But ...
10 years, 3 months ago (2010-09-06 19:10:58 UTC) #3
SeRya
The disscussed assert removed from MakeCachedArrayIndex, added STATIC_CHECK to objects.h.
10 years, 3 months ago (2010-09-07 09:38:02 UTC) #4
Vyacheslav Egorov (Chromium)
LGTM if you add ASSERT((length > kMaxCachedArrayIndexLength) || (hash & String::kContainsCachedArrayIndexMask) == 0); into MakeCachedArrayIndex ...
10 years, 3 months ago (2010-09-07 10:21:58 UTC) #5
SeRya
The assert added, the function renamed.
10 years, 3 months ago (2010-09-07 10:49:20 UTC) #6
Vyacheslav Egorov (Chromium)
still LGTM.
10 years, 3 months ago (2010-09-07 10:54:53 UTC) #7
antonm
10 years, 3 months ago (2010-09-07 11:32:05 UTC) #8
LGTM and thanks

Powered by Google App Engine
This is Rietveld 408576698