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

Side by Side Diff: runtime/lib/mirrors_impl.dart

Issue 2451893004: Revert "Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."" (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « runtime/lib/lib_prefix.dart ('k') | runtime/lib/mirrors_patch.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 // VM-specific implementation of the dart:mirrors library. 5 // VM-specific implementation of the dart:mirrors library.
6 6
7 import "dart:collection" show UnmodifiableListView, UnmodifiableMapView;
8 import "dart:async" show Future;
9
7 var dirty = false; 10 var dirty = false;
8 final emptyList = new UnmodifiableListView([]); 11 final emptyList = new UnmodifiableListView([]);
9 final emptyMap = new UnmodifiableMapView({}); 12 final emptyMap = new UnmodifiableMapView({});
10 13
11 class _InternalMirrorError { 14 class _InternalMirrorError {
12 final String _msg; 15 final String _msg;
13 const _InternalMirrorError(String this._msg); 16 const _InternalMirrorError(String this._msg);
14 String toString() => _msg; 17 String toString() => _msg;
15 } 18 }
16 19
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 if (typeMirror == null) { 1670 if (typeMirror == null) {
1668 typeMirror = makeLocalTypeMirror(key); 1671 typeMirror = makeLocalTypeMirror(key);
1669 _instantiationCache[key] = typeMirror; 1672 _instantiationCache[key] = typeMirror;
1670 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { 1673 if (typeMirror is ClassMirror && !typeMirror._isGeneric) {
1671 _declarationCache[key] = typeMirror; 1674 _declarationCache[key] = typeMirror;
1672 } 1675 }
1673 } 1676 }
1674 return typeMirror; 1677 return typeMirror;
1675 } 1678 }
1676 } 1679 }
OLDNEW
« no previous file with comments | « runtime/lib/lib_prefix.dart ('k') | runtime/lib/mirrors_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698