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

Unified Diff: runtime/vm/object.h

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/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 0f6ecbb1976220ad249d2ac42d4f2a220d753070..9012c6642e8080487af2ea484fb530de8380d011 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2514,6 +2514,7 @@ class Script : public Object {
void Tokenize(const String& private_key) const;
+ RawLibrary* FindLibrary() const;
RawString* GetLine(intptr_t line_number) const;
RawString* GetSnippet(intptr_t from_token_pos,
intptr_t to_token_pos) const;
@@ -2676,7 +2677,7 @@ class Library : public Object {
RawFunction* LookupLocalFunction(const String& name) const;
RawLibraryPrefix* LookupLocalLibraryPrefix(const String& name) const;
RawScript* LookupScript(const String& url) const;
- RawArray* LoadedScripts() const;
+ RawArray* LoadedScripts(bool cached = true) const;
Michael Lippautz (Google) 2014/07/15 17:52:55 Make parameter explicit? LoadedScripts() uses a c
// Resolve name in the scope of this library. First check the cache
// of already resolved names for this library. Then look in the
« no previous file with comments | « runtime/vm/coverage_test.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698