Index: runtime/vm/stub_code_x64_test.cc |
diff --git a/runtime/vm/stub_code_x64_test.cc b/runtime/vm/stub_code_x64_test.cc |
index 2fc99bd2edbcbd527f479224aa01480e288d0d56..95fc3a56478c1c0263f2cbf346f98941bdd3bab1 100644 |
--- a/runtime/vm/stub_code_x64_test.cc |
+++ b/runtime/vm/stub_code_x64_test.cc |
@@ -37,7 +37,7 @@ static void GenerateCallToCallRuntimeStub(Assembler* assembler, |
const Smi& smi1 = Smi::ZoneHandle(Smi::New(value1)); |
const Smi& smi2 = Smi::ZoneHandle(Smi::New(value2)); |
const Object& result = Object::ZoneHandle(); |
- const Context& context = Context::ZoneHandle(Context::New(0)); |
+ const Context& context = Context::ZoneHandle(Context::New(0, Heap::kOld)); |
ASSERT(context.isolate() == Isolate::Current()); |
__ enter(Immediate(0)); |
__ LoadObject(CTX, context); |
@@ -118,7 +118,7 @@ static void GenerateCallToCallNativeCFunctionStub(Assembler* assembler, |
Dart_NativeFunction native_function = |
NativeTestEntry_Lookup(native_name, argc); |
ASSERT(native_function != NULL); |
- const Context& context = Context::ZoneHandle(Context::New(0)); |
+ const Context& context = Context::ZoneHandle(Context::New(0, Heap::kOld)); |
ASSERT(context.isolate() == Isolate::Current()); |
__ enter(Immediate(0)); |
__ LoadObject(CTX, context); |