| 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;
|
| }
|
| }
|
|
|