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

Side by Side Diff: runtime/bin/dartutils.h

Issue 1412733008: Switch profiler from isolates to threads (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | runtime/include/dart_api.h » ('j') | runtime/include/dart_api.h » ('J')
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 #ifndef BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 573 }
574 574
575 private: 575 private:
576 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 576 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
577 }; 577 };
578 578
579 579
580 class ScopedBlockingCall { 580 class ScopedBlockingCall {
581 public: 581 public:
582 ScopedBlockingCall() { 582 ScopedBlockingCall() {
583 Dart_IsolateBlocked(); 583 Dart_ThreadBlocked();
584 } 584 }
585 585
586 ~ScopedBlockingCall() { 586 ~ScopedBlockingCall() {
587 Dart_IsolateUnblocked(); 587 Dart_ThreadUnblocked();
588 } 588 }
589 }; 589 };
590 590
591 } // namespace bin 591 } // namespace bin
592 } // namespace dart 592 } // namespace dart
593 593
594 #endif // BIN_DARTUTILS_H_ 594 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | runtime/include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698