Index: runtime/vm/unit_test.cc |
diff --git a/runtime/vm/unit_test.cc b/runtime/vm/unit_test.cc |
index de0f09cc7d9158b6db5cfedea4b9e6803cdb530e..24064f0284c305d9bb0c1ee2c6fc3ea141efaf36 100644 |
--- a/runtime/vm/unit_test.cc |
+++ b/runtime/vm/unit_test.cc |
@@ -208,7 +208,8 @@ char* TestCase::BigintToHexValue(Dart_CObject* bigint) { |
void AssemblerTest::Assemble() { |
- const String& function_name = String::ZoneHandle(Symbols::New(name_)); |
+ const String& function_name = String::ZoneHandle( |
+ Symbols::New(Thread::Current(), name_)); |
const Class& cls = Class::ZoneHandle( |
Class::New(function_name, |
Script::Handle(), |
@@ -237,7 +238,8 @@ CodeGenTest::CodeGenTest(const char* name) |
new LocalScope(NULL, 0, 0))), |
default_parameter_values_(new ZoneGrowableArray<const Instance*> ()) { |
ASSERT(name != NULL); |
- const String& function_name = String::ZoneHandle(Symbols::New(name)); |
+ const String& function_name = String::ZoneHandle( |
+ Symbols::New(Thread::Current(), name)); |
// Add function to a class and that class to the class dictionary so that |
// frame walking can be used. |
const Class& cls = Class::ZoneHandle( |