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

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

Issue 2455593002: Revert "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/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;
7 import "dart:_internal" as internal; 5 import "dart:_internal" as internal;
8 6
9 /** 7 /**
10 * Returns a [MirrorSystem] for the current isolate. 8 * Returns a [MirrorSystem] for the current isolate.
11 */ 9 */
12 @patch MirrorSystem currentMirrorSystem() { 10 @patch MirrorSystem currentMirrorSystem() {
13 return _Mirrors.currentMirrorSystem(); 11 return _Mirrors.currentMirrorSystem();
14 } 12 }
15 13
16 /** 14 /**
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ((name.length > 0) && (name[0] == '_') && (library == null))) { 59 ((name.length > 0) && (name[0] == '_') && (library == null))) {
62 throw new ArgumentError(library); 60 throw new ArgumentError(library);
63 } 61 }
64 if (library != null) name = _mangleName(name, library._reflectee); 62 if (library != null) name = _mangleName(name, library._reflectee);
65 return new internal.Symbol.unvalidated(name); 63 return new internal.Symbol.unvalidated(name);
66 } 64 }
67 65
68 static _mangleName(String name, _MirrorReference lib) 66 static _mangleName(String name, _MirrorReference lib)
69 native "Mirrors_mangleName"; 67 native "Mirrors_mangleName";
70 } 68 }
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