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

Unified Diff: runtime/vm/object_store.h

Issue 580903004: Make sure Bigint._digits is always a Uint32List (instead of sometimes null). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.h
===================================================================
--- runtime/vm/object_store.h (revision 40444)
+++ runtime/vm/object_store.h (working copy)
@@ -415,6 +415,16 @@
lookup_port_handler_ = function.raw();
}
+ RawTypedData* empty_uint32_array() const {
+ return empty_uint32_array_;
+ }
+ void set_empty_uint32_array(const TypedData& array) {
+ // Only set once.
+ ASSERT(empty_uint32_array_ == TypedData::null());
+ ASSERT(!array.IsNull());
+ empty_uint32_array_ = array.raw();
+ }
+
RawFunction* handle_message_function() const {
return handle_message_function_;
}
@@ -531,6 +541,7 @@
RawUnhandledException* preallocated_unhandled_exception_;
RawStacktrace* preallocated_stack_trace_;
RawFunction* lookup_port_handler_;
+ RawTypedData* empty_uint32_array_;
RawFunction* handle_message_function_;
RawArray* library_load_error_table_;
RawUserTag* default_tag_;
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698