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

Issue 7314002: Group property assignments in top-level blocks. (Closed)

Created:
9 years, 5 months ago by Vitaly Repeshko
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Group property assignments in top-level blocks. This patch enables insertion of To{Slow,Fast}Properties around a group of assigments to the same object even when they are put in a block (e.g. try-catch, if, etc.). Catching exceptions and disabling parts of code based on some config vars is rather common in top-level code. R=vegorov@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=8558

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review fixes #

Patch Set 3 : More review fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -10 lines) Patch
M src/parser.cc View 1 2 6 chunks +27 lines, -10 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
Vitaly Repeshko
9 years, 5 months ago (2011-07-06 12:51:10 UTC) #1
Vyacheslav Egorov (Chromium)
LGTM
9 years, 5 months ago (2011-07-06 13:06:00 UTC) #2
Vyacheslav Egorov (Chromium)
nit http://codereview.chromium.org/7314002/diff/1/src/parser.cc File src/parser.cc (right): http://codereview.chromium.org/7314002/diff/1/src/parser.cc#newcode1486 src/parser.cc:1486: if (top_scope_->is_global_scope()) { I think this if needs ...
9 years, 5 months ago (2011-07-06 13:07:51 UTC) #3
Kevin Millikin (Chromium)
http://codereview.chromium.org/7314002/diff/1/src/parser.cc File src/parser.cc (right): http://codereview.chromium.org/7314002/diff/1/src/parser.cc#newcode1486 src/parser.cc:1486: if (top_scope_->is_global_scope()) { I think it needs to be ...
9 years, 5 months ago (2011-07-06 13:15:03 UTC) #4
Vitaly Repeshko
Thanks for the comments! I addressed them and made one more change to avoid transforming ...
9 years, 5 months ago (2011-07-06 13:43:13 UTC) #5
Vyacheslav Egorov (Chromium)
Changes in codegens look hairy. Is it hard to track loop nesting in parser instead?
9 years, 5 months ago (2011-07-06 13:55:46 UTC) #6
Vitaly Repeshko
On 2011/07/06 13:55:46, Vyacheslav Egorov wrote: > Changes in codegens look hairy. > > Is ...
9 years, 5 months ago (2011-07-06 14:12:55 UTC) #7
Vyacheslav Egorov (Chromium)
9 years, 5 months ago (2011-07-06 14:19:05 UTC) #8
LGTM

http://codereview.chromium.org/7314002/diff/5003/src/parser.cc
File src/parser.cc (right):

http://codereview.chromium.org/7314002/diff/5003/src/parser.cc#newcode828
src/parser.cc:828: // so it should be used only for code that will only be run
once.
Comment should mention that we do not apply this opt to loops.

Powered by Google App Engine
This is Rietveld 408576698