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

Unified Diff: runtime/observatory/lib/src/repositories/megamorphiccache.dart

Issue 2279203003: Converted Observatory megamorphiccache-view element (Closed)
Patch Set: Removed double Copyright notice Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/repositories/megamorphiccache.dart
diff --git a/runtime/observatory/lib/src/repositories/objectstore.dart b/runtime/observatory/lib/src/repositories/megamorphiccache.dart
similarity index 60%
copy from runtime/observatory/lib/src/repositories/objectstore.dart
copy to runtime/observatory/lib/src/repositories/megamorphiccache.dart
index 7456d9a467fb8de15d35a817bd8862ce7f380469..59adbe3e08654856e3b84d55fba6c16f86d753b0 100644
--- a/runtime/observatory/lib/src/repositories/objectstore.dart
+++ b/runtime/observatory/lib/src/repositories/megamorphiccache.dart
@@ -4,10 +4,10 @@
part of repositories;
-class ObjectStoreRepository implements M.ObjectStoreRepository {
- Future<M.ObjectStore> get(M.IsolateRef i) async {
+class MegamorphicCacheRepository extends M.MegamorphicCacheRepository {
+ Future<M.MegamorphicCache> get(M.IsolateRef i, String id) async{
S.Isolate isolate = i as S.Isolate;
assert(isolate != null);
- return isolate.getObjectStore();
+ return (await isolate.getObject(id)) as S.MegamorphicCache;
}
}
« no previous file with comments | « runtime/observatory/lib/src/models/repositories/megamorphiccache.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698