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

Issue 93066: Built-in JSON support (Closed)

Created:
11 years, 8 months ago by Christian Plesner Hansen
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

- Extended lazy loading to general objects, not just functions. - Added lazily loaded JSON object.

Patch Set 1 #

Total comments: 22
Unified diffs Side-by-side diffs Delta from patch set Stats (+708 lines, -94 lines) Patch
M src/SConscript View 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/ic-arm.cc View 3 chunks +13 lines, -26 lines 3 comments Download
M src/bootstrapper.cc View 2 chunks +17 lines, -0 lines 0 comments Download
M src/contexts.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/date-delay.js View 2 chunks +22 lines, -1 line 0 comments Download
M src/factory.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/handles.h View 1 chunk +2 lines, -2 lines 2 comments Download
M src/handles.cc View 3 chunks +19 lines, -7 lines 1 comment Download
M src/heap.cc View 2 chunks +1 line, -1 line 0 comments Download
M src/ia32/ic-ia32.cc View 4 chunks +16 lines, -24 lines 1 comment Download
A src/json-delay.js View 1 chunk +287 lines, -0 lines 13 comments Download
M src/macros.py View 1 chunk +2 lines, -0 lines 0 comments Download
M src/messages.js View 1 chunk +3 lines, -0 lines 0 comments Download
M src/objects.h View 8 chunks +27 lines, -11 lines 2 comments Download
M src/objects.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M src/objects-debug.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M src/objects-inl.h View 3 chunks +12 lines, -3 lines 0 comments Download
M src/property.h View 1 chunk +15 lines, -4 lines 0 comments Download
M src/string.js View 2 chunks +7 lines, -1 line 0 comments Download
M src/v8natives.js View 3 chunks +21 lines, -2 lines 0 comments Download
A test/mjsunit/json.js View 1 chunk +195 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.js View 3 chunks +31 lines, -3 lines 0 comments Download
M tools/visual_studio/js2c.cmd View 1 chunk +1 line, -1 line 0 comments Download
M tools/visual_studio/v8.vcproj View 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Christian Plesner Hansen
11 years, 8 months ago (2009-04-23 13:23:37 UTC) #1
Lasse Reichstein
drive-by comments on json-delay.js http://codereview.chromium.org/93066/diff/1/12 File src/json-delay.js (right): http://codereview.chromium.org/93066/diff/1/12#newcode40 Line 40: // include them in ...
11 years, 8 months ago (2009-04-23 15:28:49 UTC) #2
Mads Ager (chromium)
LGTM after addressing these comments. We should fix the xcode project and make sure to ...
11 years, 8 months ago (2009-04-23 19:09:25 UTC) #3
arv (Not doing code reviews)
This is an exciting change. http://codereview.chromium.org/93066/diff/1/12 File src/json-delay.js (right): http://codereview.chromium.org/93066/diff/1/12#newcode57 Line 57: return global.eval('(' + ...
11 years, 8 months ago (2009-04-23 21:07:58 UTC) #4
Christian Plesner Hansen
No comment means "fixed". http://codereview.chromium.org/93066/diff/1/3 File src/arm/ic-arm.cc (left): http://codereview.chromium.org/93066/diff/1/3#oldcode280 Line 280: // Check that the ...
11 years, 8 months ago (2009-04-24 08:11:21 UTC) #5
Christian Plesner Hansen
11 years, 8 months ago (2009-04-24 13:41:11 UTC) #6
http://codereview.chromium.org/93066/diff/1/12
File src/json-delay.js (right):

http://codereview.chromium.org/93066/diff/1/12#newcode57
Line 57: return global.eval('(' + s + ')');
Update: it turned out to be straightforward to move parsing and validation into
native code so I've done that.  No more regexps and eval.

Powered by Google App Engine
This is Rietveld 408576698