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

Unified Diff: dart/utils/compiler/compiler.gyp

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 | « dart/utils/compiler/build_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/utils/compiler/compiler.gyp
diff --git a/dart/utils/compiler/compiler.gyp b/dart/utils/compiler/compiler.gyp
index d419a5f5d912dbefbe0990e29f0d7aa3108d92d4..fc83a3c9e79538bb1d08833d278d9eb31af82b47 100644
--- a/dart/utils/compiler/compiler.gyp
+++ b/dart/utils/compiler/compiler.gyp
@@ -45,6 +45,32 @@
'<(dart_dir)',
],
},
+ {
+ 'action_name': 'generate_dart2js_snapshot',
+ 'inputs': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX)',
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
+ '../../lib/_internal/libraries.dart',
+ '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../lib/compiler", "../../runtime/lib"])',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/dart2js.snapshot',
+ ],
+ 'action': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX)',
+
+ # TODO(ahe): Remove option when http://dartbug.com/5989 is fixed.
+ '--optimization_counter_threshold=-1',
+
+ # Note: we don't store the snapshot in the location where
+ # the dart2js script is looking for it. The motivation
+ # for that is to support an incremental development model
+ # for dart2js compiler engineers. However, we install the
+ # snapshot in the proper location when building the SDK.
+ '--script_snapshot=<(PRODUCT_DIR)/dart2js.snapshot',
+ '../../lib/compiler/implementation/dart2js.dart',
+ ],
+ },
],
},
],
« no previous file with comments | « dart/utils/compiler/build_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698