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

Unified Diff: runtime/vm/object.cc

Issue 247623007: Remove VM isolate new-space allocation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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/dart.cc ('k') | runtime/vm/scavenger.h » ('j') | 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 35335)
+++ runtime/vm/object.cc (working copy)
@@ -671,10 +671,10 @@
*smi_illegal_cid_ = Smi::New(kIllegalCid);
String& error_str = String::Handle();
- error_str = String::New("SnapshotWriter Error");
- *snapshot_writer_error_ = LanguageError::New(error_str);
- error_str = String::New("Branch offset overflow");
- *branch_offset_error_ = LanguageError::New(error_str);
+ error_str = String::New("SnapshotWriter Error", Heap::kOld);
+ *snapshot_writer_error_ = LanguageError::New(error_str, Heap::kOld);
+ error_str = String::New("Branch offset overflow", Heap::kOld);
+ *branch_offset_error_ = LanguageError::New(error_str, Heap::kOld);
ASSERT(!null_object_->IsSmi());
ASSERT(!null_array_->IsSmi());
@@ -767,7 +767,7 @@
// TODO(iposva): Add more of the VM classes here.
cls = context_class_;
- fields = Array::New(1);
+ fields = Array::New(1, Heap::kOld);
name = Symbols::New("@parent_");
fld = Field::New(name, false, false, false, cls, 0);
fields.SetAt(0, fld);
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/scavenger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698