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

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

Issue 10836235: Check overrides. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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;
(...skipping 14 matching lines...) Expand all
25 // We assign twice to [supertypeLoadState] as it contains asserts 25 // We assign twice to [supertypeLoadState] as it contains asserts
26 // which enforce certain sequence of transitions. 26 // which enforce certain sequence of transitions.
27 supertypeLoadState = ClassElement.STATE_STARTED; 27 supertypeLoadState = ClassElement.STATE_STARTED;
28 supertypeLoadState = ClassElement.STATE_DONE; 28 supertypeLoadState = ClassElement.STATE_DONE;
29 // Same as for [supertypeLoadState] above. 29 // Same as for [supertypeLoadState] above.
30 resolutionState = ClassElement.STATE_STARTED; 30 resolutionState = ClassElement.STATE_STARTED;
31 resolutionState = ClassElement.STATE_DONE; 31 resolutionState = ClassElement.STATE_DONE;
32 compiler.closureClass.ensureResolved(compiler); 32 compiler.closureClass.ensureResolved(compiler);
33 supertype = compiler.closureClass.computeType(compiler); 33 supertype = compiler.closureClass.computeType(compiler);
34 interfaces = const EmptyLink<Type>(); 34 interfaces = const EmptyLink<Type>();
35 allSupertypes = new Link<Type>(supertype);
35 } 36 }
36 bool isClosure() => true; 37 bool isClosure() => true;
37 } 38 }
38 39
39 class BoxElement extends Element { 40 class BoxElement extends Element {
40 BoxElement(SourceString name, Element enclosingElement) 41 BoxElement(SourceString name, Element enclosingElement)
41 : super(name, ElementKind.VARIABLE, enclosingElement); 42 : super(name, ElementKind.VARIABLE, enclosingElement);
42 } 43 }
43 44
44 class ThisElement extends Element { 45 class ThisElement extends Element {
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 } 472 }
472 473
473 visitTryStatement(TryStatement node) { 474 visitTryStatement(TryStatement node) {
474 // TODO(ngeoffray): implement finer grain state. 475 // TODO(ngeoffray): implement finer grain state.
475 bool oldInTryStatement = inTryStatement; 476 bool oldInTryStatement = inTryStatement;
476 inTryStatement = true; 477 inTryStatement = true;
477 node.visitChildren(this); 478 node.visitChildren(this);
478 inTryStatement = oldInTryStatement; 479 inTryStatement = oldInTryStatement;
479 } 480 }
480 } 481 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698