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 b320f60d72fe0fada166e6fc4c554850912db501..6b9b2afca6921771b4168661ce089c90fc43d9f1 100644 |
--- a/runtime/vm/stub_code_x64_test.cc |
+++ b/runtime/vm/stub_code_x64_test.cc |
@@ -20,13 +20,15 @@ |
namespace dart { |
static Function* CreateFunction(const char* name) { |
- const String& class_name = String::Handle(Symbols::New("ownerClass")); |
+ const String& class_name = String::Handle(Symbols::New(Thread::Current(), |
+ "ownerClass")); |
const Script& script = Script::Handle(); |
const Class& owner_class = Class::Handle( |
Class::New(class_name, script, TokenPosition::kNoSource)); |
const Library& lib = Library::Handle(Library::New(class_name)); |
owner_class.set_library(lib); |
- const String& function_name = String::ZoneHandle(Symbols::New(name)); |
+ const String& function_name = String::ZoneHandle( |
+ Symbols::New(Thread::Current(), name)); |
Function& function = Function::ZoneHandle( |
Function::New(function_name, RawFunction::kRegularFunction, |
true, false, false, false, false, owner_class, |