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

Unified Diff: runtime/vm/find_code_object_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/exceptions.cc ('k') | runtime/vm/flag_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/find_code_object_test.cc
diff --git a/runtime/vm/find_code_object_test.cc b/runtime/vm/find_code_object_test.cc
index caece810fa76847639bf49b4a070987f4a3dfba3..bac5c1ee851f7df4e1b9c9fee4f4a9790af8a3c2 100644
--- a/runtime/vm/find_code_object_test.cc
+++ b/runtime/vm/find_code_object_test.cc
@@ -55,7 +55,7 @@ VM_TEST_CASE(FindCodeObject) {
source = String::New(scriptChars);
script = Script::New(url, source, RawScript::kScriptTag);
EXPECT(CompilerTest::TestCompileScript(lib, script));
- clsA = lib.LookupClass(String::Handle(Symbols::New("A")));
+ clsA = lib.LookupClass(String::Handle(Symbols::New(thread, "A")));
EXPECT(!clsA.IsNull());
ClassFinalizer::ProcessPendingClasses();
for (int i = 0; i < kNumFunctions; i++) {
@@ -105,7 +105,7 @@ VM_TEST_CASE(FindCodeObject) {
source = String::New(scriptChars);
script = Script::New(url, source, RawScript::kScriptTag);
EXPECT(CompilerTest::TestCompileScript(lib, script));
- clsB = lib.LookupClass(String::Handle(Symbols::New("B")));
+ clsB = lib.LookupClass(String::Handle(Symbols::New(thread, "B")));
EXPECT(!clsB.IsNull());
ClassFinalizer::ProcessPendingClasses();
for (int i = 0; i < kNumFunctions; i++) {
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/flag_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698