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

Unified Diff: runtime/bin/vmservice/client/lib/src/service/object.dart

Issue 392933003: vm/observatory: Clean up script access (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/service/object.dart
diff --git a/runtime/bin/vmservice/client/lib/src/service/object.dart b/runtime/bin/vmservice/client/lib/src/service/object.dart
index 044927d990c4bba7c702f6d49ce925c1d51c46a7..0353ae3f872fc0ebee04c993bc04b0c588a3d8f9 100644
--- a/runtime/bin/vmservice/client/lib/src/service/object.dart
+++ b/runtime/bin/vmservice/client/lib/src/service/object.dart
@@ -1338,6 +1338,7 @@ class Script extends ServiceObject with Coverage {
@observable String kind;
@observable int firstTokenPos;
@observable int lastTokenPos;
+ @observable Library owningLibrary;
bool get canCache => true;
bool get immutable => true;
@@ -1360,6 +1361,7 @@ class Script extends ServiceObject with Coverage {
Map _tokenToCol = {};
void _update(ObservableMap map, bool mapIsRef) {
+ _upgradeCollection(map, isolate);
kind = map['kind'];
_url = map['name'];
_shortUrl = _url.substring(_url.lastIndexOf('/') + 1);
@@ -1367,6 +1369,7 @@ class Script extends ServiceObject with Coverage {
vmName = _url;
_processSource(map['source']);
_parseTokenPosTable(map['tokenPosTable']);
Cutch 2014/07/15 22:06:54 There should be a "if (mapIsRef) { return; }" stat
Michael Lippautz (Google) 2014/07/15 22:40:42 Done.
+ owningLibrary = map['owning_library'];
}
void _parseTokenPosTable(List<List<int>> table) {

Powered by Google App Engine
This is Rietveld 408576698