OLD | NEW |
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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
8 | 8 |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "lib/stacktrace.h" | 10 #include "lib/stacktrace.h" |
(...skipping 6615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6626 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize(); | 6626 *vm_isolate_snapshot_size = writer.VmIsolateSnapshotSize(); |
6627 *isolate_snapshot_size = writer.IsolateSnapshotSize(); | 6627 *isolate_snapshot_size = writer.IsolateSnapshotSize(); |
6628 *instructions_blob_size = instructions_writer.InstructionsBlobSize(); | 6628 *instructions_blob_size = instructions_writer.InstructionsBlobSize(); |
6629 *rodata_blob_size = instructions_writer.RodataBlobSize(); | 6629 *rodata_blob_size = instructions_writer.RodataBlobSize(); |
6630 | 6630 |
6631 return Api::Success(); | 6631 return Api::Success(); |
6632 #endif | 6632 #endif |
6633 } | 6633 } |
6634 | 6634 |
6635 | 6635 |
6636 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { | |
6637 return Snapshot::IncludesCode(Dart::snapshot_kind()); | |
6638 } | |
6639 | |
6640 | |
6641 DART_EXPORT bool Dart_IsPrecompiledRuntime() { | 6636 DART_EXPORT bool Dart_IsPrecompiledRuntime() { |
6642 #if defined(DART_PRECOMPILED_RUNTIME) | 6637 #if defined(DART_PRECOMPILED_RUNTIME) |
6643 return true; | 6638 return true; |
6644 #else | 6639 #else |
6645 return false; | 6640 return false; |
6646 #endif | 6641 #endif |
6647 } | 6642 } |
6648 | 6643 |
6649 } // namespace dart | 6644 } // namespace dart |
OLD | NEW |