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

Unified Diff: tools/precompilation/test.sh

Issue 1318803002: Toward precompiled snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: READ_POINTERS Created 5 years, 4 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
Index: tools/precompilation/test.sh
diff --git a/tools/precompilation/test.sh b/tools/precompilation/test.sh
new file mode 100755
index 0000000000000000000000000000000000000000..81809e637958475cb71f964c8bad744503fcb76c
--- /dev/null
+++ b/tools/precompilation/test.sh
@@ -0,0 +1,8 @@
+#!/bin/bash -ex
+
+./tools/build.py -mdebug -ax64 runtime
+./out/DebugX64/dart_no_snapshot --precompile ~/hello.dart
+./out/DebugX64/dart ./tools/precompilation/create_instructions_snapshot_assembly.dart precompiled.instructions precompiled.S
+gcc -c -o precompiled.o precompiled.S
+gcc -shared -fPIC -Wl,-soname,libprecompiled.so -o libprecompiled.so precompiled.o
+LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." gdb -ex run --args ./out/DebugX64/dart --precompiled not_used.dart
« runtime/vm/snapshot.cc ('K') | « tools/precompilation/create_instructions_snapshot_assembly.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698