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

Unified Diff: runtime/vm/unit_test.cc

Issue 1870343002: - Refactor Symbol allocation to expect a thread parameter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review feedback. Created 4 years, 8 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/symbols.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « runtime/vm/symbols.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698