Index: tools/gyp/v8.gyp |
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
index e1caeab7c378ac67fdb5df176ac9bb6dfa252c5a..3457c19e86157734723a02f3f2041118dc7ce47c 100644 |
--- a/tools/gyp/v8.gyp |
+++ b/tools/gyp/v8.gyp |
@@ -179,6 +179,7 @@ |
], |
'sources': [ |
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
+ '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc', |
'<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
'<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc', |
'<(INTERMEDIATE_DIR)/snapshot.cc', |
@@ -224,6 +225,7 @@ |
], |
'sources': [ |
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
+ '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc', |
'<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
'<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc', |
'../../src/snapshot/snapshot-empty.cc', |
@@ -1685,6 +1687,7 @@ |
'inputs': [ |
'../../tools/concatenate-files.py', |
'<(SHARED_INTERMEDIATE_DIR)/libraries.bin', |
+ '<(SHARED_INTERMEDIATE_DIR)/libraries-code-stub.bin', |
'<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin', |
'<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin', |
], |
@@ -1795,7 +1798,13 @@ |
'../../src/harmony-object.js', |
'../../src/harmony-sharedarraybuffer.js', |
], |
+ 'code_stub_library_files': [ |
+ '../../src/macros.py', |
+ '../../src/messages.h', |
+ '../../src/code-stubs.js', |
+ ], |
'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', |
+ 'libraries_code_stub_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-code-stub.bin', |
'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin', |
'libraries_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin', |
}, |
@@ -1853,6 +1862,31 @@ |
], |
}, |
{ |
+ 'action_name': 'js2c_code_stubs', |
+ 'inputs': [ |
+ '../../tools/js2c.py', |
+ '<@(code_stub_library_files)', |
+ ], |
+ 'outputs': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc', |
+ ], |
+ 'action': [ |
+ 'python', |
+ '../../tools/js2c.py', |
+ '<(SHARED_INTERMEDIATE_DIR)/code-stub-libraries.cc', |
+ 'CODE_STUB', |
+ '<@(code_stub_library_files)' |
+ ], |
+ 'conditions': [ |
+ [ 'v8_use_external_startup_data==1', { |
+ 'outputs': ['<@(libraries_code_stub_bin_file)'], |
+ 'action': [ |
+ '--startup_blob', '<@(libraries_code_stub_bin_file)' |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
'action_name': 'js2c_extras', |
'inputs': [ |
'../../tools/js2c.py', |