Index: runtime/observatory/lib/src/service/object.dart |
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart |
index 13202aa8cf7fea6a232f369d56469de977c2e3a4..c638dd90d9f4a0bf88b162f28d10e2337f86bc70 100644 |
--- a/runtime/observatory/lib/src/service/object.dart |
+++ b/runtime/observatory/lib/src/service/object.dart |
@@ -42,13 +42,11 @@ class ServerRpcException extends RpcException implements M.RequestException { |
static const kStreamNotSubscribed = 104; |
static const kIsolateMustBeRunnable = 105; |
static const kIsolateMustBePaused = 106; |
- static const kCannotResume = 107; |
static const kIsolateIsReloading = 1000; |
static const kFileSystemAlreadyExists = 1001; |
static const kFileSystemDoesNotExist = 1002; |
static const kFileDoesNotExist = 1003; |
static const kIsolateReloadFailed = 1004; |
- static const kIsolateReloadBarred = 1005; |
int code; |
Map data; |
@@ -1281,6 +1279,7 @@ class Isolate extends ServiceObjectOwner implements M.Isolate { |
bool loading = true; |
bool runnable = false; |
bool ioEnabled = false; |
+ bool reloading = false; |
M.IsolateStatus get status { |
if (paused) { |
return M.IsolateStatus.paused; |
@@ -1345,12 +1344,13 @@ class Isolate extends ServiceObjectOwner implements M.Isolate { |
params['pause'] = pause; |
} |
return invokeRpc('reloadSources', params).then((result) { |
- _cache.clear(); |
+ reloading = true; |
return result; |
}); |
} |
void _handleIsolateReloadEvent(ServiceEvent event) { |
+ reloading = false; |
if (event.reloadError != null) { |
// Failure. |
print('Reload failed: ${event.reloadError}'); |
@@ -1768,10 +1768,6 @@ class Isolate extends ServiceObjectOwner implements M.Isolate { |
return invokeRpc('resume', {'step': 'Out'}); |
} |
- Future rewind(int count) { |
- return invokeRpc('resume', {'step': 'Rewind', 'frameIndex': count}); |
- } |
- |
Future setName(String newName) { |
return invokeRpc('setName', {'name': newName}); |
} |