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

Unified Diff: runtime/vm/object.h

Issue 10949028: Fix for issue 5223 : Import 'dart:core' implicitly only if it has not been (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 12667)
+++ runtime/vm/object.h (working copy)
@@ -2106,6 +2106,7 @@
intptr_t num_imports() const { return raw_ptr()->num_imports_; }
RawLibrary* ImportAt(intptr_t index) const;
RawLibraryPrefix* ImportPrefixAt(intptr_t index) const;
+ bool ImportsCorelib() const;
RawFunction* LookupFunctionInSource(const String& script_url,
intptr_t line_number) const;
@@ -2138,6 +2139,10 @@
raw_ptr()->debuggable_ = value;
}
+ bool IsCoreLibrary() const {
+ return raw() == CoreLibrary();
+ }
+
static RawLibrary* LookupLibrary(const String& url);
static RawLibrary* GetLibrary(intptr_t index);
static bool IsKeyUsed(intptr_t key);
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698