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

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

Issue 1418833004: VM: Service isolate under precompilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « runtime/bin/vmservice_impl.cc ('k') | runtime/vm/dart_api_impl.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 2697 matching lines...) Expand 10 before | Expand all | Expand 10 after
2708 * Gets the library for the root script for the current isolate. 2708 * Gets the library for the root script for the current isolate.
2709 * 2709 *
2710 * If the root script has not yet been set for the current isolate, 2710 * If the root script has not yet been set for the current isolate,
2711 * this function returns Dart_Null(). This function never returns an 2711 * this function returns Dart_Null(). This function never returns an
2712 * error handle. 2712 * error handle.
2713 * 2713 *
2714 * \return Returns the root Library for the current isolate or Dart_Null(). 2714 * \return Returns the root Library for the current isolate or Dart_Null().
2715 */ 2715 */
2716 DART_EXPORT Dart_Handle Dart_RootLibrary(); 2716 DART_EXPORT Dart_Handle Dart_RootLibrary();
2717 2717
2718
2719 /**
2720 * Sets the root library for the current isolate.
2721 *
2722 * \return Returns an error handle if `library` is not a library handle.
2723 */
2724 DART_EXPORT Dart_Handle Dart_SetRootLibrary(Dart_Handle library);
2725
2726
2718 /** 2727 /**
2719 * Lookup or instantiate a type by name and type arguments from a Library. 2728 * Lookup or instantiate a type by name and type arguments from a Library.
2720 * 2729 *
2721 * \param library The library containing the class or interface. 2730 * \param library The library containing the class or interface.
2722 * \param class_name The class name for the type. 2731 * \param class_name The class name for the type.
2723 * \param number_of_type_arguments Number of type arguments. 2732 * \param number_of_type_arguments Number of type arguments.
2724 * For non parametric types the number of type arguments would be 0. 2733 * For non parametric types the number of type arguments would be 0.
2725 * \param type_arguments Pointer to an array of type arguments. 2734 * \param type_arguments Pointer to an array of type arguments.
2726 * For non parameteric types a NULL would be passed in for this argument. 2735 * For non parameteric types a NULL would be passed in for this argument.
2727 * 2736 *
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2943 2952
2944 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot( 2953 DART_EXPORT Dart_Handle Dart_CreatePrecompiledSnapshot(
2945 uint8_t** vm_isolate_snapshot_buffer, 2954 uint8_t** vm_isolate_snapshot_buffer,
2946 intptr_t* vm_isolate_snapshot_size, 2955 intptr_t* vm_isolate_snapshot_size,
2947 uint8_t** isolate_snapshot_buffer, 2956 uint8_t** isolate_snapshot_buffer,
2948 intptr_t* isolate_snapshot_size, 2957 intptr_t* isolate_snapshot_size,
2949 uint8_t** instructions_snapshot_buffer, 2958 uint8_t** instructions_snapshot_buffer,
2950 intptr_t* instructions_snapshot_size); 2959 intptr_t* instructions_snapshot_size);
2951 2960
2952 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2961 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/vmservice_impl.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698