zra@google.com
3508d336dd
Simplifies standalone VM Android build.
...
This change also avoids the need to
do another 'gclient runhooks' when switching
between Android and Linux builds, and between
IA32 and ARM Android builds.
gyp does not allow 'libraries' sections inside of
configurations. Therefore, since some architecture
specific paths, libraries, etc. must be specified
on the Android NDK's linker command line, to avoid
re-gyping when switching between Android IA32 and ARM,
this change moves the architecture specific linker
flags to a script, android_link.py.
To avoid re-gyping when swtiching between Linux and
Android, this change creates new configurations
that specify the target OS as well as the the target
architecture, e.g. ReleaseLinuxARM or ReleaseAndroidARM
instead of ReleaseARM.
This change also adds a --toolchain flag to build.py,
and removes obsoleted logic for setting up the Android
build.
R=iposva@google.com
Review URL: https://codereview.chromium.org//105223002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31340 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 17:51:34 +00:00
johnmccutchan@google.com
dc217a8aa0
Fix crash walking call stack on Linux.
...
BUG=
R=asiva@google.com
Review URL: https://codereview.chromium.org//116703003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31192 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 16:48:55 +00:00
johnmccutchan@google.com
eb99334209
Attempt at enabling profiler
...
BUG=
Review URL: https://codereview.chromium.org//78713003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30478 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 17:57:56 +00:00
johnmccutchan@google.com
31989f3b4d
Post landing fixes
...
TBR
Review URL: https://codereview.chromium.org//65983005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30420 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 19:11:41 +00:00
johnmccutchan@google.com
97ac18aee9
Sampling profiler
...
BUG=4350
R=asiva@google.com
Review URL: https://codereview.chromium.org//25909002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30419 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 18:26:10 +00:00
zra@google.com
df1e5247fe
Adds support for ARM softfp calling convention.
...
The cross-compiler with the Android NDK doesn't support
the 'hard' calling convention, so we need both. I've
added a preprocessor define to the gyp file for the
standalone vm indicating support for 'hard' so that I
don't have to modify the Dartium gyp files.
R=srdjan@google.com
Review URL: https://codereview.chromium.org//52803002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29577 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 18:57:55 +00:00
kustermann@google.com
34654bff3d
standalone.deps: Change gyp generation to make "./tools/build.py runtime" work
...
R=iposva@google.com , ricow@google.com
Review URL: https://codereview.chromium.org//26212004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28929 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 12:33:39 +00:00
kevmoo@j832.com
784099d155
fix for XCode 5
...
also fixes 'Unknown Xcode Version' code path
BUG= https://code.google.com/p/dart/issues/detail?id=13492
R=kustermann@google.com
Review URL: https://codereview.chromium.org//23757062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27752 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-23 11:08:12 +00:00
zra@google.com
e155ff8c53
Revert last commit
...
Review URL: https://codereview.chromium.org//23889034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27507 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 23:36:32 +00:00
zra@google.com
a61d0c66b0
Allows build of the standalone VM for ARM adroid.
...
R=iposva@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//23788009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27506 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 23:29:14 +00:00
ricow@google.com
3be5be3130
Disble 4351 warnings on msvs compiler
...
Chromium is actually disabling additional warnings see:
http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?view=markup#l4447
do we want to disable any of these as well?
R=kmillikin@google.com
Review URL: https://codereview.chromium.org//23447007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26864 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-29 12:22:05 +00:00
kustermann@google.com
058b7f648d
Remove -static from ldflags after precise upgrade
...
R=zra@google.com
Review URL: https://codereview.chromium.org//22835004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26055 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 15:15:21 +00:00
fschneider@google.com
bedc0fe042
Revert r25914 because of clang build error.
...
TBR=ricow@google.com
Review URL: https://codereview.chromium.org//22672002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25916 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 07:52:35 +00:00
fschneider@google.com
27ea45d8e1
Fix inconsistent equality with doubles and large integers on ia32.
...
For numbers a == b should be the same as b == a. This is done by avoiding
generating 80-bit precision x87 FP code.
x64 and Mac OS already compile using SSE2.
BUG=https://code.google.com/p/dart/issues/detail?id=8829
TEST=tests/language/large_integer_equality_vm_test.dart
R=srdjan@google.com
Review URL: https://codereview.chromium.org//22370006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25914 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 07:42:59 +00:00
asiva@google.com
da491fce35
Fix compilation flag that was inadvertently changed
...
in https://codereview.chromium.org/16973003/
R=srdjan@google.com
Review URL: https://codereview.chromium.org//16872003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24113 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-17 22:39:14 +00:00
asiva@google.com
51651ee00b
Split dart_api.h into multiple parts:
...
dart_api.h - Has the core API functions
dart_mirrors_api.h - Has API functions to support Mirrors or reflection
dart_native_api.h - Has parts which support the native message handling,
profilling and other internal tools
R=sgjesse@google.com , vsm@google.com
Review URL: https://codereview.chromium.org//16973003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24062 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 23:47:40 +00:00
kustermann@google.com
f73188d127
Use gnueabihf for ARM + enabled corelib/isolate/lib/standalone tests on ARM again
...
R=regis@google.com
Review URL: https://codereview.chromium.org//16638009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23854 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 14:21:28 +00:00
zra@google.com
e6cf04a8bb
Changes to run "Hello, world!" on MIPS hardware.
...
R=regis@google.com
Review URL: https://codereview.chromium.org//16160013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23484 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 18:41:41 +00:00
kustermann@google.com
506240c825
Add '-static' to ldflags when target architecture is ARM.
...
R=zra@google.com
Review URL: https://codereview.chromium.org//15293005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22916 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 07:15:01 +00:00
kustermann@google.com
9f1c5e5269
Add library dependencies to debug configuration as well
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//14877015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22464 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 14:51:58 +00:00
kustermann@google.com
306e65b801
Adding library dependencies on windows
...
Previously gyp added a whole set of default library dependencies.
These dependencies are no longer added by the gyp generator and have to
explicitly state our dependencies in the gyp files.
R=ricow@google.com
Review URL: https://codereview.chromium.org//14727011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22462 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 14:26:46 +00:00
iposva@google.com
a6fb0962e2
- Fixed some old-style casts.
...
- Remove TODO as it is not feasible to ever enable.
R=kustermann@google.com
Review URL: https://codereview.chromium.org//14628009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22313 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 11:40:23 +00:00
kustermann@google.com
60f666a7d3
Revert "Revert "Use clang on mac if XCode >= 4.5""
...
The V8 dependency has been removed, so we should be able to enable clang on mac
again.
R=ricow@google.com
Review URL: https://codereview.chromium.org//14751012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22304 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 08:34:24 +00:00
kustermann@google.com
d8411ffe56
Remove v8 source dependency, enable more compiler warnings
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//14769009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22299 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-02 07:20:50 +00:00
kustermann@google.com
6567120249
Revert "Use clang on mac if XCode >= 4.5"
...
We cannot build v8 after this change because clang reports a warning in
v8/src/parser.cc about an unused field (and we turn warnings into errors).
We can enable this change again after we update to a new v8 version (this seems
to be fixed in v3.17).
Review URL: https://codereview.chromium.org//14477015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21984 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 21:05:30 +00:00
kustermann@google.com
84b27afce5
Use clang on mac if XCode >= 4.5
...
Review URL: https://codereview.chromium.org//14333010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21950 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 14:43:35 +00:00
iposva@google.com
539588333e
- Reduce warnings about project settings in Xcode 4.
...
- Address compilation warnings found by clang.
Review URL: https://codereview.chromium.org//14084006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21786 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-22 05:31:03 +00:00
zra@google.com
dae5068650
Enables cross-compilation of the VM for ARM.
...
Uses the "toolset" feature of gyp to build the dart VM
for ARM, but restricts building of snapshot generation
to the host machine.
For generated source files, it also changes to using
LIB_DIR instead of SHARED_INTERMEDIATE_DIR to avoid
generation of duplicate Makefile rules (gyp doesn't
know that generated source files from toolchains it
thinks are different will be the same.)
Review URL: https://codereview.chromium.org//12726011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21757 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 18:05:44 +00:00
iposva@google.com
0d1af8b22c
- Do not emit PIC code and frame pointers for release targets.
...
Review URL: https://codereview.chromium.org//13826002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21120 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 23:05:52 +00:00
iposva@google.com
55c40427bb
- Not all Xcode versions feature a release number. Update
...
the find_mac_gcc_version.py script accordingly.
Review URL: https://codereview.chromium.org//12740006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20217 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 16:37:47 +00:00
kustermann@google.com
ff41b6b3b1
Automatically determine the gcc compiler to use based on XCode version
...
Review URL: https://codereview.chromium.org//12494015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20190 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 08:28:34 +00:00
kustermann@google.com
8621bd99fb
Use the lowest MacOS SDK available on a system
...
Review URL: https://codereview.chromium.org//12672003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20062 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 08:39:31 +00:00
iposva@google.com
8e93d20303
- Disable source_filter.gypi.
...
- Adjust some more OS dependent files.
Review URL: https://codereview.chromium.org//12313021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18797 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 23:40:32 +00:00
johnmccutchan@google.com
9fb0984c9d
SSE Assembler + Linux build fixes
...
Review URL: https://codereview.chromium.org//12223115
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18493 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 23:05:17 +00:00
iposva@google.com
44bc457424
- Fix simarm/simmips builds on Mac.
...
Review URL: https://codereview.chromium.org//12033063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17505 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 22:17:26 +00:00
regis@google.com
be9555b2e1
Mofify vm code base so that it can be built for --arch=simmips.
...
Review URL: https://codereview.chromium.org//12018023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17321 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 21:46:58 +00:00
regis@google.com
350fa57800
Add mips and simmips build targets.
...
Review URL: https://codereview.chromium.org//11859034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17319 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 21:34:53 +00:00
gram@google.com
e247b60bcd
Shared library for embedding VM in Android apps.
...
Review URL: https://codereview.chromium.org//11419237
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15556 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 00:10:27 +00:00
ager@google.com
2ab635e6c7
Remove output directory from library path on Linux.
...
Move the setting of -rdynamic to the two executables that need
it (dart, dart_no_snapshot). It is needed to allow dynamically
loaded libraries to lookup the API symbols in the binary. We
use that for native extensions.
R=whesse@google.com ,iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//11316144
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15258 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 14:41:34 +00:00
ager@google.com
0818b5ac2f
Change the xcode configuration file to use an overwritable variable
...
for the xcode gcc version.
This allows me to build with xcode 4 without a local patch to
build files by just creating overwrites in my ~/.gyp/include.gypi:
{
'variables': {
'xcode_gcc_version': 'com.apple.compilers.llvmgcc42',
'mac_sdk': '10.7',
'mac_deployment_target': '10.7',
}
}
R=ahe@google.com ,iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//11410084
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14894 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 13:45:01 +00:00
whesse@google.com
92045c8c64
Change gyp flag from in_dartium to dart_io_support.
...
BUG=
Review URL: https://codereview.chromium.org//11377098
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14842 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 11:47:31 +00:00
whesse@google.com
d131fa7e72
Disable NSS build targets in a Dartium build.
...
BUG=
Review URL: https://codereview.chromium.org//11369152
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14740 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 13:56:08 +00:00
iposva@google.com
970fe841d3
- Emit frame pointers in C++ code: Enables better support for tools.
...
Review URL: https://codereview.chromium.org//11364026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14425 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 18:41:34 +00:00
kasperl@google.com
87c3813fc9
Use statically linked runtime library to avoid dependency on msvcr100.dll on windows.
...
R=ricow@google.com ,iposva@google.com
BUG=
Review URL: https://codereview.chromium.org//11367034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14406 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 13:49:05 +00:00
jackpal@google.com
3e510176c2
Fix Android build breaks
...
Prevent Android's STLPort from undefining global functions from
math.h when cmath is included after math.h.
The Android STLPort does not provide std::assert or std::atexit. Use
the C versions of these functions on Android.
BUG=
Review URL: https://codereview.chromium.org//10968027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12741 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 22:04:37 +00:00
johnniwinther@google.com
5bb04a5069
MSVS output to /build/ dir.
...
Review URL: https://codereview.chromium.org//10933125
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12471 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 07:48:26 +00:00
iposva@google.com
b0a59f5624
- Do not pass -ansi to gcc to get va_copy.
...
Review URL: https://chromiumcodereview.appspot.com//10919216
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12206 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 15:23:08 +00:00
ricow@google.com
4de86f1946
Update V8 to version 3.12.
...
This is a reapply of 11597 with a fix for duplicate Dart_Debug section in the runtime-configurations.gype.
Review URL: https://chromiumcodereview.appspot.com//10917007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11601 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:20:35 +00:00
ahe@google.com
4a89ba1dca
Revert "Update V8 to 3.12."
...
This reverts r11597.
Review URL: https://chromiumcodereview.appspot.com//10916006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11599 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 10:54:23 +00:00
ahe@google.com
7197f2ab2d
Update V8 to 3.12.
...
This includes moving some xcode settings to
runtime-configurations.gypi as they were
conflicting with v8 build.
Testing:
$ ./tools/build.py -mrelease --arch=x64,ia32
$ ./tools/test.py -mrelease --arch ia32,x64
$ file xcodebuild/ReleaseIA32/dart xcodebuild/ReleaseX64/dart xcodebuild/ReleaseIA32/d8 xcodebuild/ReleaseX64/d8
xcodebuild/ReleaseIA32/dart: Mach-O executable i386
xcodebuild/ReleaseX64/dart: Mach-O 64-bit executable x86_64
xcodebuild/ReleaseIA32/d8: Mach-O executable i386
xcodebuild/ReleaseX64/d8: Mach-O executable i386
Review URL: https://chromiumcodereview.appspot.com//10892034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11597 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 10:43:56 +00:00