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

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

Issue 2291823002: Converted Observatory function-view element (Closed)
Patch Set: Updated observatory_sources.gypi 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/function.dart
diff --git a/runtime/observatory/lib/src/repositories/objectstore.dart b/runtime/observatory/lib/src/repositories/function.dart
similarity index 63%
copy from runtime/observatory/lib/src/repositories/objectstore.dart
copy to runtime/observatory/lib/src/repositories/function.dart
index 7456d9a467fb8de15d35a817bd8862ce7f380469..2ab16821550cb2c12b125ac60839ba80096dd530 100644
--- a/runtime/observatory/lib/src/repositories/objectstore.dart
+++ b/runtime/observatory/lib/src/repositories/function.dart
@@ -4,10 +4,10 @@
part of repositories;
-class ObjectStoreRepository implements M.ObjectStoreRepository {
- Future<M.ObjectStore> get(M.IsolateRef i) async {
+class FunctionRepository extends M.FunctionRepository {
+ Future<M.Function> 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.ServiceFunction;
}
}
« no previous file with comments | « runtime/observatory/lib/src/repositories/field.dart ('k') | runtime/observatory/lib/src/repositories/icdata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698