|
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
Total comments: 22
Total comments: 7
|
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
|
Total messages: 6 (0 generated)
|