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

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: 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 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
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': [
382 'v8_libbase', 383 'v8_libbase',
383 'v8_libsampler', 384 'v8_libsampler',
384 ], 385 ],
386 'objs': ['foo.o'],
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 ],
395 'actions':[{
396 'action_name': 'run mkpeephole',
397 'inputs': ['<(mkpeephole_exec)'],
398 'outputs': ['<(INTERMEDIATE_DIR)/bytecode-peephole-table.cc'],
399 'action': ['<(mkpeephole_exec)', '<(INTERMEDIATE_DIR)/bytecode-peephole- table.cc' ],
400 'process_outputs_as_sources': 1,
401 'conditions': [
402 ['want_separate_host_toolset==1', {
403 'dependencies': ['mkpeephole#host'],
404 'toolsets': ['host'],
405 }, {
406 'dependencies': ['mkpeephole'],
407 'toolsets': ['target'],
408 }],
409 ],
410 }],
392 'sources': [ ### gcmole(all) ### 411 'sources': [ ### gcmole(all) ###
393 '../include/v8-debug.h', 412 '../include/v8-debug.h',
394 '../include/v8-experimental.h', 413 '../include/v8-experimental.h',
395 '../include/v8-platform.h', 414 '../include/v8-platform.h',
396 '../include/v8-profiler.h', 415 '../include/v8-profiler.h',
397 '../include/v8-testing.h', 416 '../include/v8-testing.h',
398 '../include/v8-util.h', 417 '../include/v8-util.h',
399 '../include/v8-version.h', 418 '../include/v8-version.h',
400 '../include/v8.h', 419 '../include/v8.h',
401 '../include/v8config.h', 420 '../include/v8config.h',
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 'interpreter/bytecode-dead-code-optimizer.h', 941 'interpreter/bytecode-dead-code-optimizer.h',
923 'interpreter/bytecode-decoder.cc', 942 'interpreter/bytecode-decoder.cc',
924 'interpreter/bytecode-decoder.h', 943 'interpreter/bytecode-decoder.h',
925 'interpreter/bytecode-flags.cc', 944 'interpreter/bytecode-flags.cc',
926 'interpreter/bytecode-flags.h', 945 'interpreter/bytecode-flags.h',
927 'interpreter/bytecode-generator.cc', 946 'interpreter/bytecode-generator.cc',
928 'interpreter/bytecode-generator.h', 947 'interpreter/bytecode-generator.h',
929 'interpreter/bytecode-label.h', 948 'interpreter/bytecode-label.h',
930 'interpreter/bytecode-peephole-optimizer.cc', 949 'interpreter/bytecode-peephole-optimizer.cc',
931 'interpreter/bytecode-peephole-optimizer.h', 950 'interpreter/bytecode-peephole-optimizer.h',
951 'interpreter/bytecode-peephole-table.h',
932 'interpreter/bytecode-pipeline.cc', 952 'interpreter/bytecode-pipeline.cc',
933 'interpreter/bytecode-pipeline.h', 953 'interpreter/bytecode-pipeline.h',
934 'interpreter/bytecode-register.cc', 954 'interpreter/bytecode-register.cc',
935 'interpreter/bytecode-register.h', 955 'interpreter/bytecode-register.h',
936 'interpreter/bytecode-register-allocator.cc', 956 'interpreter/bytecode-register-allocator.cc',
937 'interpreter/bytecode-register-allocator.h', 957 'interpreter/bytecode-register-allocator.h',
938 'interpreter/bytecode-register-optimizer.cc', 958 'interpreter/bytecode-register-optimizer.cc',
939 'interpreter/bytecode-register-optimizer.h', 959 'interpreter/bytecode-register-optimizer.h',
940 'interpreter/bytecode-traits.h', 960 'interpreter/bytecode-traits.h',
941 'interpreter/constant-array-builder.cc', 961 'interpreter/constant-array-builder.cc',
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 '<(icu_gyp_path):icuuc', 2328 '<(icu_gyp_path):icuuc',
2309 ] 2329 ]
2310 }], 2330 }],
2311 ['want_separate_host_toolset==1', { 2331 ['want_separate_host_toolset==1', {
2312 'toolsets': ['host'], 2332 'toolsets': ['host'],
2313 }, { 2333 }, {
2314 'toolsets': ['target'], 2334 'toolsets': ['target'],
2315 }], 2335 }],
2316 ], 2336 ],
2317 }, 2337 },
2338 {
2339 'target_name': 'mkpeephole',
2340 'type': 'executable',
2341 'dependencies': [ 'v8_libbase' ],
2342 'include_dirs+': [
2343 '..',
2344 ],
2345 'sources': [
2346 'interpreter/bytecode-peephole-table.h',
2347 'interpreter/bytecodes.h',
2348 'interpreter/bytecodes.cc',
2349 'interpreter/mkpeephole.cc'
2350 ],
2351 'conditions': [
2352 ['want_separate_host_toolset==1', {
2353 'toolsets': ['host'],
2354 }, {
2355 'toolsets': ['target'],
2356 }],
2357 ],
2358 },
2318 ], 2359 ],
2319 } 2360 }
OLDNEW
« 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