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

Issue 10532158: Some cleanup of recompilation (Closed)

Created:
8 years, 6 months ago by Søren Gjesse
Modified:
8 years, 6 months ago
Reviewers:
ahe, ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Some cleanup of recompilation Addressed additional comments to https://chromiumcodereview.appspot.com/10537025. R=ahe@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8766

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments #

Total comments: 4

Patch Set 3 : Fixed "Closure" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -13 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 8 chunks +30 lines, -9 lines 0 comments Download
M lib/compiler/implementation/enqueue.dart View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Søren Gjesse
8 years, 6 months ago (2012-06-15 09:25:30 UTC) #1
ahe
Brilliant! LGTM https://chromiumcodereview.appspot.com/10532158/diff/1/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): https://chromiumcodereview.appspot.com/10532158/diff/1/lib/compiler/implementation/compiler.dart#newcode186 lib/compiler/implementation/compiler.dart:186: int phase; I agree, this field is ...
8 years, 6 months ago (2012-06-15 14:33:16 UTC) #2
ngeoffray
LGTM https://chromiumcodereview.appspot.com/10532158/diff/1/lib/compiler/implementation/ssa/optimize.dart File lib/compiler/implementation/ssa/optimize.dart (right): https://chromiumcodereview.appspot.com/10532158/diff/1/lib/compiler/implementation/ssa/optimize.dart#newcode595 lib/compiler/implementation/ssa/optimize.dart:595: work.element); I think putting such considerations into the ...
8 years, 6 months ago (2012-06-15 20:12:59 UTC) #3
Søren Gjesse
Thanks for the review. https://chromiumcodereview.appspot.com/10532158/diff/1/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): https://chromiumcodereview.appspot.com/10532158/diff/1/lib/compiler/implementation/compiler.dart#newcode186 lib/compiler/implementation/compiler.dart:186: int phase; On 2012/06/15 14:33:16, ...
8 years, 6 months ago (2012-06-18 06:40:36 UTC) #4
Søren Gjesse
https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implementation/enqueue.dart#newcode101 lib/compiler/implementation/enqueue.dart:101: element.getEnclosingClass() != compiler.closureClass; Turned out that comparing with compiler.closureClass ...
8 years, 6 months ago (2012-06-18 07:00:29 UTC) #5
ahe
https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implementation/enqueue.dart#newcode101 lib/compiler/implementation/enqueue.dart:101: element.getEnclosingClass() != compiler.closureClass; On 2012/06/18 07:00:29, Søren Gjesse wrote: ...
8 years, 6 months ago (2012-06-18 07:38:50 UTC) #6
Søren Gjesse
https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implementation/enqueue.dart#newcode101 lib/compiler/implementation/enqueue.dart:101: element.getEnclosingClass() != compiler.closureClass; On 2012/06/18 07:38:50, ahe wrote: > ...
8 years, 6 months ago (2012-06-18 07:44:10 UTC) #7
ahe
8 years, 6 months ago (2012-06-18 07:55:00 UTC) #8
https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implem...
File lib/compiler/implementation/enqueue.dart (right):

https://chromiumcodereview.appspot.com/10532158/diff/7002/lib/compiler/implem...
lib/compiler/implementation/enqueue.dart:101: element.getEnclosingClass() !=
compiler.closureClass;
On 2012/06/18 07:44:10, Søren Gjesse wrote:
> On 2012/06/18 07:38:50, ahe wrote:
> > On 2012/06/18 07:00:29, Søren Gjesse wrote:
> > > Turned out that comparing with compiler.closureClass did not work.
> > 
> > It MUST work. If it doesn't, then something is wrong. For example, perhaps
you
> > have to look at:
> > 
> > element.getEnclosingClass().superclass
> 
> Then something is wrong. Comparing with compiler.closureClass does not detect
> the classes created for local functions and closures. The reason for skipping
> them here is that the call function on then cannot be recompiled as they do
not
> exist as separate top level elements. Maybe they are constructed the wrong
way.

I don't know. All I know is testing for names does not work. Do you need help
debugging this?

Powered by Google App Engine
This is Rietveld 408576698