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

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

Issue 2416913002: Fix product build (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "vm/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/text_buffer.h" 10 #include "platform/text_buffer.h"
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 debugger_name_ = strdup(name); 1048 debugger_name_ = strdup(name);
1049 } 1049 }
1050 1050
1051 1051
1052 bool Isolate::IsPaused() const { 1052 bool Isolate::IsPaused() const {
1053 return (debugger_ != NULL) && (debugger_->PauseEvent() != NULL); 1053 return (debugger_ != NULL) && (debugger_->PauseEvent() != NULL);
1054 } 1054 }
1055 1055
1056 1056
1057 void Isolate::PausePostRequest() { 1057 void Isolate::PausePostRequest() {
1058 if (!FLAG_support_debugger) {
1059 return;
1060 }
1058 if (debugger_ == NULL) { 1061 if (debugger_ == NULL) {
1059 return; 1062 return;
1060 } 1063 }
1061 ASSERT(!IsPaused()); 1064 ASSERT(!IsPaused());
1062 const Error& error = Error::Handle(debugger_->PausePostRequest()); 1065 const Error& error = Error::Handle(debugger_->PausePostRequest());
1063 if (!error.IsNull()) { 1066 if (!error.IsNull()) {
1064 Exceptions::PropagateError(error); 1067 Exceptions::PropagateError(error);
1065 } 1068 }
1066 } 1069 }
1067 1070
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 void IsolateSpawnState::DecrementSpawnCount() { 2967 void IsolateSpawnState::DecrementSpawnCount() {
2965 ASSERT(spawn_count_monitor_ != NULL); 2968 ASSERT(spawn_count_monitor_ != NULL);
2966 ASSERT(spawn_count_ != NULL); 2969 ASSERT(spawn_count_ != NULL);
2967 MonitorLocker ml(spawn_count_monitor_); 2970 MonitorLocker ml(spawn_count_monitor_);
2968 ASSERT(*spawn_count_ > 0); 2971 ASSERT(*spawn_count_ > 0);
2969 *spawn_count_ = *spawn_count_ - 1; 2972 *spawn_count_ = *spawn_count_ - 1;
2970 ml.Notify(); 2973 ml.Notify();
2971 } 2974 }
2972 2975
2973 } // namespace dart 2976 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698