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

Unified Diff: pkg/dartino_compiler/lib/vm_commands.dart

Issue 1987673002: Initial Implementation of the vm-service protocol (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Keep track of terminated state Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dartino_compiler/lib/src/worker/developer.dart ('k') | pkg/dartino_compiler/lib/vm_context.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartino_compiler/lib/vm_commands.dart
diff --git a/pkg/dartino_compiler/lib/vm_commands.dart b/pkg/dartino_compiler/lib/vm_commands.dart
index f975fd73d4e2bfed2b8e064184f1b227b379c398..9f6125633ab777eccfceb5db9d6cf30b8bc32b00 100644
--- a/pkg/dartino_compiler/lib/vm_commands.dart
+++ b/pkg/dartino_compiler/lib/vm_commands.dart
@@ -118,7 +118,14 @@ abstract class VmCommand {
}
return new ProcessGetProcessIdsResult(ids);
case VmCommandCode.UncaughtException:
- return const UncaughtException();
+ int offset = 0;
+ int processId = CommandBuffer.readInt32FromBuffer(buffer, offset);
+ offset += 4;
+ int functionId = translateFunction(
+ CommandBuffer.readInt64FromBuffer(buffer, offset));
+ offset += 8;
+ int bytecodeIndex = CommandBuffer.readInt64FromBuffer(buffer, offset);
+ return new UncaughtException(processId, functionId, bytecodeIndex);
case VmCommandCode.CommitChangesResult:
bool success = CommandBuffer.readBoolFromBuffer(buffer, 0);
String message = CommandBuffer.readAsciiStringFromBuffer(
@@ -798,7 +805,12 @@ class CommitChangesResult extends VmCommand {
}
class UncaughtException extends VmCommand {
- const UncaughtException()
+ final int processId;
+ final int functionId;
+ final int bytecodeIndex;
+
+ const UncaughtException(
+ this.processId, this.functionId, this.bytecodeIndex)
: super(VmCommandCode.UncaughtException);
int get numberOfResponsesExpected => 0;
« no previous file with comments | « pkg/dartino_compiler/lib/src/worker/developer.dart ('k') | pkg/dartino_compiler/lib/vm_context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698