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

Side by Side Diff: runtime/vm/isolate.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 | « runtime/include/dart_api.h ('k') | runtime/vm/isolate.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 RUNTIME_VM_ISOLATE_H_ 5 #ifndef RUNTIME_VM_ISOLATE_H_
6 #define RUNTIME_VM_ISOLATE_H_ 6 #define RUNTIME_VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void ScheduleMessageInterrupts(); 255 void ScheduleMessageInterrupts();
256 256
257 // Marks all libraries as loaded. 257 // Marks all libraries as loaded.
258 void DoneLoading(); 258 void DoneLoading();
259 void DoneFinalizing(); 259 void DoneFinalizing();
260 260
261 // By default the reload context is deleted. This parameter allows 261 // By default the reload context is deleted. This parameter allows
262 // the caller to delete is separately if it is still needed. 262 // the caller to delete is separately if it is still needed.
263 bool ReloadSources(JSONStream* js, 263 bool ReloadSources(JSONStream* js,
264 bool force_reload, 264 bool force_reload,
265 const char* root_script_url = NULL,
266 const char* packages_url = NULL,
265 bool dont_delete_reload_context = false); 267 bool dont_delete_reload_context = false);
266 268
267 bool MakeRunnable(); 269 bool MakeRunnable();
268 void Run(); 270 void Run();
269 271
270 MessageHandler* message_handler() const { return message_handler_; } 272 MessageHandler* message_handler() const { return message_handler_; }
271 void set_message_handler(MessageHandler* value) { message_handler_ = value; } 273 void set_message_handler(MessageHandler* value) { message_handler_ = value; }
272 274
273 bool is_runnable() const { return is_runnable_; } 275 bool is_runnable() const { return is_runnable_; }
274 void set_is_runnable(bool value) { 276 void set_is_runnable(bool value) {
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 intptr_t* spawn_count_; 985 intptr_t* spawn_count_;
984 986
985 Dart_IsolateFlags isolate_flags_; 987 Dart_IsolateFlags isolate_flags_;
986 bool paused_; 988 bool paused_;
987 bool errors_are_fatal_; 989 bool errors_are_fatal_;
988 }; 990 };
989 991
990 } // namespace dart 992 } // namespace dart
991 993
992 #endif // RUNTIME_VM_ISOLATE_H_ 994 #endif // RUNTIME_VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698