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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 12527006: A selector whose type mask is nullable, applies to methods on the null implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 part of js_backend; 5 part of js_backend;
6 6
7 typedef void Recompile(Element element); 7 typedef void Recompile(Element element);
8 8
9 class ReturnInfo { 9 class ReturnInfo {
10 HType returnType; 10 HType returnType;
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 * into the worklist. 1495 * into the worklist.
1496 * 1496 *
1497 * Invariant: [element] must be a declaration element. 1497 * Invariant: [element] must be a declaration element.
1498 */ 1498 */
1499 void eagerRecompile(Element element) { 1499 void eagerRecompile(Element element) {
1500 assert(invariant(element, element.isDeclaration)); 1500 assert(invariant(element, element.isDeclaration));
1501 generatedCode.remove(element); 1501 generatedCode.remove(element);
1502 generatedBailoutCode.remove(element); 1502 generatedBailoutCode.remove(element);
1503 compiler.enqueuer.codegen.addToWorkList(element); 1503 compiler.enqueuer.codegen.addToWorkList(element);
1504 } 1504 }
1505
1506 bool isNullImplementation(ClassElement cls) {
1507 return cls == jsNullClass;
1508 }
1505 } 1509 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698