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

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

Issue 22640009: Enable type inference when using mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add explicit case for fields again. Created 7 years, 3 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 626
627 Universe get resolverWorld => enqueuer.resolution.universe; 627 Universe get resolverWorld => enqueuer.resolution.universe;
628 Universe get codegenWorld => enqueuer.codegen.universe; 628 Universe get codegenWorld => enqueuer.codegen.universe;
629 629
630 bool get hasBuildId => buildId != UNDETERMINED_BUILD_ID; 630 bool get hasBuildId => buildId != UNDETERMINED_BUILD_ID;
631 631
632 bool get analyzeAll => analyzeAllFlag || compileAll; 632 bool get analyzeAll => analyzeAllFlag || compileAll;
633 633
634 bool get compileAll => false; 634 bool get compileAll => false;
635 635
636 bool get disableTypeInference { 636 bool get disableTypeInference => disableTypeInferenceFlag;
637 return disableTypeInferenceFlag || disableTypeInferenceForMirrors;
638 }
639 637
640 int getNextFreeClassId() => nextFreeClassId++; 638 int getNextFreeClassId() => nextFreeClassId++;
641 639
642 void ensure(bool condition) { 640 void ensure(bool condition) {
643 if (!condition) cancel('failed assertion in leg'); 641 if (!condition) cancel('failed assertion in leg');
644 } 642 }
645 643
646 void unimplemented(String methodName, 644 void unimplemented(String methodName,
647 {Node node, Token token, HInstruction instruction, 645 {Node node, Token token, HInstruction instruction,
648 Element element}) { 646 Element element}) {
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 1526
1529 void close() {} 1527 void close() {}
1530 1528
1531 toString() => name; 1529 toString() => name;
1532 1530
1533 /// Convenience method for getting an [api.CompilerOutputProvider]. 1531 /// Convenience method for getting an [api.CompilerOutputProvider].
1534 static NullSink outputProvider(String name, String extension) { 1532 static NullSink outputProvider(String name, String extension) {
1535 return new NullSink('$name.$extension'); 1533 return new NullSink('$name.$extension');
1536 } 1534 }
1537 } 1535 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698