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

Unified Diff: runtime/vm/symbols.cc

Issue 1302623002: Only test optimizing compilation in helper thread compilation test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update URL. Created 5 years, 4 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
« runtime/vm/compiler_test.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/symbols.cc
diff --git a/runtime/vm/symbols.cc b/runtime/vm/symbols.cc
index 7cafda2542bb1e98851bb50d4ea94525b2fc0fe7..dbaba441704fcd4fcacf94251b3149d705b25431 100644
--- a/runtime/vm/symbols.cc
+++ b/runtime/vm/symbols.cc
@@ -386,8 +386,9 @@ RawString* Symbols::FromConcat(const String& str1, const String& str2) {
// StringType can be StringSlice, ConcatString, or {Latin1,UTF16,UTF32}Array.
template<typename StringType>
RawString* Symbols::NewSymbol(const StringType& str) {
- Isolate* isolate = Isolate::Current();
- String& symbol = String::Handle(isolate);
+ Thread* thread = Thread::Current();
+ Isolate* isolate = thread->isolate();
+ String& symbol = String::Handle(thread->zone());
{
Isolate* vm_isolate = Dart::vm_isolate();
SymbolTable table(isolate, vm_isolate->object_store()->symbol_table());
« runtime/vm/compiler_test.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698