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

Unified Diff: runtime/vm/object_x64_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_ia32_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_x64_test.cc
diff --git a/runtime/vm/object_x64_test.cc b/runtime/vm/object_x64_test.cc
index e1e64d203e897478fee4bc440415a9622e698121..74c0e5cd52920953101103c000ca730e59bcb510 100644
--- a/runtime/vm/object_x64_test.cc
+++ b/runtime/vm/object_x64_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(RAX, string_object);
__ ret();
}
« no previous file with comments | « runtime/vm/object_ia32_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698