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

Unified Diff: runtime/vm/object_ia32_test.cc

Issue 10786003: Ensure objects emitted in code are allocated in old space. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 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/object.cc ('k') | runtime/vm/object_x64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_ia32_test.cc
diff --git a/runtime/vm/object_ia32_test.cc b/runtime/vm/object_ia32_test.cc
index 2c9785087d8ef85ab1c9d74e483421dce466f069..2c28cc1b57a8741be411a370288dc3e751e9df43 100644
--- a/runtime/vm/object_ia32_test.cc
+++ b/runtime/vm/object_ia32_test.cc
@@ -32,7 +32,8 @@ void GenerateIncrement(Assembler* assembler) {
// Generate a dart code sequence that embeds a string object in it.
// This is used to test Embedded String objects in the instructions.
void GenerateEmbedStringInCode(Assembler* assembler, const char* str) {
- const String& string_object = String::ZoneHandle(String::New(str));
+ const String& string_object =
+ String::ZoneHandle(String::New(str, Heap::kOld));
__ LoadObject(EAX, string_object);
__ ret();
}
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_x64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698