| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
| 4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef RUNTIME_INCLUDE_DART_API_H_ | 7 #ifndef RUNTIME_INCLUDE_DART_API_H_ |
| 8 #define RUNTIME_INCLUDE_DART_API_H_ | 8 #define RUNTIME_INCLUDE_DART_API_H_ |
| 9 | 9 |
| 10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 | 605 |
| 606 /** | 606 /** |
| 607 * Isolate specific flags are set when creating a new isolate using the | 607 * Isolate specific flags are set when creating a new isolate using the |
| 608 * Dart_IsolateFlags structure. | 608 * Dart_IsolateFlags structure. |
| 609 * | 609 * |
| 610 * Current version of flags is encoded in a 32-bit integer with 16 bits used | 610 * Current version of flags is encoded in a 32-bit integer with 16 bits used |
| 611 * for each part. | 611 * for each part. |
| 612 */ | 612 */ |
| 613 | 613 |
| 614 #define DART_FLAGS_CURRENT_VERSION (0x00000001) | 614 #define DART_FLAGS_CURRENT_VERSION (0x00000002) |
| 615 | 615 |
| 616 typedef struct { | 616 typedef struct { |
| 617 int32_t version; | 617 int32_t version; |
| 618 bool enable_type_checks; | 618 bool enable_type_checks; |
| 619 bool enable_asserts; | 619 bool enable_asserts; |
| 620 bool enable_error_on_bad_type; | 620 bool enable_error_on_bad_type; |
| 621 bool enable_error_on_bad_override; | 621 bool enable_error_on_bad_override; |
| 622 bool use_field_guards; |
| 622 } Dart_IsolateFlags; | 623 } Dart_IsolateFlags; |
| 623 | 624 |
| 624 /** | 625 /** |
| 625 * An isolate creation and initialization callback function. | 626 * An isolate creation and initialization callback function. |
| 626 * | 627 * |
| 627 * This callback, provided by the embedder, is called when the vm | 628 * This callback, provided by the embedder, is called when the vm |
| 628 * needs to create an isolate. The callback should create an isolate | 629 * needs to create an isolate. The callback should create an isolate |
| 629 * by calling Dart_CreateIsolate and load any scripts required for | 630 * by calling Dart_CreateIsolate and load any scripts required for |
| 630 * execution. | 631 * execution. |
| 631 * | 632 * |
| (...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3341 */ | 3342 */ |
| 3342 DART_EXPORT bool Dart_IsPrecompiledRuntime(); | 3343 DART_EXPORT bool Dart_IsPrecompiledRuntime(); |
| 3343 | 3344 |
| 3344 | 3345 |
| 3345 /** | 3346 /** |
| 3346 * Print a native stack trace. Used for crash handling. | 3347 * Print a native stack trace. Used for crash handling. |
| 3347 */ | 3348 */ |
| 3348 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); | 3349 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); |
| 3349 | 3350 |
| 3350 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 3351 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |