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

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

Issue 2405393002: Use a single file for app snapshots. (Closed)
Patch Set: gen_snapshot Created 4 years, 2 months 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
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 3097 matching lines...) Expand 10 before | Expand all | Expand 10 after
3108 * The vm isolate snapshot, kInstructionsSnapshot and kDataSnapshot should be 3108 * The vm isolate snapshot, kInstructionsSnapshot and kDataSnapshot should be
3109 * passed as arguments to Dart_Initialize. The isolate snapshot should be 3109 * passed as arguments to Dart_Initialize. The isolate snapshot should be
3110 * passed to Dart_CreateIsolate. 3110 * passed to Dart_CreateIsolate.
3111 * 3111 *
3112 * The buffers are scope allocated and are only valid until the next call to 3112 * The buffers are scope allocated and are only valid until the next call to
3113 * Dart_ExitScope. 3113 * Dart_ExitScope.
3114 * 3114 *
3115 * \return A valid handle if no error occurs during the operation. 3115 * \return A valid handle if no error occurs during the operation.
3116 */ 3116 */
3117 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshotAssembly( 3117 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshotAssembly(
3118 uint8_t** vm_isolate_snapshot_buffer,
3119 intptr_t* vm_isolate_snapshot_size,
3120 uint8_t** isolate_snapshot_buffer,
3121 intptr_t* isolate_snapshot_size,
3122 uint8_t** assembly_buffer, 3118 uint8_t** assembly_buffer,
3123 intptr_t* assembly_size); 3119 intptr_t* assembly_size);
3124 3120
3125 3121
3126 /** 3122 /**
3127 * Same as Dart_CreatePrecompiledSnapshotAssembly, except the instruction and 3123 * Same as Dart_CreatePrecompiledSnapshotAssembly, except the instruction and
3128 * data snapshot pieces are provided directly as bytes that the embedder can 3124 * data snapshot pieces are provided directly as bytes that the embedder can
3129 * load with mmap. The instructions piece must be loaded with read and 3125 * load with mmap. The instructions piece must be loaded with read and
3130 * execute permissions; the rodata piece may be loaded as read-only. 3126 * execute permissions; the rodata piece may be loaded as read-only.
3131 */ 3127 */
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
3188 /** 3184 /**
3189 * Returns whether the VM was initialized with a precompiled snapshot. Only 3185 * Returns whether the VM was initialized with a precompiled snapshot. Only
3190 * valid after Dart_Initialize. 3186 * valid after Dart_Initialize.
3191 * DEPRECATED. This is currently used to disable Platform.executable and 3187 * DEPRECATED. This is currently used to disable Platform.executable and
3192 * Platform.resolvedExecutable under precompilation to prevent process 3188 * Platform.resolvedExecutable under precompilation to prevent process
3193 * spawning tests from becoming fork-bombs. 3189 * spawning tests from becoming fork-bombs.
3194 */ 3190 */
3195 DART_EXPORT bool Dart_IsRunningPrecompiledCode(); 3191 DART_EXPORT bool Dart_IsRunningPrecompiledCode();
3196 3192
3197 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3193 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698