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

Issue 9348057: Split AST Declaration class, in preparation for new module declaration forms. (Closed)

Created:
8 years, 10 months ago by rossberg
Modified:
8 years, 10 months ago
CC:
v8-dev
Visibility:
Public.

Description

Split AST Declaration class, in preparation for new module declaration forms. Turns Declaration into an abstract class, and introduces VariableDeclaration as a concrete subclass. R=kmillikin@chromium.org BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=10662

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed Jakob's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -91 lines) Patch
M src/arm/full-codegen-arm.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M src/ast.h View 1 7 chunks +46 lines, -20 lines 0 comments Download
M src/ast.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M src/full-codegen.h View 3 chunks +4 lines, -2 lines 0 comments Download
M src/full-codegen.cc View 3 chunks +37 lines, -28 lines 0 comments Download
M src/hydrogen.h View 1 chunk +3 lines, -3 lines 0 comments Download
M src/hydrogen.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M src/parser.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M src/prettyprinter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/rewriter.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/full-codegen-x64.cc View 4 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rossberg
8 years, 10 months ago (2012-02-08 14:58:48 UTC) #1
Kevin Millikin (Chromium)
OK, LGTM. https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h File src/ast.h (right): https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h#newcode444 src/ast.h:444: virtual bool IsInlineable() const; I think this ...
8 years, 10 months ago (2012-02-08 15:23:03 UTC) #2
Jakob Kummerow
IsInlineable() LGTM. https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h File src/ast.h (right): https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h#newcode444 src/ast.h:444: virtual bool IsInlineable() const; On 2012/02/08 15:23:04, ...
8 years, 10 months ago (2012-02-08 15:40:28 UTC) #3
rossberg
https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h File src/ast.h (right): https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h#newcode444 src/ast.h:444: virtual bool IsInlineable() const; On 2012/02/08 15:23:04, Kevin Millikin ...
8 years, 10 months ago (2012-02-08 15:46:43 UTC) #4
rossberg
8 years, 10 months ago (2012-02-08 15:52:21 UTC) #5
https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h
File src/ast.h (right):

https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h#newcode450
src/ast.h:450: template<class> friend class AstNodeFactory;
On 2012/02/08 15:40:28, Jakob wrote:
> I think you don't need this any more.

Done.

https://chromiumcodereview.appspot.com/9348057/diff/1/src/ast.h#newcode475
src/ast.h:475: VariableDeclaration(VariableProxy* proxy,
On 2012/02/08 15:40:28, Jakob wrote:
> Suggestion: Move the constructor to a "protected:" section and add a
> "template<class> friend class AstNodeFactory;" in that section too, then the
> compiler will enforce for you that nobody accidentally calls the c'tor
directly.

Done.

Powered by Google App Engine
This is Rietveld 408576698