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

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

Issue 345223003: Add VM internal Dart class 'ClassID' used to manage class-ids of known classes. Next CL: add consta… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/lib/string_patch.dart » ('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 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 bool operator ==(other) native "Object_equals"; 8 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 _as(instantiator, instantiator_type_arguments, type) native "Object_as"; 64 _as(instantiator, instantiator_type_arguments, type) native "Object_as";
65 65
66 static _symbolMapToStringMap(Map<Symbol, dynamic> map) { 66 static _symbolMapToStringMap(Map<Symbol, dynamic> map) {
67 var result = new Map<String, dynamic>(); 67 var result = new Map<String, dynamic>();
68 map.forEach((Symbol key, value) { 68 map.forEach((Symbol key, value) {
69 result[internal.Symbol.getName(key)] = value; 69 result[internal.Symbol.getName(key)] = value;
70 }); 70 });
71 return result; 71 return result;
72 } 72 }
73 73
74 int get _cid native "Object_cid";
75
76 _leftShiftWithMask32(count, mask) { 74 _leftShiftWithMask32(count, mask) {
77 return (this << count) & mask; 75 return (this << count) & mask;
78 } 76 }
79 } 77 }
OLDNEW
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/lib/string_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698