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

Side by Side Diff: runtime/vm/debugger_api_impl_test.cc

Issue 1424703004: Getting rid of Isolate::current_zone() usage. Pass thread instead of isolate where it makes sense. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix build Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_mirrors_api.h" 5 #include "include/dart_mirrors_api.h"
6 #include "include/dart_tools_api.h" 6 #include "include/dart_tools_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 "}\n" 2131 "}\n"
2132 "class Test4<A, B> extends Test2<A> {\n" 2132 "class Test4<A, B> extends Test2<A> {\n"
2133 "}\n" 2133 "}\n"
2134 "class Test5<A, B, C> extends Test4<A, B> {\n" 2134 "class Test5<A, B, C> extends Test4<A, B> {\n"
2135 "}\n" 2135 "}\n"
2136 "var s = new Set();\n" 2136 "var s = new Set();\n"
2137 "var l = new List();\n" 2137 "var l = new List();\n"
2138 "int main() {\n" 2138 "int main() {\n"
2139 "}\n"; 2139 "}\n";
2140 2140
2141 Isolate* isolate = Isolate::Current(); 2141
2142 Zone* zone = isolate->current_zone(); 2142 Zone* zone = thread->zone();
2143 LoadScript(kScriptChars); 2143 LoadScript(kScriptChars);
2144 ASSERT(script_lib != NULL); 2144 ASSERT(script_lib != NULL);
2145 ASSERT(Dart_IsLibrary(script_lib)); 2145 ASSERT(Dart_IsLibrary(script_lib));
2146 Dart_Handle core_lib = Dart_LookupLibrary(NewString("dart:core")); 2146 Dart_Handle core_lib = Dart_LookupLibrary(NewString("dart:core"));
2147 2147
2148 Dart_Handle Test_name = Dart_NewStringFromCString("Test"); 2148 Dart_Handle Test_name = Dart_NewStringFromCString("Test");
2149 Dart_Handle Test1_name = Dart_NewStringFromCString("Test1"); 2149 Dart_Handle Test1_name = Dart_NewStringFromCString("Test1");
2150 Dart_Handle Test2_name = Dart_NewStringFromCString("Test2"); 2150 Dart_Handle Test2_name = Dart_NewStringFromCString("Test2");
2151 Dart_Handle Test3_name = Dart_NewStringFromCString("Test3"); 2151 Dart_Handle Test3_name = Dart_NewStringFromCString("Test3");
2152 Dart_Handle Test4_name = Dart_NewStringFromCString("Test4"); 2152 Dart_Handle Test4_name = Dart_NewStringFromCString("Test4");
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13," 2316 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13,"
2317 " null, 4, 13, 3, 14, 10," 2317 " null, 4, 13, 3, 14, 10,"
2318 " null, 5, 17, 5, 18, 9, 19, 12," 2318 " null, 5, 17, 5, 18, 9, 19, 12,"
2319 " null, 6, 21, 1," 2319 " null, 6, 21, 1,"
2320 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," 2320 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8,"
2321 " null, 9, 29, 1]", 2321 " null, 9, 29, 1]",
2322 tokens_cstr); 2322 tokens_cstr);
2323 } 2323 }
2324 2324
2325 } // namespace dart 2325 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698