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

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

Issue 1318803002: Toward precompiled snapshots. (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
« no previous file with comments | « runtime/vm/snapshot_test.cc ('k') | tools/precompilation/test_linux.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « runtime/vm/snapshot_test.cc ('k') | tools/precompilation/test_linux.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698