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

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

Issue 2699853002: Sort class IDs before training AppJIT snapshots (Closed)
Patch Set: Add DeleteAllCode Created 3 years, 10 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/class_finalizer.h » ('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 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 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after
3272 intptr_t* vm_snapshot_data_size, 3272 intptr_t* vm_snapshot_data_size,
3273 uint8_t** vm_snapshot_instructions_buffer, 3273 uint8_t** vm_snapshot_instructions_buffer,
3274 intptr_t* vm_snapshot_instructions_size, 3274 intptr_t* vm_snapshot_instructions_size,
3275 uint8_t** isolate_snapshot_data_buffer, 3275 uint8_t** isolate_snapshot_data_buffer,
3276 intptr_t* isolate_snapshot_data_size, 3276 intptr_t* isolate_snapshot_data_size,
3277 uint8_t** isolate_snapshot_instructions_buffer, 3277 uint8_t** isolate_snapshot_instructions_buffer,
3278 intptr_t* isolate_snapshot_instructions_size); 3278 intptr_t* isolate_snapshot_instructions_size);
3279 3279
3280 3280
3281 /** 3281 /**
3282 * Sorts the class-ids in depth first traversal order of the inheritance
3283 * tree. This is a costly operation, but it can make method dispatch
3284 * more efficient and is done before writing snapshots.
3285 */
3286 DART_EXPORT void Dart_SortClasses();
3287
3288
3289 /**
3282 * Creates a snapshot that caches compiled code and type feedback for faster 3290 * Creates a snapshot that caches compiled code and type feedback for faster
3283 * startup and quicker warmup in a subsequent process. 3291 * startup and quicker warmup in a subsequent process.
3284 * 3292 *
3285 * Outputs a snapshot in two pieces. The pieces should be passed to 3293 * Outputs a snapshot in two pieces. The pieces should be passed to
3286 * Dart_CreateIsolate in a VM using the same VM snapshot pieces used in the 3294 * Dart_CreateIsolate in a VM using the same VM snapshot pieces used in the
3287 * current VM. The instructions piece must be loaded with read and execute 3295 * current VM. The instructions piece must be loaded with read and execute
3288 * permissions; the data piece may be loaded as read-only. 3296 * permissions; the data piece may be loaded as read-only.
3289 * 3297 *
3290 * - Requires the VM to have been started with --load-deferred-eagerly. 3298 * - Requires the VM to have been started with --load-deferred-eagerly.
3291 * - Requires the VM to have not been started with --precompilation. 3299 * - Requires the VM to have not been started with --precompilation.
(...skipping 22 matching lines...) Expand all
3314 */ 3322 */
3315 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3323 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3316 3324
3317 3325
3318 /** 3326 /**
3319 * Print a native stack trace. Used for crash handling. 3327 * Print a native stack trace. Used for crash handling.
3320 */ 3328 */
3321 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3329 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3322 3330
3323 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3331 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/class_finalizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698