OLD | NEW |
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 14 matching lines...) Expand all Loading... |
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 { | 28 { |
29 'variables': { | 29 'variables': { |
30 'use_system_v8%': 0, | 30 'use_system_v8%': 0, |
31 'msvs_use_common_release': 0, | 31 'msvs_use_common_release': 0, |
32 'gcc_version%': 'unknown', | 32 'gcc_version%': 'unknown', |
33 'v8_compress_startup_data%': 'false', | 33 'v8_compress_startup_data%': 'false', |
34 'v8_target_arch%': '<(target_arch)', | 34 'v8_target_arch%': '<(target_arch)', |
| 35 |
| 36 # Setting 'v8_can_use_unaligned_accesses' to 'true' will allow the code |
| 37 # generated by V8 to do unaligned memory access, and setting it to 'false' |
| 38 # will ensure that the generated code will always do aligned memory |
| 39 # accesses. The default value of 'default' will try to determine the correct |
| 40 # setting. Note that for Intel architectures (ia32 and x64) unaligned memory |
| 41 # access is allowed for all CPUs. |
| 42 'v8_can_use_unaligned_accesses%': 'default', |
| 43 |
| 44 # Setting 'v8_can_use_vfp_instructions' to 'true' will enable use of ARM VFP |
| 45 # instructions in the V8 generated code. VFP instructions will be enabled |
| 46 # both for the snapshot and for the ARM target. Leaving the default value |
| 47 # of 'false' will avoid VFP instructions in the snapshot and use CPU feature |
| 48 # probing when running on the target. |
35 'v8_can_use_vfp_instructions%': 'false', | 49 'v8_can_use_vfp_instructions%': 'false', |
| 50 |
| 51 # Setting v8_use_arm_eabi_hardfloat to true will turn on V8 support for ARM |
| 52 # EABI calling convention where double arguments are passed in VFP |
| 53 # registers. Note that the GCC flag '-mfloat-abi=hard' should be used as |
| 54 # well when compiling for the ARM target. |
| 55 'v8_use_arm_eabi_hardfloat%': 'false', |
| 56 |
36 'v8_use_snapshot%': 'true', | 57 'v8_use_snapshot%': 'true', |
37 'v8_use_liveobjectlist%': 'false', | 58 'v8_use_liveobjectlist%': 'false', |
38 }, | 59 }, |
39 'conditions': [ | 60 'conditions': [ |
40 ['use_system_v8==0', { | 61 ['use_system_v8==0', { |
41 'target_defaults': { | 62 'target_defaults': { |
42 'defines': [ | 63 'defines': [ |
43 'ENABLE_LOGGING_AND_PROFILING', | 64 'ENABLE_LOGGING_AND_PROFILING', |
44 'ENABLE_DEBUGGER_SUPPORT', | 65 'ENABLE_DEBUGGER_SUPPORT', |
45 'ENABLE_VMSTATE_TRACKING', | 66 'ENABLE_VMSTATE_TRACKING', |
46 'V8_FAST_TLS', | 67 'V8_FAST_TLS', |
47 ], | 68 ], |
48 'conditions': [ | 69 'conditions': [ |
49 ['OS!="mac"', { | 70 ['OS!="mac"', { |
50 # TODO(mark): The OS!="mac" conditional is temporary. It can be | 71 # TODO(mark): The OS!="mac" conditional is temporary. It can be |
51 # removed once the Mac Chromium build stops setting target_arch to | 72 # removed once the Mac Chromium build stops setting target_arch to |
52 # ia32 and instead sets it to mac. Other checks in this file for | 73 # ia32 and instead sets it to mac. Other checks in this file for |
53 # OS=="mac" can be removed at that time as well. This can be cleaned | 74 # OS=="mac" can be removed at that time as well. This can be cleaned |
54 # up once http://crbug.com/44205 is fixed. | 75 # up once http://crbug.com/44205 is fixed. |
55 'conditions': [ | 76 'conditions': [ |
56 ['v8_target_arch=="arm"', { | 77 ['v8_target_arch=="arm"', { |
57 'defines': [ | 78 'defines': [ |
58 'V8_TARGET_ARCH_ARM', | 79 'V8_TARGET_ARCH_ARM', |
59 ], | 80 ], |
60 'conditions': [ | 81 'conditions': [ |
| 82 [ 'v8_can_use_unaligned_accesses=="true"', { |
| 83 'defines': [ |
| 84 'CAN_USE_UNALIGNED_ACCESSES=1', |
| 85 ], |
| 86 }], |
| 87 [ 'v8_can_use_unaligned_accesses=="false"', { |
| 88 'defines': [ |
| 89 'CAN_USE_UNALIGNED_ACCESSES=0', |
| 90 ], |
| 91 }], |
61 [ 'v8_can_use_vfp_instructions=="true"', { | 92 [ 'v8_can_use_vfp_instructions=="true"', { |
62 'defines': [ | 93 'defines': [ |
63 'CAN_USE_VFP_INSTRUCTIONS', | 94 'CAN_USE_VFP_INSTRUCTIONS', |
64 ], | 95 ], |
65 }], | 96 }], |
| 97 [ 'v8_use_arm_eabi_hardfloat=="true"', { |
| 98 'defines': [ |
| 99 'USE_EABI_HARDFLOAT=1', |
| 100 'CAN_USE_VFP_INSTRUCTIONS', |
| 101 ], |
| 102 }], |
66 ], | 103 ], |
67 }], | 104 }], |
68 ['v8_target_arch=="ia32"', { | 105 ['v8_target_arch=="ia32"', { |
69 'defines': [ | 106 'defines': [ |
70 'V8_TARGET_ARCH_IA32', | 107 'V8_TARGET_ARCH_IA32', |
71 ], | 108 ], |
72 }], | 109 }], |
73 ['v8_target_arch=="x64"', { | 110 ['v8_target_arch=="x64"', { |
74 'defines': [ | 111 'defines': [ |
75 'V8_TARGET_ARCH_X64', | 112 'V8_TARGET_ARCH_X64', |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 '../../src/messages.js', | 811 '../../src/messages.js', |
775 '../../src/apinatives.js', | 812 '../../src/apinatives.js', |
776 '../../src/debug-debugger.js', | 813 '../../src/debug-debugger.js', |
777 '../../src/mirror-debugger.js', | 814 '../../src/mirror-debugger.js', |
778 '../../src/liveedit-debugger.js', | 815 '../../src/liveedit-debugger.js', |
779 '../../src/date.js', | 816 '../../src/date.js', |
780 '../../src/json.js', | 817 '../../src/json.js', |
781 '../../src/regexp.js', | 818 '../../src/regexp.js', |
782 '../../src/macros.py', | 819 '../../src/macros.py', |
783 ], | 820 ], |
784 » 'experimental_library_files': [ | 821 'experimental_library_files': [ |
785 » '../../src/proxy.js', | 822 '../../src/proxy.js', |
786 '../../src/macros.py', | 823 '../../src/macros.py', |
787 » ], | 824 ], |
788 }, | 825 }, |
789 'actions': [ | 826 'actions': [ |
790 { | 827 { |
791 'action_name': 'js2c', | 828 'action_name': 'js2c', |
792 'inputs': [ | 829 'inputs': [ |
793 '../../tools/js2c.py', | 830 '../../tools/js2c.py', |
794 '<@(library_files)', | 831 '<@(library_files)', |
795 ], | 832 ], |
796 'outputs': [ | 833 'outputs': [ |
797 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 834 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
798 ], | 835 ], |
799 'action': [ | 836 'action': [ |
800 'python', | 837 'python', |
801 '../../tools/js2c.py', | 838 '../../tools/js2c.py', |
802 '<@(_outputs)', | 839 '<@(_outputs)', |
803 'CORE', | 840 'CORE', |
804 '<@(library_files)' | 841 '<@(library_files)' |
805 ], | 842 ], |
806 }, | 843 }, |
807 » { | 844 { |
808 'action_name': 'js2c_experimental', | 845 'action_name': 'js2c_experimental', |
809 'inputs': [ | 846 'inputs': [ |
810 '../../tools/js2c.py', | 847 '../../tools/js2c.py', |
811 '<@(experimental_library_files)', | 848 '<@(experimental_library_files)', |
812 ], | 849 ], |
813 'outputs': [ | 850 'outputs': [ |
814 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 851 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
815 ], | 852 ], |
816 'action': [ | 853 'action': [ |
817 'python', | 854 'python', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 'target_name': 'v8_shell', | 922 'target_name': 'v8_shell', |
886 'type': 'none', | 923 'type': 'none', |
887 'dependencies': [ | 924 'dependencies': [ |
888 'v8' | 925 'v8' |
889 ], | 926 ], |
890 }, | 927 }, |
891 ], | 928 ], |
892 }], | 929 }], |
893 ], | 930 ], |
894 } | 931 } |
OLD | NEW |