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

Side by Side 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: Attempt gn build. 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 unified diff | Download patch
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 17 matching lines...) Expand all
28 { 28 {
29 'variables': { 29 'variables': {
30 'v8_code': 1, 30 'v8_code': 1,
31 'v8_random_seed%': 314159265, 31 'v8_random_seed%': 314159265,
32 'v8_vector_stores%': 0, 32 'v8_vector_stores%': 0,
33 'embed_script%': "", 33 'embed_script%': "",
34 'warmup_script%': "", 34 'warmup_script%': "",
35 'v8_extra_library_files%': [], 35 'v8_extra_library_files%': [],
36 'v8_experimental_extra_library_files%': [], 36 'v8_experimental_extra_library_files%': [],
37 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABL E_SUFFIX)', 37 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABL E_SUFFIX)',
38 'mkpeephole_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkpeephole<(EXECUTABL E_SUFFIX)',
38 }, 39 },
39 'includes': ['../gypfiles/toolchain.gypi', '../gypfiles/features.gypi'], 40 'includes': ['../gypfiles/toolchain.gypi', '../gypfiles/features.gypi'],
40 'targets': [ 41 'targets': [
41 { 42 {
42 'target_name': 'v8', 43 'target_name': 'v8',
43 'dependencies_traverse': 1, 44 'dependencies_traverse': 1,
44 'dependencies': ['v8_maybe_snapshot'], 45 'dependencies': ['v8_maybe_snapshot'],
45 'conditions': [ 46 'conditions': [
46 ['want_separate_host_toolset==1', { 47 ['want_separate_host_toolset==1', {
47 'toolsets': ['host', 'target'], 48 'toolsets': ['host', 'target'],
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 ], 373 ],
373 }, 374 },
374 ], 375 ],
375 }], 376 }],
376 ], 377 ],
377 }, 378 },
378 { 379 {
379 'target_name': 'v8_base', 380 'target_name': 'v8_base',
380 'type': 'static_library', 381 'type': 'static_library',
381 'dependencies': [ 382 'dependencies': [
383 'peephole_table_data',
382 'v8_libbase', 384 'v8_libbase',
383 'v8_libsampler', 385 'v8_libsampler',
384 ], 386 ],
385 'variables': { 387 'variables': {
386 'optimize': 'max', 388 'optimize': 'max',
387 }, 389 },
388 'include_dirs+': [ 390 'include_dirs+': [
389 '..', 391 '..',
390 '<(DEPTH)', 392 '<(DEPTH)',
393 '<(SHARED_INTERMEDIATE_DIR)'
391 ], 394 ],
392 'sources': [ ### gcmole(all) ### 395 'sources': [ ### gcmole(all) ###
393 '../include/v8-debug.h', 396 '../include/v8-debug.h',
394 '../include/v8-experimental.h', 397 '../include/v8-experimental.h',
395 '../include/v8-platform.h', 398 '../include/v8-platform.h',
396 '../include/v8-profiler.h', 399 '../include/v8-profiler.h',
397 '../include/v8-testing.h', 400 '../include/v8-testing.h',
398 '../include/v8-util.h', 401 '../include/v8-util.h',
399 '../include/v8-version.h', 402 '../include/v8-version.h',
400 '../include/v8.h', 403 '../include/v8.h',
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 'interpreter/bytecode-array-iterator.h', 917 'interpreter/bytecode-array-iterator.h',
915 'interpreter/bytecode-array-writer.cc', 918 'interpreter/bytecode-array-writer.cc',
916 'interpreter/bytecode-array-writer.h', 919 'interpreter/bytecode-array-writer.h',
917 'interpreter/bytecode-dead-code-optimizer.cc', 920 'interpreter/bytecode-dead-code-optimizer.cc',
918 'interpreter/bytecode-dead-code-optimizer.h', 921 'interpreter/bytecode-dead-code-optimizer.h',
919 'interpreter/bytecode-label.h', 922 'interpreter/bytecode-label.h',
920 'interpreter/bytecode-generator.cc', 923 'interpreter/bytecode-generator.cc',
921 'interpreter/bytecode-generator.h', 924 'interpreter/bytecode-generator.h',
922 'interpreter/bytecode-peephole-optimizer.cc', 925 'interpreter/bytecode-peephole-optimizer.cc',
923 'interpreter/bytecode-peephole-optimizer.h', 926 'interpreter/bytecode-peephole-optimizer.h',
927 '<(INTERMEDIATE_DIR)/bytecode-peephole-table.h',
rmcilroy 2016/07/08 13:18:25 Same comment as gn file.
oth 2016/07/08 15:12:34 Here there are explicit dependencies on the genera
924 'interpreter/bytecode-pipeline.cc', 928 'interpreter/bytecode-pipeline.cc',
925 'interpreter/bytecode-pipeline.h', 929 'interpreter/bytecode-pipeline.h',
926 'interpreter/bytecode-register-allocator.cc', 930 'interpreter/bytecode-register-allocator.cc',
927 'interpreter/bytecode-register-allocator.h', 931 'interpreter/bytecode-register-allocator.h',
928 'interpreter/bytecode-register-optimizer.cc', 932 'interpreter/bytecode-register-optimizer.cc',
929 'interpreter/bytecode-register-optimizer.h', 933 'interpreter/bytecode-register-optimizer.h',
930 'interpreter/bytecode-traits.h', 934 'interpreter/bytecode-traits.h',
931 'interpreter/constant-array-builder.cc', 935 'interpreter/constant-array-builder.cc',
932 'interpreter/constant-array-builder.h', 936 'interpreter/constant-array-builder.h',
933 'interpreter/control-flow-builders.cc', 937 'interpreter/control-flow-builders.cc',
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2289 '<(icu_gyp_path):icuuc', 2293 '<(icu_gyp_path):icuuc',
2290 ] 2294 ]
2291 }], 2295 }],
2292 ['want_separate_host_toolset==1', { 2296 ['want_separate_host_toolset==1', {
2293 'toolsets': ['host'], 2297 'toolsets': ['host'],
2294 }, { 2298 }, {
2295 'toolsets': ['target'], 2299 'toolsets': ['target'],
2296 }], 2300 }],
2297 ], 2301 ],
2298 }, 2302 },
2303 {
2304 'target_name': 'mkpeephole',
2305 'type': 'executable',
2306 'dependencies': [ 'v8_libbase' ],
2307 'include_dirs+': [
2308 '..',
2309 ],
2310 'sources': [
2311 'interpreter/bytecode-register-optimizer.h',
2312 'interpreter/bytecodes.h',
2313 'interpreter/bytecodes.cc',
2314 'interpreter/mkpeephole.cc'
2315 ],
2316 'conditions': [
2317 ['want_separate_host_toolset==1', {
2318 'toolsets': ['host'],
2319 }, {
2320 'toolsets': ['target'],
2321 }],
2322 ],
2323 },
2324 {
2325 'target_name': 'run_mkpeephole_on_host',
2326 'type': 'none',
2327 'dependencies': ['mkpeephole'],
2328 'actions': [
2329 {
2330 'action_name': 'run_mkpeephole',
2331 'inputs': ['<(mkpeephole_exec)'],
2332 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/bytecode-peephole-table.h'],
2333 'action': ['<(mkpeephole_exec)', '<(SHARED_INTERMEDIATE_DIR)/bytecode-pe ephole-table.h' ]
2334 }],
2335 'conditions': [
2336 ['want_separate_host_toolset==1', {
2337 'toolsets': ['host'],
2338 }, {
2339 'toolsets': ['target'],
2340 }],
2341 ],
2342 },
2343 {
2344 'target_name': 'peephole_table_data',
2345 'type': 'none',
2346 'conditions': [
2347 ['want_separate_host_toolset==1', {
2348 'toolsets': ['target', 'host'],
2349 'dependencies': ['run_mkpeephole_on_host#host']
2350 }, {
2351 'toolsets': ['target'],
2352 'dependencies': ['run_mkpeephole_on_host']
2353 }],
2354 ],
2355 },
2299 ], 2356 ],
2300 } 2357 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698