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

Unified Diff: runtime/vm/benchmark_test.h

Issue 1285293004: Migrate most uses of StackZone(Isolate*) to Thread*. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Final cleanup. 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
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/benchmark_test.h
diff --git a/runtime/vm/benchmark_test.h b/runtime/vm/benchmark_test.h
index de7d6ae5bcf2f0ada5a0906bd584576be34e4f18..a91bc01f42356ec745142381a0eb85d8b8318ab6 100644
--- a/runtime/vm/benchmark_test.h
+++ b/runtime/vm/benchmark_test.h
@@ -38,8 +38,10 @@ extern const uint8_t* isolate_snapshot_buffer;
void Dart_Benchmark##name(Benchmark* benchmark) { \
FLAG_old_gen_growth_space_ratio = 100; \
BenchmarkIsolateScope __isolate__(benchmark); \
- StackZone __zone__(benchmark->isolate()); \
- HandleScope __hs__(benchmark->isolate()); \
+ Thread* __thread__ = Thread::Current(); \
+ ASSERT(__thread__->isolate() == benchmark->isolate()); \
+ StackZone __zone__(__thread__); \
+ HandleScope __hs__(__thread__); \
Dart_BenchmarkHelper##name(benchmark); \
} \
static void Dart_BenchmarkHelper##name(Benchmark* benchmark)
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698