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

Unified Diff: runtime/vm/object.cc

Issue 12663024: Implement optional parameter handling in ARM vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 20390)
+++ runtime/vm/object.cc (working copy)
@@ -7674,6 +7674,13 @@
// Allocate the code object.
Code& code = Code::ZoneHandle(Code::New(pointer_offsets.length()));
+
+ // Clone the object pool in the old space, if necessary.
+ Array& object_pool = Array::Handle(
+ Array::MakeArray(assembler->object_pool()));
+ if (!object_pool.IsOld()) {
+ object_pool ^= Object::Clone(object_pool, Heap::kOld);
+ }
{
NoGCScope no_gc;
@@ -7692,7 +7699,7 @@
code.set_instructions(instrs.raw());
// Set object pool in Instructions object.
- instrs.set_object_pool(Array::MakeArray(assembler->object_pool()));
+ instrs.set_object_pool(object_pool.raw());
}
return code.raw();
}
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698