| OLD | NEW |
| 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"; | 7 import "dart:collection"; |
| 8 | 8 |
| 9 // These values are allowed to be passed directly over the wire. | 9 // These values are allowed to be passed directly over the wire. |
| 10 bool _isSimpleValue(var value) { | 10 bool _isSimpleValue(var value) { |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 _invoke(reflectee, functionName, arguments, argumentNames) | 336 _invoke(reflectee, functionName, arguments, argumentNames) |
| 337 native 'InstanceMirror_invoke'; | 337 native 'InstanceMirror_invoke'; |
| 338 | 338 |
| 339 _invokeGetter(reflectee, getterName) | 339 _invokeGetter(reflectee, getterName) |
| 340 native 'InstanceMirror_invokeGetter'; | 340 native 'InstanceMirror_invokeGetter'; |
| 341 | 341 |
| 342 _invokeSetter(reflectee, setterName, value) | 342 _invokeSetter(reflectee, setterName, value) |
| 343 native 'InstanceMirror_invokeSetter'; | 343 native 'InstanceMirror_invokeSetter'; |
| 344 | 344 |
| 345 static _computeType(reflectee) | 345 static _computeType(reflectee) |
| 346 native 'Object_runtimeType'; | 346 native 'InstanceMirror_computeType'; |
| 347 } | 347 } |
| 348 | 348 |
| 349 class _LocalClosureMirrorImpl extends _LocalInstanceMirrorImpl | 349 class _LocalClosureMirrorImpl extends _LocalInstanceMirrorImpl |
| 350 implements ClosureMirror { | 350 implements ClosureMirror { |
| 351 _LocalClosureMirrorImpl(reflectee) : super(reflectee); | 351 _LocalClosureMirrorImpl(reflectee) : super(reflectee); |
| 352 | 352 |
| 353 MethodMirror _function; | 353 MethodMirror _function; |
| 354 MethodMirror get function { | 354 MethodMirror get function { |
| 355 if (_function == null) { | 355 if (_function == null) { |
| 356 _function = _computeFunction(reflectee); | 356 _function = _computeFunction(reflectee); |
| (...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 if (typeMirror == null) { | 1321 if (typeMirror == null) { |
| 1322 typeMirror = makeLocalTypeMirror(key); | 1322 typeMirror = makeLocalTypeMirror(key); |
| 1323 _instanitationCache[key] = typeMirror; | 1323 _instanitationCache[key] = typeMirror; |
| 1324 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { | 1324 if (typeMirror is ClassMirror && !typeMirror._isGeneric) { |
| 1325 _declarationCache[key] = typeMirror; | 1325 _declarationCache[key] = typeMirror; |
| 1326 } | 1326 } |
| 1327 } | 1327 } |
| 1328 return typeMirror; | 1328 return typeMirror; |
| 1329 } | 1329 } |
| 1330 } | 1330 } |
| OLD | NEW |