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

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: 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
Index: dart/utils/compiler/compiler.gyp
diff --git a/dart/utils/compiler/compiler.gyp b/dart/utils/compiler/compiler.gyp
index d419a5f5d912dbefbe0990e29f0d7aa3108d92d4..9b5ae690bbed2027b49eddbae6d02404f95cf2f0 100644
--- a/dart/utils/compiler/compiler.gyp
+++ b/dart/utils/compiler/compiler.gyp
@@ -45,6 +45,28 @@
'<(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)',
+ # 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',
+ ],
+ },
],
},
],
« dart/utils/compiler/build_helper.dart ('K') | « dart/utils/compiler/build_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698