cf51230881
This affects arm64 and x64. Note that we do not yet optimize these conversions. Later we will add support for merging these conversion operators into other operations during instruction selection. TEST=cctest,compiler-unittests R=jarin@chromium.org Review URL: https://codereview.chromium.org/487723002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23184 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
81 lines
2.5 KiB
Python
81 lines
2.5 KiB
Python
# Copyright 2014 the V8 project authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
{
|
|
'variables': {
|
|
'v8_code': 1,
|
|
},
|
|
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
|
|
'targets': [
|
|
{
|
|
'target_name': 'compiler-unittests',
|
|
'type': 'executable',
|
|
'dependencies': [
|
|
'../../testing/gmock.gyp:gmock',
|
|
'../../testing/gtest.gyp:gtest',
|
|
'../../tools/gyp/v8.gyp:v8_libplatform',
|
|
],
|
|
'include_dirs': [
|
|
'../..',
|
|
],
|
|
'sources': [ ### gcmole(all) ###
|
|
'change-lowering-unittest.cc',
|
|
'common-operator-unittest.cc',
|
|
'common-operator-unittest.h',
|
|
'compiler-unittests.cc',
|
|
'graph-unittest.cc',
|
|
'graph-unittest.h',
|
|
'instruction-selector-unittest.cc',
|
|
'machine-operator-reducer-unittest.cc',
|
|
'machine-operator-unittest.cc',
|
|
],
|
|
'conditions': [
|
|
['v8_target_arch=="arm"', {
|
|
'sources': [ ### gcmole(arch:arm) ###
|
|
'arm/instruction-selector-arm-unittest.cc',
|
|
],
|
|
}],
|
|
['v8_target_arch=="arm64"', {
|
|
'sources': [ ### gcmole(arch:arm64) ###
|
|
'arm64/instruction-selector-arm64-unittest.cc',
|
|
],
|
|
}],
|
|
['v8_target_arch=="ia32"', {
|
|
'sources': [ ### gcmole(arch:ia32) ###
|
|
'ia32/instruction-selector-ia32-unittest.cc',
|
|
],
|
|
}],
|
|
['v8_target_arch=="x64"', {
|
|
'sources': [ ### gcmole(arch:x64) ###
|
|
'x64/instruction-selector-x64-unittest.cc',
|
|
],
|
|
}],
|
|
['component=="shared_library"', {
|
|
# compiler-unittests can't be built against a shared library, so we
|
|
# need to depend on the underlying static target in that case.
|
|
'conditions': [
|
|
['v8_use_snapshot=="true"', {
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'],
|
|
},
|
|
{
|
|
'dependencies': [
|
|
'../../tools/gyp/v8.gyp:v8_nosnapshot',
|
|
],
|
|
}],
|
|
],
|
|
}, {
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8'],
|
|
}],
|
|
['os_posix == 1', {
|
|
# TODO(svenpanne): This is a temporary work-around to fix the warnings
|
|
# that show up because we use -std=gnu++0x instead of -std=c++11.
|
|
'cflags!': [
|
|
'-pedantic',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
],
|
|
}
|