| Index: tools/precompilation/create_instructions_snapshot_assembly.dart
|
| diff --git a/tools/precompilation/create_instructions_snapshot_assembly.dart b/tools/precompilation/create_instructions_snapshot_assembly.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..acf42b144d9dfc8088a27f417419d53c1a63914a
|
| --- /dev/null
|
| +++ b/tools/precompilation/create_instructions_snapshot_assembly.dart
|
| @@ -0,0 +1,21 @@
|
| +import 'dart:io';
|
| +
|
| +void main(List<String> args) {
|
| + print(args[0]);
|
| + print(args[1]);
|
| +
|
| + var bytes = new File(args[0]).readAsBytesSync();
|
| + print(bytes.length);
|
| +
|
| + var out = new StringBuffer();
|
| + out.writeln(".text");
|
| + out.writeln(" .global kInstructionsSnapshot");
|
| + out.writeln("kInstructionsSnapshot:");
|
| + out.writeln(" .balign 32, 0");
|
| + for (var i = 0; i < bytes.length; i++) {
|
| + var byte = bytes[i];
|
| + out.writeln(" .byte $byte");
|
| + }
|
| +
|
| + new File(args[1]).writeAsString(out.toString());
|
| +}
|
|
|