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

Side by Side Diff: runtime/vm/dart_entry.h

Issue 2988493002: Reapply "Improve hashCode for closure objects" with fixes. (Closed)
Patch Set: Created 3 years, 5 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/vm/clustered_snapshot.cc ('k') | runtime/vm/dart_entry.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef RUNTIME_VM_DART_ENTRY_H_ 5 #ifndef RUNTIME_VM_DART_ENTRY_H_
6 #define RUNTIME_VM_DART_ENTRY_H_ 6 #define RUNTIME_VM_DART_ENTRY_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // On success, returns a RawInstance. On failure, a RawError. 177 // On success, returns a RawInstance. On failure, a RawError.
178 static RawObject* ToString(const Instance& receiver); 178 static RawObject* ToString(const Instance& receiver);
179 179
180 // On success, returns a RawInstance. On failure, a RawError. 180 // On success, returns a RawInstance. On failure, a RawError.
181 static RawObject* HashCode(const Instance& receiver); 181 static RawObject* HashCode(const Instance& receiver);
182 182
183 // On success, returns a RawInstance. On failure, a RawError. 183 // On success, returns a RawInstance. On failure, a RawError.
184 static RawObject* Equals(const Instance& left, const Instance& right); 184 static RawObject* Equals(const Instance& left, const Instance& right);
185 185
186 // On success, returns a RawInstance. On failure, a RawError.
187 static RawObject* IdentityHashCode(const Instance& object);
188
186 // Returns the handler if one has been registered for this port id. 189 // Returns the handler if one has been registered for this port id.
187 static RawObject* LookupHandler(Dart_Port port_id); 190 static RawObject* LookupHandler(Dart_Port port_id);
188 191
189 // Returns null on success, a RawError on failure. 192 // Returns null on success, a RawError on failure.
190 static RawObject* HandleMessage(const Object& handler, 193 static RawObject* HandleMessage(const Object& handler,
191 const Instance& dart_message); 194 const Instance& dart_message);
192 195
193 // Returns null on success, a RawError on failure. 196 // Returns null on success, a RawError on failure.
194 static RawObject* DrainMicrotaskQueue(); 197 static RawObject* DrainMicrotaskQueue();
195 198
196 // map[key] = value; 199 // map[key] = value;
197 // 200 //
198 // Returns null on success, a RawError on failure. 201 // Returns null on success, a RawError on failure.
199 static RawObject* MapSetAt(const Instance& map, 202 static RawObject* MapSetAt(const Instance& map,
200 const Instance& key, 203 const Instance& key,
201 const Instance& value); 204 const Instance& value);
202 }; 205 };
203 206
204 } // namespace dart 207 } // namespace dart
205 208
206 #endif // RUNTIME_VM_DART_ENTRY_H_ 209 #endif // RUNTIME_VM_DART_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698