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(); |
} |