| 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 @patch | 5 @patch | 
| 6 class Object { | 6 class Object { | 
| 7   // The VM has its own implementation of equals. | 7   // The VM has its own implementation of equals. | 
| 8   @patch | 8   @patch | 
| 9   bool operator ==(other) native "Object_equals"; | 9   bool operator ==(other) native "Object_equals"; | 
| 10 | 10 | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 52         _symbolMapToStringMap(invocation.namedArguments)); | 52         _symbolMapToStringMap(invocation.namedArguments)); | 
| 53   } | 53   } | 
| 54 | 54 | 
| 55   @patch | 55   @patch | 
| 56   Type get runtimeType native "Object_runtimeType"; | 56   Type get runtimeType native "Object_runtimeType"; | 
| 57 | 57 | 
| 58   static bool _haveSameRuntimeType(a, b) native "Object_haveSameRuntimeType"; | 58   static bool _haveSameRuntimeType(a, b) native "Object_haveSameRuntimeType"; | 
| 59 | 59 | 
| 60   // Call this function instead of inlining instanceof, thus collecting | 60   // Call this function instead of inlining instanceof, thus collecting | 
| 61   // type feedback and reducing code size of unoptimized code. | 61   // type feedback and reducing code size of unoptimized code. | 
| 62   bool _instanceOf(instantiator_type_arguments, function_type_arguments, type) | 62   bool _instanceOf(instantiatorTypeArguments, functionTypeArguments, type) | 
| 63       native "Object_instanceOf"; | 63       native "Object_instanceOf"; | 
| 64 | 64 | 
| 65   // Group of functions for implementing fast simple instance of. | 65   // Group of functions for implementing fast simple instance of. | 
| 66   bool _simpleInstanceOf(type) native "Object_simpleInstanceOf"; | 66   bool _simpleInstanceOf(type) native "Object_simpleInstanceOf"; | 
| 67   bool _simpleInstanceOfTrue(type) => true; | 67   bool _simpleInstanceOfTrue(type) => true; | 
| 68   bool _simpleInstanceOfFalse(type) => false; | 68   bool _simpleInstanceOfFalse(type) => false; | 
| 69 | 69 | 
| 70   // Call this function instead of inlining 'as', thus collecting type | 70   // Call this function instead of inlining 'as', thus collecting type | 
| 71   // feedback. Returns receiver. | 71   // feedback. Returns receiver. | 
| 72   _as(instantiator_type_arguments, function_type_arguments, type) | 72   _as(instantiatorTypeArguments, functionTypeArguments, type) | 
| 73       native "Object_as"; | 73       native "Object_as"; | 
| 74 | 74 | 
| 75   static _symbolMapToStringMap(Map<Symbol, dynamic> map) { | 75   static _symbolMapToStringMap(Map<Symbol, dynamic> map) { | 
| 76     var result = new Map<String, dynamic>(); | 76     var result = new Map<String, dynamic>(); | 
| 77     map.forEach((Symbol key, value) { | 77     map.forEach((Symbol key, value) { | 
| 78       result[internal.Symbol.getName(key)] = value; | 78       result[internal.Symbol.getName(key)] = value; | 
| 79     }); | 79     }); | 
| 80     return result; | 80     return result; | 
| 81   } | 81   } | 
| 82 } | 82 } | 
| OLD | NEW | 
|---|