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

Side by Side Diff: runtime/include/dart_api.h

Issue 2583673002: When creating a JIT app snapshot, don't recreate the VM isolate snapshot. (Closed)
Patch Set: Created 4 years 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
OLDNEW
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 3267 matching lines...) Expand 10 before | Expand all | Expand 10 after
3278 * same version, must be built in the same DEBUG/RELEASE/PRODUCT mode, must 3278 * same version, must be built in the same DEBUG/RELEASE/PRODUCT mode, must
3279 * be targeting the same architecture, and must both be in checked mode or 3279 * be targeting the same architecture, and must both be in checked mode or
3280 * both in unchecked mode. 3280 * both in unchecked mode.
3281 * 3281 *
3282 * The buffers are scope allocated and are only valid until the next call to 3282 * The buffers are scope allocated and are only valid until the next call to
3283 * Dart_ExitScope. 3283 * Dart_ExitScope.
3284 * 3284 *
3285 * \return A valid handle if no error occurs during the operation. 3285 * \return A valid handle if no error occurs during the operation.
3286 */ 3286 */
3287 DART_EXPORT Dart_Handle 3287 DART_EXPORT Dart_Handle
3288 Dart_CreateAppJITSnapshot(uint8_t** vm_isolate_snapshot_buffer, 3288 Dart_CreateAppJITSnapshot(uint8_t** isolate_snapshot_buffer,
3289 intptr_t* vm_isolate_snapshot_size,
3290 uint8_t** isolate_snapshot_buffer,
3291 intptr_t* isolate_snapshot_size, 3289 intptr_t* isolate_snapshot_size,
3292 uint8_t** instructions_blob_buffer, 3290 uint8_t** instructions_blob_buffer,
3293 intptr_t* instructions_blob_size, 3291 intptr_t* instructions_blob_size,
3294 uint8_t** rodata_blob_buffer, 3292 uint8_t** rodata_blob_buffer,
3295 intptr_t* rodata_blob_size); 3293 intptr_t* rodata_blob_size);
3296 3294
3297 3295
3298 /** 3296 /**
3299 * Returns whether the VM only supports running from precompiled snapshots and 3297 * Returns whether the VM only supports running from precompiled snapshots and
3300 * not from any other kind of snapshot or from source (that is, the VM was 3298 * not from any other kind of snapshot or from source (that is, the VM was
3301 * compiled with DART_PRECOMPILED_RUNTIME). 3299 * compiled with DART_PRECOMPILED_RUNTIME).
3302 */ 3300 */
3303 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3301 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3304 3302
3305 3303
3306 /** 3304 /**
3307 * Print a native stack trace. Used for crash handling. 3305 * Print a native stack trace. Used for crash handling.
3308 */ 3306 */
3309 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3307 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3310 3308
3311 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3309 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | runtime/vm/stub_code.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698