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

Unified Diff: vm/object.cc

Issue 10797021: - Start using the collected store buffer entries to find (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« no previous file with comments | « vm/object.h ('k') | vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 9784)
+++ vm/object.cc (working copy)
@@ -5942,8 +5942,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();
@@ -7710,7 +7710,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);
}
@@ -10584,12 +10584,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());
}
« no previous file with comments | « vm/object.h ('k') | vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698