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

Issue 7039037: Create stand-alone json parser (including scanner). (Closed)

Created:
9 years, 7 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Create stand-alone json parser (including scanner). The current json parser and scanner inherits fromt he normal scanners and parsers, which are more complicated than we need for parsing json. The supplied scanner works directly on the string supplied and has a fast case mode for scanning only ascii characters (it will simply create a substring or a symbol directly from the existing string). To allow for creating symbols from a substring I have added a SubStringAsciiSymbolKey that creates the hash based from our string without extracting the sub-string. In case we need to add the symbol it simply creates the symbol directly from the characters inside the given string. Committed: http://code.google.com/p/v8/source/detail?r=8029

Patch Set 1 #

Total comments: 22

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+818 lines, -548 lines) Patch
M src/SConscript View 1 chunk +1 line, -0 lines 0 comments Download
M src/conversions.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/conversions.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/factory.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/factory.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download
M src/heap.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/heap.cc View 1 chunk +20 lines, -0 lines 0 comments Download
A src/json-parser.h View 1 1 chunk +161 lines, -0 lines 0 comments Download
A src/json-parser.cc View 1 2 1 chunk +504 lines, -0 lines 0 comments Download
M src/objects.h View 2 chunks +7 lines, -0 lines 0 comments Download
M src/objects.cc View 3 chunks +84 lines, -2 lines 0 comments Download
M src/parser.h View 1 chunk +0 lines, -62 lines 0 comments Download
M src/parser.cc View 1 chunk +0 lines, -194 lines 0 comments Download
M src/runtime.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/scanner.h View 1 chunk +0 lines, -50 lines 0 comments Download
M src/scanner.cc View 1 chunk +0 lines, -240 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Rico
This is a first version of the stand-alone json parser. I have a bunch of ...
9 years, 7 months ago (2011-05-18 12:08:07 UTC) #1
Lasse Reichstein
Request denied. LGTM. http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc File src/json-parser.cc (right): http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc#newcode46 src/json-parser.cc:46: is_sequential_ascii_ = true; This is not ...
9 years, 7 months ago (2011-05-19 07:27:40 UTC) #2
Rico
Please have another look http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc File src/json-parser.cc (right): http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc#newcode46 src/json-parser.cc:46: is_sequential_ascii_ = true; On 2011/05/19 ...
9 years, 7 months ago (2011-05-23 18:18:12 UTC) #3
Lasse Reichstein
http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc File src/json-parser.cc (right): http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc#newcode46 src/json-parser.cc:46: is_sequential_ascii_ = true; That what is not the case? ...
9 years, 7 months ago (2011-05-24 07:28:33 UTC) #4
Rico
Comments addressed http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc File src/json-parser.cc (right): http://codereview.chromium.org/7039037/diff/1/src/json-parser.cc#newcode46 src/json-parser.cc:46: is_sequential_ascii_ = true; On 2011/05/24 07:28:34, Lasse ...
9 years, 7 months ago (2011-05-24 08:49:24 UTC) #5
Lasse Reichstein
9 years, 7 months ago (2011-05-24 11:28:01 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698