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 "bin/isolate_data.h" |
8 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
9 #include "include/dart_native_api.h" | 10 #include "include/dart_native_api.h" |
10 | |
11 #include "platform/assert.h" | 11 #include "platform/assert.h" |
12 #include "platform/globals.h" | 12 #include "platform/globals.h" |
13 | 13 |
14 #include "bin/isolate_data.h" | |
15 | |
16 namespace dart { | 14 namespace dart { |
17 namespace bin { | 15 namespace bin { |
18 | 16 |
19 // Forward declarations. | 17 // Forward declarations. |
20 class File; | 18 class File; |
21 class OSError; | 19 class OSError; |
22 | 20 |
23 /* Handles error handles returned from Dart API functions. If a value | 21 /* Handles error handles returned from Dart API functions. If a value |
24 * is an error, uses Dart_PropagateError to throw it to the enclosing | 22 * is an error, uses Dart_PropagateError to throw it to the enclosing |
25 * Dart activation. Otherwise, returns the original handle. | 23 * Dart activation. Otherwise, returns the original handle. |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 | 599 |
602 ~ScopedBlockingCall() { | 600 ~ScopedBlockingCall() { |
603 Dart_ThreadEnableProfiling(); | 601 Dart_ThreadEnableProfiling(); |
604 } | 602 } |
605 }; | 603 }; |
606 | 604 |
607 } // namespace bin | 605 } // namespace bin |
608 } // namespace dart | 606 } // namespace dart |
609 | 607 |
610 #endif // BIN_DARTUTILS_H_ | 608 #endif // BIN_DARTUTILS_H_ |
OLD | NEW |