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

Side by Side Diff: lib/compiler/implementation/ssa/closure.dart

Issue 10310040: Sort the output (for now just the classes and instance members). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove (now) unnecessary changes. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class ClosureFieldElement extends Element { 5 class ClosureFieldElement extends Element {
6 ClosureFieldElement(SourceString name, ClassElement enclosing) 6 ClosureFieldElement(SourceString name, ClassElement enclosing)
7 : super(name, ElementKind.FIELD, enclosing); 7 : super(name, ElementKind.FIELD, enclosing);
8 8
9 bool isInstanceMember() => true; 9 bool isInstanceMember() => true;
10 bool isAssignable() => false; 10 bool isAssignable() => false;
11 11
12 String toString() => "ClosureFieldElement($name)"; 12 String toString() => "ClosureFieldElement($name)";
13 } 13 }
14 14
15 class ClosureClassElement extends ClassElement { 15 class ClosureClassElement extends ClassElement {
16 ClosureClassElement(Compiler compiler, Element enclosingElement) 16 ClosureClassElement(Compiler compiler, Element enclosingElement)
17 : super(compiler.closureClass.name, enclosingElement) { 17 : super(compiler.closureClass.name,
18 enclosingElement,
19 compiler.universe.getNextFreeClassId()) {
kasperl 2012/05/09 08:15:20 So all closures come after the classes in a source
floitsch 2012/05/09 10:55:08 Done.
18 isResolved = true; 20 isResolved = true;
19 compiler.closureClass.ensureResolved(compiler); 21 compiler.closureClass.ensureResolved(compiler);
20 supertype = compiler.closureClass.computeType(compiler); 22 supertype = compiler.closureClass.computeType(compiler);
21 } 23 }
22 } 24 }
23 25
24 class BoxElement extends Element { 26 class BoxElement extends Element {
25 BoxElement(SourceString name, Element enclosingElement) 27 BoxElement(SourceString name, Element enclosingElement)
26 : super(name, ElementKind.VARIABLE, enclosingElement); 28 : super(name, ElementKind.VARIABLE, enclosingElement);
27 } 29 }
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 declareLocal(elements[node]); 426 declareLocal(elements[node]);
425 } 427 }
426 428
427 visitTryStatement(TryStatement node) { 429 visitTryStatement(TryStatement node) {
428 // TODO(ngeoffray): implement finer grain state. 430 // TODO(ngeoffray): implement finer grain state.
429 inTryCatchOrFinally = true; 431 inTryCatchOrFinally = true;
430 node.visitChildren(this); 432 node.visitChildren(this);
431 inTryCatchOrFinally = false; 433 inTryCatchOrFinally = false;
432 } 434 }
433 } 435 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698