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

Unified Diff: runtime/vm/timer.h

Issue 1291803009: Enable concurrent optimization test after migrating scopes to Thread* (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update ASSERT in LongJumpScope. 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 | « runtime/vm/timeline.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/timer.h
diff --git a/runtime/vm/timer.h b/runtime/vm/timer.h
index 8f290dbec11885cac00a45d4bfe40a7705b2f3fa..32af994e34054657fb76e38cdaa118a02b6a6e6a 100644
--- a/runtime/vm/timer.h
+++ b/runtime/vm/timer.h
@@ -178,8 +178,8 @@ class TimerScope : public StackResource {
class PauseTimerScope : public StackResource {
public:
- PauseTimerScope(bool flag, Timer* timer, Isolate* isolate = NULL)
- : StackResource(isolate),
+ PauseTimerScope(bool flag, Timer* timer, Thread* thread = NULL)
+ : StackResource(thread),
nested_(false),
timer_(flag ? timer : NULL) {
if (timer_) {
@@ -214,13 +214,14 @@ isolate->timer_list().name().Start();
#define STOP_TIMER(isolate, name) \
isolate->timer_list().name().Stop();
-#define TIMERSCOPE(isolate, name) \
- TimerScope vm_internal_timer_(true, &(isolate->timer_list().name()), isolate)
+#define TIMERSCOPE(thread, name) \
+ TimerScope vm_internal_timer_( \
+ true, &(thread->isolate()->timer_list().name()), thread)
-#define PAUSETIMERSCOPE(isolate, name) \
+#define PAUSETIMERSCOPE(thread, name) \
PauseTimerScope vm_internal_timer_(true, \
- &(isolate->timer_list().name()), \
- isolate)
+ &(thread->isolate()->timer_list().name()), \
+ thread)
} // namespace dart
« no previous file with comments | « runtime/vm/timeline.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698