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

Unified Diff: runtime/vm/object.h

Issue 1149943009: Shrink some fields and add some bounds checks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 612a80b0b66b581dcdde0b5ec7a6e42abc434aac..4ad6ccc16a0d32fd79185b613fbd780266746551 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3419,9 +3419,7 @@ class Library : public Object {
static RawLibrary* New();
- void set_num_imports(intptr_t value) const {
- StoreNonPointer(&raw_ptr()->num_imports_, value);
- }
+ void set_num_imports(intptr_t value) const;
bool HasExports() const;
RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; }
RawGrowableObjectArray* metadata() const { return raw_ptr()->metadata_; }
@@ -4728,7 +4726,7 @@ class LibraryPrefix : public Instance {
virtual RawString* DictionaryName() const { return name(); }
RawArray* imports() const { return raw_ptr()->imports_; }
- int32_t num_imports() const { return raw_ptr()->num_imports_; }
+ intptr_t num_imports() const { return raw_ptr()->num_imports_; }
RawLibrary* importer() const { return raw_ptr()->importer_; }
RawInstance* LoadError() const;
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698