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

Unified Diff: dart/tools/create_sdk.py

Issue 11187028: Generate snapshot for dartj2s; use it in the SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Disable optimizations during gen_snapshot to work around crash Created 8 years, 2 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
« no previous file with comments | « no previous file | dart/utils/compiler/build_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/create_sdk.py
diff --git a/dart/tools/create_sdk.py b/dart/tools/create_sdk.py
index 0543b647c23d4695fac9eccd0484d1714ad51284..0fb0d3da4d1be7462079db7ca84accb2aa8f933a 100755
--- a/dart/tools/create_sdk.py
+++ b/dart/tools/create_sdk.py
@@ -131,6 +131,20 @@ def CopyDart2Js(build_dir, sdk_root, version):
ReplaceInFiles([dartdoc],
[(r'\$BIN_DIR/\.\./\.\.', r'$BIN_DIR/..')])
+ # TODO(ahe): Enable for Windows as well.
+ subprocess.call([os.path.join(build_dir, 'gen_snapshot'),
+
+ # TODO(ahe): Remove option when
+ # http://dartbug.com/5989 is fixed.
+ '--optimization_counter_threshold=-1',
+
+ '--script_snapshot=%s' %
+ os.path.join(sdk_root, 'pkg', 'compiler',
+ 'implementation', 'dart2js.dart.snapshot'),
+ os.path.join(sdk_root, 'pkg', 'compiler',
+ 'implementation', 'dart2js.dart')])
+
+
def Main(argv):
# Pull in all of the gpyi files which will be munged into the sdk.
« no previous file with comments | « no previous file | dart/utils/compiler/build_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698