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

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

Issue 2451623006: Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork." (Closed)
Patch Set: Fix 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/mirrors_impl.dart ('k') | runtime/lib/mirrors_sources.gypi » ('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 import "dart:async" show Future;
6 import "dart:collection" show UnmodifiableListView, UnmodifiableMapView;
5 import "dart:_internal" as internal; 7 import "dart:_internal" as internal;
6 8
7 /** 9 /**
8 * Returns a [MirrorSystem] for the current isolate. 10 * Returns a [MirrorSystem] for the current isolate.
9 */ 11 */
10 @patch MirrorSystem currentMirrorSystem() { 12 @patch MirrorSystem currentMirrorSystem() {
11 return _Mirrors.currentMirrorSystem(); 13 return _Mirrors.currentMirrorSystem();
12 } 14 }
13 15
14 /** 16 /**
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ((name.length > 0) && (name[0] == '_') && (library == null))) { 61 ((name.length > 0) && (name[0] == '_') && (library == null))) {
60 throw new ArgumentError(library); 62 throw new ArgumentError(library);
61 } 63 }
62 if (library != null) name = _mangleName(name, library._reflectee); 64 if (library != null) name = _mangleName(name, library._reflectee);
63 return new internal.Symbol.unvalidated(name); 65 return new internal.Symbol.unvalidated(name);
64 } 66 }
65 67
66 static _mangleName(String name, _MirrorReference lib) 68 static _mangleName(String name, _MirrorReference lib)
67 native "Mirrors_mangleName"; 69 native "Mirrors_mangleName";
68 } 70 }
OLDNEW
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | runtime/lib/mirrors_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698