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

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

Issue 2512483002: Support reloading from source on top of a script snapshot. (Closed)
Patch Set: ... Created 4 years, 1 month 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 | « no previous file | runtime/vm/isolate.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 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 * 2727 *
2728 * This tag indicates that the embedder should canonicalize 'url' with 2728 * This tag indicates that the embedder should canonicalize 'url' with
2729 * respect to 'library'. For most embedders, the 2729 * respect to 'library'. For most embedders, the
2730 * Dart_DefaultCanonicalizeUrl function is a sufficient implementation 2730 * Dart_DefaultCanonicalizeUrl function is a sufficient implementation
2731 * of this tag. The return value should be a string holding the 2731 * of this tag. The return value should be a string holding the
2732 * canonicalized url. 2732 * canonicalized url.
2733 * 2733 *
2734 * Dart_kScriptTag 2734 * Dart_kScriptTag
2735 * 2735 *
2736 * This tag indicates that the root script should be loaded from 2736 * This tag indicates that the root script should be loaded from
2737 * 'url'. The 'library' parameter will always be null. Once the root 2737 * 'url'. If the 'library' parameter is not null, it is the url of the
2738 * package map that should be used when loading. Once the root
2738 * script is loaded, the embedder should call Dart_LoadScript to 2739 * script is loaded, the embedder should call Dart_LoadScript to
2739 * install the root script in the VM. The return value should be an 2740 * install the root script in the VM. The return value should be an
2740 * error or null. 2741 * error or null.
2741 * 2742 *
2742 * Dart_kSourceTag 2743 * Dart_kSourceTag
2743 * 2744 *
2744 * This tag is used to load a file referenced by Dart language "part 2745 * This tag is used to load a file referenced by Dart language "part
2745 * of" directive. Once the file's source is loaded, the embedder 2746 * of" directive. Once the file's source is loaded, the embedder
2746 * should call Dart_LoadSource to provide the file contents to the VM. 2747 * should call Dart_LoadSource to provide the file contents to the VM.
2747 * The return value should be an error or null. 2748 * The return value should be an error or null.
2748 * 2749 *
2749 * Dart_kImportTag 2750 * Dart_kImportTag
2750 * 2751 *
2751 * This tag is used to load a script referenced by Dart language 2752 * This tag is used to load a script referenced by Dart language
2752 * "import" directive. Once the script is loaded, the embedder should 2753 * "import" directive. Once the script is loaded, the embedder should
2753 * call Dart_LoadLibrary to provide the script source to the VM. The 2754 * call Dart_LoadLibrary to provide the script source to the VM. The
2754 * return value should be an error or null. 2755 * return value should be an error or null.
2755 */ 2756 */
2756 typedef Dart_Handle (*Dart_LibraryTagHandler)(Dart_LibraryTag tag, 2757 typedef Dart_Handle (*Dart_LibraryTagHandler)(
2757 Dart_Handle library, 2758 Dart_LibraryTag tag,
2758 Dart_Handle url); 2759 Dart_Handle library_or_package_map_url,
2760 Dart_Handle url);
2759 2761
2760 /** 2762 /**
2761 * Sets library tag handler for the current isolate. This handler is 2763 * Sets library tag handler for the current isolate. This handler is
2762 * used to handle the various tags encountered while loading libraries 2764 * used to handle the various tags encountered while loading libraries
2763 * or scripts in the isolate. 2765 * or scripts in the isolate.
2764 * 2766 *
2765 * \param handler Handler code to be used for handling the various tags 2767 * \param handler Handler code to be used for handling the various tags
2766 * encountered while loading libraries or scripts in the isolate. 2768 * encountered while loading libraries or scripts in the isolate.
2767 * 2769 *
2768 * \return If no error occurs, the handler is set for the isolate. 2770 * \return If no error occurs, the handler is set for the isolate.
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
3228 3230
3229 3231
3230 /** 3232 /**
3231 * Returns whether the VM only supports running from precompiled snapshots and 3233 * Returns whether the VM only supports running from precompiled snapshots and
3232 * not from any other kind of snapshot or from source (that is, the VM was 3234 * not from any other kind of snapshot or from source (that is, the VM was
3233 * compiled with DART_PRECOMPILED_RUNTIME). 3235 * compiled with DART_PRECOMPILED_RUNTIME).
3234 */ 3236 */
3235 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3237 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3236 3238
3237 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3239 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698