| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.vm_commands; | 5 library dartino_compiler.vm_commands; |
| 6 | 6 |
| 7 import 'dart:convert' show | 7 import 'dart:convert' show |
| 8 UTF8; | 8 UTF8; |
| 9 | 9 |
| 10 import 'dart:typed_data' show | 10 import 'dart:typed_data' show |
| 11 Int32List, | 11 Int32List, |
| 12 Uint16List, | 12 Uint16List, |
| 13 Uint8List; | 13 Uint8List; |
| 14 | 14 |
| 15 import 'bytecodes.dart' show | 15 import 'bytecodes.dart' show |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 void internalAddTo( | 146 void internalAddTo( |
| 147 Sink<List<int>> sink, CommandBuffer<VmCommandCode> buffer) { | 147 Sink<List<int>> sink, CommandBuffer<VmCommandCode> buffer) { |
| 148 buffer.sendOn(sink, code); | 148 buffer.sendOn(sink, code); |
| 149 } | 149 } |
| 150 | 150 |
| 151 /// Indicates the number of responses we expect after sending a [VmCommand]. | 151 /// Indicates the number of responses we expect after sending a [VmCommand]. |
| 152 /// If the number is unknown (e.g. one response determines whether more will | 152 /// If the number is unknown (e.g. one response determines whether more will |
| 153 /// come) this will be `null`. | 153 /// come) this will be `null`. |
| 154 /// | 154 /// |
| 155 /// Some of the [VmCommand]s will instruct the fletch-vm to continue running | 155 /// Some of the [VmCommand]s will instruct the dartino-vm to continue running |
| 156 /// the program. The response [VmCommand] can be one of | 156 /// the program. The response [VmCommand] can be one of |
| 157 /// * ProcessBreakpoint | 157 /// * ProcessBreakpoint |
| 158 /// * ProcessTerminated | 158 /// * ProcessTerminated |
| 159 /// * ProcessCompileTimeError | 159 /// * ProcessCompileTimeError |
| 160 /// * UncaughtException | 160 /// * UncaughtException |
| 161 int get numberOfResponsesExpected => null; | 161 int get numberOfResponsesExpected => null; |
| 162 | 162 |
| 163 String valuesToString(); | 163 String valuesToString(); |
| 164 | 164 |
| 165 String toString() => "$code(${valuesToString()})"; | 165 String toString() => "$code(${valuesToString()})"; |
| (...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 Class, | 1526 Class, |
| 1527 InstanceStructure | 1527 InstanceStructure |
| 1528 } | 1528 } |
| 1529 | 1529 |
| 1530 enum MapId { | 1530 enum MapId { |
| 1531 methods, | 1531 methods, |
| 1532 classes, | 1532 classes, |
| 1533 constants, | 1533 constants, |
| 1534 fibers, | 1534 fibers, |
| 1535 } | 1535 } |
| OLD | NEW |