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

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: Minor renaming and re-grouping. 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
Index: src/v8.gyp
diff --git a/src/v8.gyp b/src/v8.gyp
index b86ceda0e75a2bedd5594c3c3fb8d9861332f3c1..82a5a1463c69f3cc04543af4379b66459b6948f2 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',
@@ -925,6 +944,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',
@@ -2302,5 +2322,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'],
+ }],
+ ],
+ },
],
}

Powered by Google App Engine
This is Rietveld 408576698