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

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

Issue 1403693002: - Implement package map parameter when spawning isolate. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix typo in comment. Created 5 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
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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 * This uri will be NULL if the isolate is being created using the 748 * This uri will be NULL if the isolate is being created using the
749 * spawnFunction isolate API. 749 * spawnFunction isolate API.
750 * The callback is responsible for loading the script used in the 750 * The callback is responsible for loading the script used in the
751 * parent isolate by a call to Dart_LoadScript or 751 * parent isolate by a call to Dart_LoadScript or
752 * Dart_LoadScriptFromSnapshot. 752 * Dart_LoadScriptFromSnapshot.
753 * \param main The name of the main entry point this isolate will 753 * \param main The name of the main entry point this isolate will
754 * eventually run. This is provided for advisory purposes only to 754 * eventually run. This is provided for advisory purposes only to
755 * improve debugging messages. The main function is not invoked by 755 * improve debugging messages. The main function is not invoked by
756 * this function. 756 * this function.
757 * \param package_root The package root path for this isolate to resolve 757 * \param package_root The package root path for this isolate to resolve
758 * package imports against. If this parameter is NULL, the package root path 758 * package imports against. Only one of package_root and package_map
759 * of the parent isolate should be used. 759 * parameters is non-NULL. If neither parameter is passed the package
760 * resolution of the parent isolate should be used.
761 * \param package_map The package map for this isolate to resolve package
762 * imports against. Only one of package_root and package_map
763 * parameters is non-NULL. If neither parameter is passed the package
764 * resolution of the parent isolate should be used.
Lasse Reichstein Nielsen 2015/10/12 09:34:44 May want to specify that it's represented as alter
Ivan Posva 2015/10/12 16:05:22 Done.
760 * \param flags Default flags for this isolate being spawned. Either inherited 765 * \param flags Default flags for this isolate being spawned. Either inherited
761 * from the spawning isolate or passed as parameters when spawning the 766 * from the spawning isolate or passed as parameters when spawning the
762 * isolate from Dart code. 767 * isolate from Dart code.
763 * \param callback_data The callback data which was passed to the 768 * \param callback_data The callback data which was passed to the
764 * parent isolate when it was created by calling Dart_CreateIsolate(). 769 * parent isolate when it was created by calling Dart_CreateIsolate().
765 * \param error A structure into which the embedder can place a 770 * \param error A structure into which the embedder can place a
766 * C string containing an error message in the case of failures. 771 * C string containing an error message in the case of failures.
767 * 772 *
768 * \return The embedder returns NULL if the creation and 773 * \return The embedder returns NULL if the creation and
769 * initialization was not successful and the isolate if successful. 774 * initialization was not successful and the isolate if successful.
770 */ 775 */
771 typedef Dart_Isolate (*Dart_IsolateCreateCallback)(const char* script_uri, 776 typedef Dart_Isolate (*Dart_IsolateCreateCallback)(const char* script_uri,
772 const char* main, 777 const char* main,
773 const char* package_root, 778 const char* package_root,
779 const char** package_map,
774 Dart_IsolateFlags* flags, 780 Dart_IsolateFlags* flags,
775 void* callback_data, 781 void* callback_data,
776 char** error); 782 char** error);
777 783
778 /** 784 /**
779 * An isolate interrupt callback function. 785 * An isolate interrupt callback function.
780 * 786 *
781 * This callback, provided by the embedder, is called when an isolate 787 * This callback, provided by the embedder, is called when an isolate
782 * is interrupted as a result of a call to Dart_InterruptIsolate(). 788 * is interrupted as a result of a call to Dart_InterruptIsolate().
783 * When the callback is called, Dart_CurrentIsolate can be used to 789 * When the callback is called, Dart_CurrentIsolate can be used to
(...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2918 2924
2919 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot( 2925 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot(
2920 uint8_t** vm_isolate_snapshot_buffer, 2926 uint8_t** vm_isolate_snapshot_buffer,
2921 intptr_t* vm_isolate_snapshot_size, 2927 intptr_t* vm_isolate_snapshot_size,
2922 uint8_t** isolate_snapshot_buffer, 2928 uint8_t** isolate_snapshot_buffer,
2923 intptr_t* isolate_snapshot_size, 2929 intptr_t* isolate_snapshot_size,
2924 uint8_t** instructions_snapshot_buffer, 2930 uint8_t** instructions_snapshot_buffer,
2925 intptr_t* instructions_snapshot_size); 2931 intptr_t* instructions_snapshot_size);
2926 2932
2927 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2933 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698