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

Unified Diff: runtime/vm/object.h

Issue 184523002: Allocation sinking for contexts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: added new test Created 6 years, 1 month 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
===================================================================
--- runtime/vm/object.h (revision 41687)
+++ runtime/vm/object.h (working copy)
@@ -4067,10 +4067,10 @@
return OFFSET_OF(RawContext, num_variables_);
}
- RawInstance* At(intptr_t context_index) const {
- return *InstanceAddr(context_index);
+ RawObject* At(intptr_t context_index) const {
+ return *ObjectAddr(context_index);
}
- inline void SetAt(intptr_t context_index, const Instance& value) const;
+ inline void SetAt(intptr_t context_index, const Object& value) const;
void Dump(int indent = 0) const;
@@ -4096,7 +4096,7 @@
Heap::Space space = Heap::kNew);
private:
- RawInstance* const* InstanceAddr(intptr_t context_index) const {
+ RawObject* const* ObjectAddr(intptr_t context_index) const {
ASSERT((context_index >= 0) && (context_index < num_variables()));
return &raw_ptr()->data()[context_index];
}
@@ -7446,8 +7446,8 @@
}
-void Context::SetAt(intptr_t index, const Instance& value) const {
- StorePointer(InstanceAddr(index), value.raw());
+void Context::SetAt(intptr_t index, const Object& value) const {
+ StorePointer(ObjectAddr(index), value.raw());
}

Powered by Google App Engine
This is Rietveld 408576698