| Index: vm/object.cc
|
| ===================================================================
|
| --- vm/object.cc (revision 9751)
|
| +++ vm/object.cc (working copy)
|
| @@ -5939,8 +5939,8 @@
|
| RawLibrary* Library::NewLibraryHelper(const String& url,
|
| bool import_core_lib) {
|
| const Library& result = Library::Handle(Library::New());
|
| - result.raw_ptr()->name_ = url.raw();
|
| - result.raw_ptr()->url_ = url.raw();
|
| + result.StorePointer(&result.raw_ptr()->name_, url.raw());
|
| + result.StorePointer(&result.raw_ptr()->url_, url.raw());
|
| result.raw_ptr()->private_key_ = Scanner::AllocatePrivateKey(result);
|
| result.raw_ptr()->dictionary_ = Array::Empty();
|
| result.raw_ptr()->anonymous_classes_ = Array::Empty();
|
| @@ -7707,7 +7707,7 @@
|
| const Class& cls = Class::Handle(clazz());
|
| intptr_t field_offset = cls.type_arguments_instance_field_offset();
|
| ASSERT(field_offset != Class::kNoTypeArguments);
|
| - *FieldAddrAtOffset(field_offset) = value.raw();
|
| + SetFieldAtOffset(field_offset, value);
|
| }
|
|
|
|
|
| @@ -10581,12 +10581,12 @@
|
|
|
|
|
| void Closure::set_context(const Context& value) const {
|
| - raw_ptr()->context_ = value.raw();
|
| + StorePointer(&raw_ptr()->context_, value.raw());
|
| }
|
|
|
|
|
| void Closure::set_function(const Function& value) const {
|
| - raw_ptr()->function_ = value.raw();
|
| + StorePointer(&raw_ptr()->function_, value.raw());
|
| }
|
|
|
|
|
|
|