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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 512933002: Use PassiveObject were possible. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/deopt_instructions.cc
===================================================================
--- runtime/vm/deopt_instructions.cc (revision 39611)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -338,7 +338,7 @@
ASSERT(dest_frame_ != NULL && dest_frame_is_allocated_);
const Array& dest_array =
Array::Handle(Array::New(dest_frame_size_));
- Object& obj = Object::Handle();
+ PassiveObject& obj = PassiveObject::Handle();
Ivan Posva 2014/08/28 19:31:53 Handle(isolate())
siva 2014/08/29 00:17:01 Done.
for (intptr_t i = 0; i < dest_frame_size_; i++) {
obj = reinterpret_cast<RawObject*>(dest_frame_[i]);
dest_array.SetAt(i, obj);
@@ -431,7 +431,7 @@
}
void Execute(DeoptContext* deopt_context, intptr_t* dest_addr) {
- const Object& obj = Object::Handle(
+ const PassiveObject& obj = PassiveObject::Handle(
deopt_context->isolate(), deopt_context->ObjectAt(object_table_index_));
*reinterpret_cast<RawObject**>(dest_addr) = obj.raw();
}

Powered by Google App Engine
This is Rietveld 408576698