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

Unified Diff: src/v8.gyp

Issue 2164583002: Reland "[interpeter] Move to table based peephole optimizer." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nit. 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 517c9b13910418c6277fe5dc1f8ac0edb166f170..b9509082b66737b8a05b93d264413393e7da7f5f 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',
@@ -933,6 +952,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',
@@ -2319,5 +2339,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