| OLD | NEW | 
|---|
| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 122       ['v8_enable_verify_heap==1', { | 122       ['v8_enable_verify_heap==1', { | 
| 123         'defines': ['VERIFY_HEAP',], | 123         'defines': ['VERIFY_HEAP',], | 
| 124       }], | 124       }], | 
| 125       ['v8_interpreted_regexp==1', { | 125       ['v8_interpreted_regexp==1', { | 
| 126         'defines': ['V8_INTERPRETED_REGEXP',], | 126         'defines': ['V8_INTERPRETED_REGEXP',], | 
| 127       }], | 127       }], | 
| 128       ['v8_target_arch=="arm"', { | 128       ['v8_target_arch=="arm"', { | 
| 129         'defines': [ | 129         'defines': [ | 
| 130           'V8_TARGET_ARCH_ARM', | 130           'V8_TARGET_ARCH_ARM', | 
| 131         ], | 131         ], | 
| 132         'variables': { | 132         'target_conditions': [ | 
| 133           'armsimulator': '<!($(echo <(CXX)) -v 2>&1 | grep -q "^Target: arm" &&
      echo "no" || echo "yes")', | 133           ['_toolset=="host"', { | 
| 134         }, | 134             'variables': { | 
| 135         'conditions': [ | 135               'armcompiler': '<!($(echo ${CXX_host:-$(which g++)}) -v 2>&1 | gre
     p -q "^Target: arm" && echo "yes" || echo "no")', | 
| 136           [ 'v8_can_use_unaligned_accesses=="true"', { | 136             }, | 
| 137             'defines': [ | 137             'conditions': [ | 
| 138               'CAN_USE_UNALIGNED_ACCESSES=1', | 138               ['armcompiler=="yes"', { | 
| 139             ], |  | 
| 140           }, { |  | 
| 141             'defines': [ |  | 
| 142               'CAN_USE_UNALIGNED_ACCESSES=0', |  | 
| 143             ], |  | 
| 144           }], |  | 
| 145           ['armsimulator=="no"', { |  | 
| 146             'target_conditions': [ |  | 
| 147               ['_toolset=="target"', { |  | 
| 148                 'conditions': [ | 139                 'conditions': [ | 
| 149                   [ 'armv7==1', { | 140                   [ 'armv7==1', { | 
| 150                     'cflags': ['-march=armv7-a',], | 141                     'cflags': ['-march=armv7-a',], | 
| 151                   }], | 142                   }], | 
| 152                   [ 'armv7==1 or armv7=="default"', { | 143                   [ 'armv7==1 or armv7=="default"', { | 
| 153                     'conditions': [ | 144                     'conditions': [ | 
| 154                       [ 'arm_neon==1', { | 145                       [ 'arm_neon==1', { | 
| 155                         'cflags': ['-mfpu=neon',], | 146                         'cflags': ['-mfpu=neon',], | 
| 156                       }, | 147                       }, | 
| 157                       { | 148                       { | 
| 158                         'conditions': [ | 149                         'conditions': [ | 
| 159                           [ 'arm_fpu!="default"', { | 150                           [ 'arm_fpu!="default"', { | 
| 160                             'cflags': ['-mfpu=<(arm_fpu)',], | 151                             'cflags': ['-mfpu=<(arm_fpu)',], | 
| 161                           }], | 152                           }], | 
| 162                         ] | 153                         ], | 
| 163                       }], | 154                       }], | 
| 164                     ] | 155                     ], | 
| 165                   }], | 156                   }], | 
| 166                   [ 'arm_float_abi!="default"', { | 157                   [ 'arm_float_abi!="default"', { | 
| 167                     'cflags': ['-mfloat-abi=<(arm_float_abi)',], | 158                     'cflags': ['-mfloat-abi=<(arm_float_abi)',], | 
| 168                   }], | 159                   }], | 
| 169                   [ 'arm_thumb==1', { | 160                   [ 'arm_thumb==1', { | 
| 170                     'cflags': ['-mthumb',], | 161                     'cflags': ['-mthumb',], | 
| 171                   }], | 162                   }], | 
| 172                   [ 'arm_thumb==0', { | 163                   [ 'arm_thumb==0', { | 
| 173                     'cflags': ['-marm',], | 164                     'cflags': ['-marm',], | 
| 174                   }], | 165                   }], | 
|  | 166                   [ 'arm_test=="on"', { | 
|  | 167                     'defines': [ | 
|  | 168                       'ARM_TEST', | 
|  | 169                     ], | 
|  | 170                   }], | 
| 175                 ], | 171                 ], | 
| 176               }], | 172               }, { | 
| 177             ], | 173                 # armcompiler=="no" | 
| 178             'conditions': [ | 174                 'conditions': [ | 
| 179               [ 'arm_test=="on"', { | 175                   [ 'armv7==1 or armv7=="default"', { | 
|  | 176                     'defines': [ | 
|  | 177                       'CAN_USE_ARMV7_INSTRUCTIONS=1', | 
|  | 178                     ], | 
|  | 179                     'conditions': [ | 
|  | 180                       [ 'arm_fpu=="default"', { | 
|  | 181                         'defines': [ | 
|  | 182                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 183                         ], | 
|  | 184                       }], | 
|  | 185                       [ 'arm_fpu=="vfpv3-d16"', { | 
|  | 186                         'defines': [ | 
|  | 187                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 188                         ], | 
|  | 189                       }], | 
|  | 190                       [ 'arm_fpu=="vfpv3"', { | 
|  | 191                         'defines': [ | 
|  | 192                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 193                           'CAN_USE_VFP32DREGS', | 
|  | 194                         ], | 
|  | 195                       }], | 
|  | 196                       [ 'arm_fpu=="neon" or arm_neon==1', { | 
|  | 197                         'defines': [ | 
|  | 198                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 199                           'CAN_USE_VFP32DREGS', | 
|  | 200                         ], | 
|  | 201                       }], | 
|  | 202                     ], | 
|  | 203                   }], | 
|  | 204                   [ 'arm_float_abi=="hard"', { | 
|  | 205                     'defines': [ | 
|  | 206                       'USE_EABI_HARDFLOAT=1', | 
|  | 207                     ], | 
|  | 208                   }], | 
|  | 209                   [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 
|  | 210                     'defines': [ | 
|  | 211                       'USE_EABI_HARDFLOAT=0', | 
|  | 212                     ], | 
|  | 213                   }], | 
|  | 214                 ], | 
| 180                 'defines': [ | 215                 'defines': [ | 
| 181                   'ARM_TEST', | 216                   'ARM_TEST', | 
| 182                 ], | 217                 ], | 
| 183               }], | 218               }], | 
| 184             ], | 219             ], | 
| 185           }], | 220           }],  # _toolset=="host" | 
| 186           ['armsimulator=="yes"', { | 221           ['_toolset=="target"', { | 
| 187             'defines': [ | 222             'variables': { | 
| 188               'ARM_TEST', | 223               'armcompiler': '<!($(echo ${CXX_target:-<(CXX)}) -v 2>&1 | grep -q
      "^Target: arm" && echo "yes" || echo "no")', | 
| 189             ], | 224             }, | 
| 190             'conditions': [ | 225             'conditions': [ | 
| 191               [ 'armv7==1 or armv7=="default"', { | 226               ['armcompiler=="yes"', { | 
| 192                 'defines': [ |  | 
| 193                   'CAN_USE_ARMV7_INSTRUCTIONS=1', |  | 
| 194                 ], |  | 
| 195                 'conditions': [ | 227                 'conditions': [ | 
| 196                   [ 'arm_fpu=="default"', { | 228                   [ 'armv7==1', { | 
| 197                     'defines': [ | 229                     'cflags': ['-march=armv7-a',], | 
| 198                       'CAN_USE_VFP3_INSTRUCTIONS', | 230                   }], | 
|  | 231                   [ 'armv7==1 or armv7=="default"', { | 
|  | 232                     'conditions': [ | 
|  | 233                       [ 'arm_neon==1', { | 
|  | 234                         'cflags': ['-mfpu=neon',], | 
|  | 235                       }, | 
|  | 236                       { | 
|  | 237                         'conditions': [ | 
|  | 238                           [ 'arm_fpu!="default"', { | 
|  | 239                             'cflags': ['-mfpu=<(arm_fpu)',], | 
|  | 240                           }], | 
|  | 241                         ], | 
|  | 242                       }], | 
| 199                     ], | 243                     ], | 
| 200                   }], | 244                   }], | 
| 201                   [ 'arm_fpu=="vfpv3-d16"', { | 245                   [ 'arm_float_abi!="default"', { | 
|  | 246                     'cflags': ['-mfloat-abi=<(arm_float_abi)',], | 
|  | 247                   }], | 
|  | 248                   [ 'arm_thumb==1', { | 
|  | 249                     'cflags': ['-mthumb',], | 
|  | 250                   }], | 
|  | 251                   [ 'arm_thumb==0', { | 
|  | 252                     'cflags': ['-marm',], | 
|  | 253                   }], | 
|  | 254                   [ 'arm_test=="on"', { | 
| 202                     'defines': [ | 255                     'defines': [ | 
| 203                       'CAN_USE_VFP3_INSTRUCTIONS', | 256                       'ARM_TEST', | 
| 204                     ], |  | 
| 205                   }], |  | 
| 206                   [ 'arm_fpu=="vfpv3"', { |  | 
| 207                     'defines': [ |  | 
| 208                       'CAN_USE_VFP3_INSTRUCTIONS', |  | 
| 209                       'CAN_USE_VFP32DREGS', |  | 
| 210                     ], |  | 
| 211                   }], |  | 
| 212                   [ 'arm_fpu=="neon" or arm_neon==1', { |  | 
| 213                     'defines': [ |  | 
| 214                       'CAN_USE_VFP3_INSTRUCTIONS', |  | 
| 215                       'CAN_USE_VFP32DREGS', |  | 
| 216                     ], | 257                     ], | 
| 217                   }], | 258                   }], | 
| 218                 ], | 259                 ], | 
| 219               }], | 260               }, { | 
| 220               [ 'arm_float_abi=="hard"', { | 261                 # armcompiler=="no" | 
|  | 262                 'conditions': [ | 
|  | 263                   [ 'armv7==1 or armv7=="default"', { | 
|  | 264                     'defines': [ | 
|  | 265                       'CAN_USE_ARMV7_INSTRUCTIONS=1', | 
|  | 266                     ], | 
|  | 267                     'conditions': [ | 
|  | 268                       [ 'arm_fpu=="default"', { | 
|  | 269                         'defines': [ | 
|  | 270                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 271                         ], | 
|  | 272                       }], | 
|  | 273                       [ 'arm_fpu=="vfpv3-d16"', { | 
|  | 274                         'defines': [ | 
|  | 275                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 276                         ], | 
|  | 277                       }], | 
|  | 278                       [ 'arm_fpu=="vfpv3"', { | 
|  | 279                         'defines': [ | 
|  | 280                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 281                           'CAN_USE_VFP32DREGS', | 
|  | 282                         ], | 
|  | 283                       }], | 
|  | 284                       [ 'arm_fpu=="neon" or arm_neon==1', { | 
|  | 285                         'defines': [ | 
|  | 286                           'CAN_USE_VFP3_INSTRUCTIONS', | 
|  | 287                           'CAN_USE_VFP32DREGS', | 
|  | 288                         ], | 
|  | 289                       }], | 
|  | 290                     ], | 
|  | 291                   }], | 
|  | 292                   [ 'arm_float_abi=="hard"', { | 
|  | 293                     'defines': [ | 
|  | 294                       'USE_EABI_HARDFLOAT=1', | 
|  | 295                     ], | 
|  | 296                   }], | 
|  | 297                   [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 
|  | 298                     'defines': [ | 
|  | 299                       'USE_EABI_HARDFLOAT=0', | 
|  | 300                     ], | 
|  | 301                   }], | 
|  | 302                 ], | 
| 221                 'defines': [ | 303                 'defines': [ | 
| 222                   'USE_EABI_HARDFLOAT=1', | 304                   'ARM_TEST', | 
| 223                 ], | 305                 ], | 
| 224               }], | 306               }], | 
| 225               [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { | 307             ], | 
| 226                 'defines': [ | 308           }],  # _toolset=="target" | 
| 227                   'USE_EABI_HARDFLOAT=0', |  | 
| 228                 ], |  | 
| 229               }], |  | 
| 230             ] |  | 
| 231           }], |  | 
| 232         ], | 309         ], | 
| 233       }],  # v8_target_arch=="arm" | 310       }],  # v8_target_arch=="arm" | 
| 234       ['v8_target_arch=="ia32"', { | 311       ['v8_target_arch=="ia32"', { | 
| 235         'defines': [ | 312         'defines': [ | 
| 236           'V8_TARGET_ARCH_IA32', | 313           'V8_TARGET_ARCH_IA32', | 
| 237         ], | 314         ], | 
| 238       }],  # v8_target_arch=="ia32" | 315       }],  # v8_target_arch=="ia32" | 
| 239       ['v8_target_arch=="mipsel"', { | 316       ['v8_target_arch=="mipsel"', { | 
| 240         'defines': [ | 317         'defines': [ | 
| 241           'V8_TARGET_ARCH_MIPS', | 318           'V8_TARGET_ARCH_MIPS', | 
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 507                 'OptimizeReferences': '2', | 584                 'OptimizeReferences': '2', | 
| 508                 'EnableCOMDATFolding': '2', | 585                 'EnableCOMDATFolding': '2', | 
| 509               }, | 586               }, | 
| 510             }, | 587             }, | 
| 511           }],  # OS=="win" | 588           }],  # OS=="win" | 
| 512         ],  # conditions | 589         ],  # conditions | 
| 513       },  # Release | 590       },  # Release | 
| 514     },  # configurations | 591     },  # configurations | 
| 515   },  # target_defaults | 592   },  # target_defaults | 
| 516 } | 593 } | 
| OLD | NEW | 
|---|