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

Unified Diff: src/v8.gyp

Issue 2118183002: [interpeter] Move to table based peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Broader check for host and target arch wanting separate toolchain. Created 4 years, 5 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 | « src/interpreter/mkpeephole.cc ('k') | test/cctest/interpreter/bytecode_expectations/ConstVariable.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8.gyp
diff --git a/src/v8.gyp b/src/v8.gyp
index bfc714309de3781bdb636cfae413c7edd643c63d..07434178e33afc4927e1794f1a28a42f8f5a8808 100644
--- a/src/v8.gyp
+++ b/src/v8.gyp
@@ -35,6 +35,7 @@
'v8_extra_library_files%': [],
'v8_experimental_extra_library_files%': [],
'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
+ 'mkpeephole_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkpeephole<(EXECUTABLE_SUFFIX)',
},
'includes': ['../gypfiles/toolchain.gypi', '../gypfiles/features.gypi'],
'targets': [
@@ -382,13 +383,31 @@
'v8_libbase',
'v8_libsampler',
],
+ 'objs': ['foo.o'],
'variables': {
'optimize': 'max',
},
'include_dirs+': [
'..',
'<(DEPTH)',
+ '<(SHARED_INTERMEDIATE_DIR)'
],
+ 'actions':[{
+ 'action_name': 'run mkpeephole',
+ 'inputs': ['<(mkpeephole_exec)'],
+ 'outputs': ['<(INTERMEDIATE_DIR)/bytecode-peephole-table.cc'],
+ 'action': ['<(mkpeephole_exec)', '<(INTERMEDIATE_DIR)/bytecode-peephole-table.cc' ],
+ 'process_outputs_as_sources': 1,
+ 'conditions': [
+ ['want_separate_host_toolset==1', {
+ 'dependencies': ['mkpeephole#host'],
+ 'toolsets': ['host'],
+ }, {
+ 'dependencies': ['mkpeephole'],
+ 'toolsets': ['target'],
+ }],
+ ],
+ }],
'sources': [ ### gcmole(all) ###
'../include/v8-debug.h',
'../include/v8-experimental.h',
@@ -929,6 +948,7 @@
'interpreter/bytecode-label.h',
'interpreter/bytecode-peephole-optimizer.cc',
'interpreter/bytecode-peephole-optimizer.h',
+ 'interpreter/bytecode-peephole-table.h',
'interpreter/bytecode-pipeline.cc',
'interpreter/bytecode-pipeline.h',
'interpreter/bytecode-register.cc',
@@ -2315,5 +2335,26 @@
}],
],
},
+ {
+ 'target_name': 'mkpeephole',
+ 'type': 'executable',
+ 'dependencies': [ 'v8_libbase' ],
+ 'include_dirs+': [
+ '..',
+ ],
+ 'sources': [
+ 'interpreter/bytecode-peephole-table.h',
+ 'interpreter/bytecodes.h',
+ 'interpreter/bytecodes.cc',
+ 'interpreter/mkpeephole.cc'
+ ],
+ 'conditions': [
+ ['want_separate_host_toolset==1', {
+ 'toolsets': ['host'],
+ }, {
+ 'toolsets': ['target'],
+ }],
+ ],
+ },
],
}
« no previous file with comments | « src/interpreter/mkpeephole.cc ('k') | test/cctest/interpreter/bytecode_expectations/ConstVariable.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698