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

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

Issue 2655223005: Minor adjustments to vm patch files (Closed)
Patch Set: Created 3 years, 10 months 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/integers_patch.dart ('k') | no next file » | 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 @patch class Object { 5 @patch class Object {
6 6
7 // The VM has its own implementation of equals. 7 // The VM has its own implementation of equals.
8 @patch bool operator ==(other) native "Object_equals"; 8 @patch bool operator ==(other) native "Object_equals";
9 9
10 // Helpers used to implement hashCode. If a hashCode is used, we remember it 10 // Helpers used to implement hashCode. If a hashCode is used, we remember it
(...skipping 25 matching lines...) Expand all
36 // A statically dispatched version of Object.toString. 36 // A statically dispatched version of Object.toString.
37 static String _toString(obj) native "Object_toString"; 37 static String _toString(obj) native "Object_toString";
38 38
39 _noSuchMethod(bool isMethod, 39 _noSuchMethod(bool isMethod,
40 String memberName, 40 String memberName,
41 int type, 41 int type,
42 List arguments, 42 List arguments,
43 Map<String, dynamic> namedArguments) 43 Map<String, dynamic> namedArguments)
44 native "Object_noSuchMethod"; 44 native "Object_noSuchMethod";
45 45
46 @patch noSuchMethod(Invocation invocation) { 46 @patch dynamic noSuchMethod(Invocation invocation) {
hausner 2017/01/27 21:47:56 This should not be necessary; the type of a functi
47 return _noSuchMethod(invocation.isMethod, 47 return _noSuchMethod(invocation.isMethod,
48 internal.Symbol.getName(invocation.memberName), 48 internal.Symbol.getName(invocation.memberName),
49 invocation._type, 49 invocation._type,
50 invocation.positionalArguments, 50 invocation.positionalArguments,
51 _symbolMapToStringMap(invocation.namedArguments)); 51 _symbolMapToStringMap(invocation.namedArguments));
52 } 52 }
53 53
54 @patch Type get runtimeType native "Object_runtimeType"; 54 @patch Type get runtimeType native "Object_runtimeType";
55 55
56 static bool _haveSameRuntimeType(a, b) native "Object_haveSameRuntimeType"; 56 static bool _haveSameRuntimeType(a, b) native "Object_haveSameRuntimeType";
(...skipping 19 matching lines...) Expand all
76 _as(instantiator_type_arguments, type) native "Object_as"; 76 _as(instantiator_type_arguments, type) native "Object_as";
77 77
78 static _symbolMapToStringMap(Map<Symbol, dynamic> map) { 78 static _symbolMapToStringMap(Map<Symbol, dynamic> map) {
79 var result = new Map<String, dynamic>(); 79 var result = new Map<String, dynamic>();
80 map.forEach((Symbol key, value) { 80 map.forEach((Symbol key, value) {
81 result[internal.Symbol.getName(key)] = value; 81 result[internal.Symbol.getName(key)] = value;
82 }); 82 });
83 return result; 83 return result;
84 } 84 }
85 } 85 }
OLDNEW
« no previous file with comments | « runtime/lib/integers_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698