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

Side by Side Diff: tools/precompilation/create_instructions_snapshot_assembly.dart

Issue 1309563006: Emit assembly instead of a blob for the instructions snapshot, and provide labels for the entry poi… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 import 'dart:io';
2
3 void main(List<String> args) {
4 print(args[0]);
5 print(args[1]);
6
7 var bytes = new File(args[0]).readAsBytesSync();
8 print(bytes.length);
9
10 var out = new StringBuffer();
11 out.writeln(".text");
12 out.writeln(" .globl _kInstructionsSnapshot");
13 out.writeln("_kInstructionsSnapshot:");
14 out.writeln(" .balign 32, 0");
15 for (var i = 0; i < bytes.length; i++) {
16 var byte = bytes[i];
17 out.writeln(" .byte $byte");
18 }
19
20 new File(args[1]).writeAsString(out.toString());
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698