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

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

Issue 2186423002: Only reload libraries when they may have been modified. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review Created 4 years, 4 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/include/dart_api.h ('k') | runtime/vm/bit_vector.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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_TOOLS_API_H_ 5 #ifndef INCLUDE_DART_TOOLS_API_H_
6 #define INCLUDE_DART_TOOLS_API_H_ 6 #define INCLUDE_DART_TOOLS_API_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 /** \mainpage Dart Tools Embedding API Reference 10 /** \mainpage Dart Tools Embedding API Reference
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 * \return Success if the arguments are well formed. Otherwise, returns an 891 * \return Success if the arguments are well formed. Otherwise, returns an
892 * error handle. 892 * error handle.
893 */ 893 */
894 DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id, 894 DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id,
895 const char* event_kind, 895 const char* event_kind,
896 const uint8_t* bytes, 896 const uint8_t* bytes,
897 intptr_t bytes_length); 897 intptr_t bytes_length);
898 898
899 /* 899 /*
900 * ======== 900 * ========
901 * Reload support
902 * ========
903 *
904 * These functions are used to implement reloading in the Dart VM.
905 * This is an experimental feature, so embedders should be prepared
906 * for these functions to change.
907 */
908
909 /**
910 * A callback which determines whether the file at some url has been
911 * modified since some time. If the file cannot be found, true should
912 * be returned.
913 */
914 typedef bool (*Dart_FileModifiedCallback)(const char* url, int64_t since);
915
916 DART_EXPORT Dart_Handle Dart_SetFileModifiedCallback(
917 Dart_FileModifiedCallback file_modified_callback);
918
919 /*
920 * ========
901 * Timeline 921 * Timeline
902 * ======== 922 * ========
903 */ 923 */
904 924
905 /** 925 /**
906 * Returns a timestamp in microseconds. This timestamp is suitable for 926 * Returns a timestamp in microseconds. This timestamp is suitable for
907 * passing into the timeline system. 927 * passing into the timeline system.
908 * 928 *
909 * \return A timestamp that can be passed to the timeline system. 929 * \return A timestamp that can be passed to the timeline system.
910 */ 930 */
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 * \param start_recording See Dart_EmbedderTimelineStartRecording. 1081 * \param start_recording See Dart_EmbedderTimelineStartRecording.
1062 * \param stop_recording See Dart_EmbedderTimelineStopRecording. 1082 * \param stop_recording See Dart_EmbedderTimelineStopRecording.
1063 * 1083 *
1064 * NOTE: To avoid races, this should be called before Dart_Initialize. 1084 * NOTE: To avoid races, this should be called before Dart_Initialize.
1065 */ 1085 */
1066 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks( 1086 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks(
1067 Dart_EmbedderTimelineStartRecording start_recording, 1087 Dart_EmbedderTimelineStartRecording start_recording,
1068 Dart_EmbedderTimelineStopRecording stop_recording); 1088 Dart_EmbedderTimelineStopRecording stop_recording);
1069 1089
1070 #endif // INCLUDE_DART_TOOLS_API_H_ 1090 #endif // INCLUDE_DART_TOOLS_API_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/bit_vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698