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

Issue 39184: Optimizing nested, constant object literals (like JSON objects) by building o... (Closed)

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

Description

Optimizing nested, constant object literals (like JSON objects) by building one large object template for the entire object instead of one for each sub-object. Committed: http://code.google.com/p/v8/source/detail?r=1432

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -30 lines) Patch
M src/ast.h View 1 4 chunks +15 lines, -5 lines 0 comments Download
M src/ast.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/codegen-ia32.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/parser.cc View 1 3 chunks +25 lines, -10 lines 1 comment Download
M src/runtime.cc View 1 4 chunks +32 lines, -14 lines 0 comments Download
A test/mjsunit/object-literal.js View 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
olehougaard
11 years, 9 months ago (2009-03-05 12:19:09 UTC) #1
Mads Ager (chromium)
Doesn't this change lead to duplicate object literal boilerplates for nested object literals? http://codereview.chromium.org/39184/diff/1/3 File ...
11 years, 9 months ago (2009-03-05 13:19:13 UTC) #2
olehougaard
Please take another look at this. http://codereview.chromium.org/39184/diff/1/3 File src/ast.h (right): http://codereview.chromium.org/39184/diff/1/3#newcode698 Line 698: bool is_constant_; ...
11 years, 9 months ago (2009-03-06 09:05:10 UTC) #3
Mads Ager (chromium)
11 years, 9 months ago (2009-03-06 09:30:54 UTC) #4
LGTM

http://codereview.chromium.org/39184/diff/1001/23
File src/parser.cc (right):

http://codereview.chromium.org/39184/diff/1001/23#newcode165
Line 165: // Otherwise, it return undefined literal as the placeholder
it return -> return.

Powered by Google App Engine
This is Rietveld 408576698