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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 19990006: Make sure that all objects store in the Code object live in old space. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.cc
===================================================================
--- runtime/vm/deopt_instructions.cc (revision 25346)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -827,7 +827,8 @@
DeoptInfoBuilder::DeoptInfoBuilder(const intptr_t num_args)
: instructions_(),
- object_table_(GrowableObjectArray::Handle(GrowableObjectArray::New())),
+ object_table_(GrowableObjectArray::Handle(
+ GrowableObjectArray::New(Heap::kOld))),
num_args_(num_args),
trie_root_(new TrieNode()),
current_info_number_(0),
@@ -844,7 +845,7 @@
}
// Add object.
const intptr_t result = object_table_.Length();
- object_table_.Add(obj);
+ object_table_.Add(obj, Heap::kOld);
return result;
}
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698