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

Side by Side Diff: runtime/vm/raw_object_snapshot.cc

Issue 11299298: Cache lookups at megamorphic call sites in optimized code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
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 #include "vm/bigint_operations.h" 5 #include "vm/bigint_operations.h"
6 #include "vm/object.h" 6 #include "vm/object.h"
7 #include "vm/object_store.h" 7 #include "vm/object_store.h"
8 #include "vm/snapshot.h" 8 #include "vm/snapshot.h"
9 #include "vm/symbols.h" 9 #include "vm/symbols.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1244 } 1244 }
1245 1245
1246 1246
1247 void RawICData::WriteTo(SnapshotWriter* writer, 1247 void RawICData::WriteTo(SnapshotWriter* writer,
1248 intptr_t object_id, 1248 intptr_t object_id,
1249 Snapshot::Kind kind) { 1249 Snapshot::Kind kind) {
1250 UNREACHABLE(); 1250 UNREACHABLE();
1251 } 1251 }
1252 1252
1253 1253
1254 RawMegamorphicCache* MegamorphicCache::ReadFrom(SnapshotReader* reader,
1255 intptr_t object_id,
1256 intptr_t tags,
1257 Snapshot::Kind kind) {
1258 UNREACHABLE();
1259 return NULL;
1260 }
1261
1262
1263 void RawMegamorphicCache::WriteTo(SnapshotWriter* writer,
1264 intptr_t object_id,
1265 Snapshot::Kind kind) {
1266 UNREACHABLE();
1267 }
1268
1269
1254 RawSubtypeTestCache* SubtypeTestCache::ReadFrom(SnapshotReader* reader, 1270 RawSubtypeTestCache* SubtypeTestCache::ReadFrom(SnapshotReader* reader,
1255 intptr_t object_id, 1271 intptr_t object_id,
1256 intptr_t tags, 1272 intptr_t tags,
1257 Snapshot::Kind kind) { 1273 Snapshot::Kind kind) {
1258 UNREACHABLE(); 1274 UNREACHABLE();
1259 return NULL; 1275 return NULL;
1260 } 1276 }
1261 1277
1262 1278
1263 void RawSubtypeTestCache::WriteTo(SnapshotWriter* writer, 1279 void RawSubtypeTestCache::WriteTo(SnapshotWriter* writer,
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 // Write out the class and tags information. 2226 // Write out the class and tags information.
2211 writer->WriteIndexedObject(kWeakPropertyCid); 2227 writer->WriteIndexedObject(kWeakPropertyCid);
2212 writer->WriteIntptrValue(writer->GetObjectTags(this)); 2228 writer->WriteIntptrValue(writer->GetObjectTags(this));
2213 2229
2214 // Write out all the other fields. 2230 // Write out all the other fields.
2215 writer->Write<RawObject*>(ptr()->key_); 2231 writer->Write<RawObject*>(ptr()->key_);
2216 writer->Write<RawObject*>(ptr()->value_); 2232 writer->Write<RawObject*>(ptr()->value_);
2217 } 2233 }
2218 2234
2219 } // namespace dart 2235 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698