OLD | NEW |
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 } | 574 } |
575 | 575 |
576 private: | 576 private: |
577 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 577 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
578 }; | 578 }; |
579 | 579 |
580 | 580 |
581 class ScopedBlockingCall { | 581 class ScopedBlockingCall { |
582 public: | 582 public: |
583 ScopedBlockingCall() { | 583 ScopedBlockingCall() { |
584 Dart_ThreadDisableProfiling(); | 584 Dart_IsolateBlocked(); |
585 } | 585 } |
586 | 586 |
587 ~ScopedBlockingCall() { | 587 ~ScopedBlockingCall() { |
588 Dart_ThreadEnableProfiling(); | 588 Dart_IsolateUnblocked(); |
589 } | 589 } |
590 }; | 590 }; |
591 | 591 |
592 } // namespace bin | 592 } // namespace bin |
593 } // namespace dart | 593 } // namespace dart |
594 | 594 |
595 #endif // BIN_DARTUTILS_H_ | 595 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |