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

Side by Side Diff: runtime/bin/loader.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/bin/gen_snapshot.cc ('k') | runtime/bin/loader.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 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 BIN_LOADER_H_ 5 #ifndef BIN_LOADER_H_
6 #define BIN_LOADER_H_ 6 #define BIN_LOADER_H_
7 7
8 #include "bin/isolate_data.h" 8 #include "bin/isolate_data.h"
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "include/dart_native_api.h" 10 #include "include/dart_native_api.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Must be accessed with monitor_ held. 54 // Must be accessed with monitor_ held.
55 intptr_t pending_operations_; 55 intptr_t pending_operations_;
56 56
57 // The result of an I/O request to the service isolate. Payload is either 57 // The result of an I/O request to the service isolate. Payload is either
58 // a UInt8Array or a C string containing an error message. 58 // a UInt8Array or a C string containing an error message.
59 struct IOResult { 59 struct IOResult {
60 uint8_t* payload; 60 uint8_t* payload;
61 intptr_t payload_length; 61 intptr_t payload_length;
62 char* library_uri; 62 char* library_uri;
63 char* uri; 63 char* uri;
64 char* resolved_uri;
64 int8_t tag; 65 int8_t tag;
65 66
66 void Setup(Dart_CObject* message); 67 void Setup(Dart_CObject* message);
67 void Cleanup(); 68 void Cleanup();
68 }; 69 };
69 // An array of I/O results queued from the service isolate. 70 // An array of I/O results queued from the service isolate.
70 IOResult* results_; 71 IOResult* results_;
71 intptr_t results_length_; 72 intptr_t results_length_;
72 intptr_t results_capacity_; 73 intptr_t results_capacity_;
73 uint8_t* payload_; 74 uint8_t* payload_;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 // This is the global callback for the native message handlers. 141 // This is the global callback for the native message handlers.
141 static void NativeMessageHandler(Dart_Port dest_port_id, 142 static void NativeMessageHandler(Dart_Port dest_port_id,
142 Dart_CObject* message); 143 Dart_CObject* message);
143 }; 144 };
144 145
145 } // namespace bin 146 } // namespace bin
146 } // namespace dart 147 } // namespace dart
147 148
148 #endif // BIN_LOADER_H_ 149 #endif // BIN_LOADER_H_
OLDNEW
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698