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

Issue 42280: Made Date parser work on flat strings instead of arbitrary ones. (Closed)

Created:
11 years, 9 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Flatten strings before parsing them as Date strings, and work on Vector of chars instead.

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -102 lines) Patch
M src/char-predicates-inl.h View 1 chunk +11 lines, -9 lines 0 comments Download
M src/dateparser.h View 4 chunks +90 lines, -6 lines 2 comments Download
M src/dateparser.cc View 4 chunks +2 lines, -83 lines 1 comment Download
M src/runtime.cc View 1 chunk +12 lines, -1 line 0 comments Download
M test/mjsunit/date-parse.js View 2 chunks +5 lines, -3 lines 2 comments Download

Messages

Total messages: 2 (0 generated)
Lasse Reichstein
Review please.
11 years, 9 months ago (2009-03-17 12:20:27 UTC) #1
Erik Corry
11 years, 9 months ago (2009-03-17 13:09:01 UTC) #2
LGTM.  Can the ARM compiler cope with the templates?

http://codereview.chromium.org/42280/diff/1/3
File src/dateparser.cc (right):

http://codereview.chromium.org/42280/diff/1/3#newcode85
Line 85: 
There should be two blank lines between methods.  Please put them back.

http://codereview.chromium.org/42280/diff/1/4
File src/dateparser.h (right):

http://codereview.chromium.org/42280/diff/1/4#newcode235
Line 235: template <typename Char>
Since the templates force us to move this to a .h file we should probably move
it to an -inl.h file.

http://codereview.chromium.org/42280/diff/1/4#newcode302
Line 302: // TODO(lrn) Is this correct?
I should be possible to find the answer to this and write a test that verifies
it.

http://codereview.chromium.org/42280/diff/1/6
File test/mjsunit/date-parse.js (right):

http://codereview.chromium.org/42280/diff/1/6#newcode44
Line 44: assertTrue(d > 0 && !isNaN(d), string);
This should be two assertions.

http://codereview.chromium.org/42280/diff/1/6#newcode49
Line 49: assertTrue(array.length == 2, "array [" + array + "] length != 2");
This should be assertEquals(2, array.length, ...)

Powered by Google App Engine
This is Rietveld 408576698