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 8294013: Merge the 3 different closure nodes into a single node. (Closed)

Created:
9 years, 2 months ago by regis
Modified:
9 years, 2 months ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Merge the 3 different closure nodes into a single node. Committed: https://code.google.com/p/dart/source/detail?r=485

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -125 lines) Patch
M runtime/vm/ast.h View 1 2 chunks +18 lines, -54 lines 0 comments Download
M runtime/vm/ast_printer.cc View 1 1 chunk +0 lines, -14 lines 0 comments Download
M runtime/vm/code_generator_ia32.cc View 1 2 chunks +16 lines, -50 lines 0 comments Download
M runtime/vm/parser.cc View 1 3 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
regis
9 years, 2 months ago (2011-10-17 18:02:29 UTC) #1
siva
LGTM http://codereview.chromium.org/8294013/diff/1/runtime/vm/ast.h File runtime/vm/ast.h (right): http://codereview.chromium.org/8294013/diff/1/runtime/vm/ast.h#newcode375 runtime/vm/ast.h:375: !function.IsImplicitInstanceClosureFunction()); I am wondering if this would be ...
9 years, 2 months ago (2011-10-17 19:03:39 UTC) #2
regis
9 years, 2 months ago (2011-10-17 20:19:28 UTC) #3
Thanks!

http://codereview.chromium.org/8294013/diff/1/runtime/vm/ast.h
File runtime/vm/ast.h (right):

http://codereview.chromium.org/8294013/diff/1/runtime/vm/ast.h#newcode375
runtime/vm/ast.h:375: !function.IsImplicitInstanceClosureFunction());
On 2011/10/17 19:03:39, asiva wrote:
> I am wondering if this would be more readable as:
> ASSERT((function.IsImplicitInstanceClosureFunction() && receiver != NULL &&
> scope_ == NULL) ||
> (function.IsNonImplicitClosureFunction && scope_ != NULL && receiver == NULL)
||
> (function.IsImplicitStaticClosureFunction() && receiver == NULL && scope_ ==
> NULL))

Done.

Powered by Google App Engine
This is Rietveld 408576698