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

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

Issue 2059883003: DevFS initial implementation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « runtime/vm/dev_fs.cc ('k') | runtime/vm/json_stream.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) 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 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 // Visit objects in the debugger. 1769 // Visit objects in the debugger.
1770 if (FLAG_support_debugger) { 1770 if (FLAG_support_debugger) {
1771 debugger()->VisitObjectPointers(visitor); 1771 debugger()->VisitObjectPointers(visitor);
1772 } 1772 }
1773 1773
1774 NOT_IN_PRODUCT( 1774 NOT_IN_PRODUCT(
1775 // Visit objects that are being used for isolate reload. 1775 // Visit objects that are being used for isolate reload.
1776 if (reload_context() != NULL) { 1776 if (reload_context() != NULL) {
1777 reload_context()->VisitObjectPointers(visitor); 1777 reload_context()->VisitObjectPointers(visitor);
1778 } 1778 }
1779 if (ServiceIsolate::IsServiceIsolate(this)) {
1780 ServiceIsolate::VisitObjectPointers(visitor);
1781 }
1779 ) 1782 )
1780 1783
1781 // Visit objects that are being used for deoptimization. 1784 // Visit objects that are being used for deoptimization.
1782 if (deopt_context() != NULL) { 1785 if (deopt_context() != NULL) {
1783 deopt_context()->VisitObjectPointers(visitor); 1786 deopt_context()->VisitObjectPointers(visitor);
1784 } 1787 }
1785 1788
1786 // Visit objects in all threads (e.g., Dart stack, handles in zones). 1789 // Visit objects in all threads (e.g., Dart stack, handles in zones).
1787 thread_registry()->VisitObjectPointers(visitor, validate_frames); 1790 thread_registry()->VisitObjectPointers(visitor, validate_frames);
1788 } 1791 }
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 void IsolateSpawnState::DecrementSpawnCount() { 2795 void IsolateSpawnState::DecrementSpawnCount() {
2793 ASSERT(spawn_count_monitor_ != NULL); 2796 ASSERT(spawn_count_monitor_ != NULL);
2794 ASSERT(spawn_count_ != NULL); 2797 ASSERT(spawn_count_ != NULL);
2795 MonitorLocker ml(spawn_count_monitor_); 2798 MonitorLocker ml(spawn_count_monitor_);
2796 ASSERT(*spawn_count_ > 0); 2799 ASSERT(*spawn_count_ > 0);
2797 *spawn_count_ = *spawn_count_ - 1; 2800 *spawn_count_ = *spawn_count_ - 1;
2798 ml.Notify(); 2801 ml.Notify();
2799 } 2802 }
2800 2803
2801 } // namespace dart 2804 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dev_fs.cc ('k') | runtime/vm/json_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698