Joel Dice
8c1e7d48ad
fix bootimage lzma build
...
We were using the length of the uncompressed boot image when
generating the object file, whereas we should have been using the
compressed length.
2014-08-04 17:21:23 -06:00
Joshua Warner
e92230c89c
use c++11-conformant _WIN32 test macro
2014-07-30 16:05:30 -06:00
Joshua Warner
d8e0f5cc06
fix zlib headers / linking for windows
2014-07-30 14:15:22 -06:00
Joshua Warner
51b510cbea
first pass at cmake + visual studio support
2014-07-30 14:15:15 -06:00
Joel Dice
b811ca60c1
Merge pull request #291 from joshuawarner32/cpp11
...
Begin using c++11 features
2014-07-24 13:13:30 -06:00
Joshua Warner
31de9a48c9
reformat
2014-07-24 10:09:29 -06:00
Joshua Warner
d8ddc95315
use c++11 enhanced-for and auto in type-generator
2014-07-24 10:09:29 -06:00
Joshua Warner
d48093b777
fix unused variable warning when building with cmake
2014-07-24 09:42:44 -06:00
Joshua Warner
d248ad53b0
add initial cmake script (only builds parts of the code)
2014-07-24 09:36:40 -06:00
Joshua Warner
fa1e3d74c0
reduce Allocator interface
2014-07-16 18:51:29 -06:00
Joshua Warner
2d0ac3ac17
reduce vm::Zone interface
2014-07-16 18:41:02 -06:00
Joshua Warner
a1631c00f9
use size_t in Allocator
2014-07-16 18:10:51 -06:00
Joel Dice
2a43e68c16
fix all the bugs
...
So there I was, planning to just fix one little bug: Thread.holdsLock
and Thread.yield were missing for the Android class library. Easy
enough, right? So, I added a test, got it passing, and figured I'd go
ahead and run ci.sh with all three class libraries. Big mistake.
Here's the stuff I found:
* minor inconsistency in README.md about OpenSSL version
* untested, broken Class.getEnclosingMethod (reported by Josh)
* JNI test failed for tails=true Android build
* Runtime.nativeExit missing for Android build
* obsolete assertion in CallEvent broke tails=true Android build
* obsolete superclass field offset padding broke bootimage=true Android build
* runtime annotation parsing broke bootimage=true Android build
(because we couldn't modify Addendum.annotationTable for classes in
the heap image)
* ci.sh tried building with both android=... and openjdk=..., which
the makefile rightfully balked at
Sorry this is all in a single commit; I didn't expect so many
unrelated issues, and I'm too lazy to break them apart.
2014-07-12 16:57:24 -06:00
Joshua Warner
80f19abf3a
put all commented code in if(false) blocks instead; fix ensuing broken code
2014-07-12 10:16:03 -06:00
Joshua Warner
8a4b043ee3
generate makeZeroed method, to return a zero-initialzed instance of a Gc* class
2014-07-11 13:47:43 -06:00
Joshua Warner
836cc41320
bulk, global reformat
2014-07-11 13:25:22 -06:00
Joshua Warner
7642b94308
reformat changes since master
2014-07-11 13:25:22 -06:00
Joshua Warner
cbad6931af
retypedef object to GcObject*, remove (almost?) all unnecessary reinterpret_casts
2014-07-11 13:25:22 -06:00
Joshua Warner
b0490b8233
finish using setters
2014-07-11 13:25:22 -06:00
Joshua Warner
43b9cce7d0
don't mark nogc fields
2014-07-11 13:25:21 -06:00
Joshua Warner
40e71a4856
use setters in machine.cpp
2014-07-11 13:25:21 -06:00
Joshua Warner
880b9fa910
use setters in machine.h
2014-07-11 13:25:21 -06:00
Joshua Warner
07a9599d1a
generate new setters in type-generator
2014-07-11 13:25:21 -06:00
Joshua Warner
052f2498aa
formalize Machine::roots in types.def
2014-07-11 13:25:21 -06:00
Joshua Warner
75f2dd013c
remove old function-based accessors
2014-07-11 13:25:21 -06:00
Joshua Warner
a1583f1ecc
touch up type safety in types.def
2014-07-11 13:25:20 -06:00
Joshua Warner
c796bdbde4
add bootimage-generator/main.cpp changes
2014-07-11 13:25:20 -06:00
Joshua Warner
1e201e54fc
staticly type GcContinuation*
2014-07-11 13:25:20 -06:00
Joshua Warner
00e2307c39
apply machine.h changes
2014-07-11 13:25:19 -06:00
Joshua Warner
9ffbd7e9fe
staticly type GcClassLoader instances
2014-07-11 13:25:19 -06:00
Joshua Warner
6a0502bbfe
add util.cpp/.h changes
2014-07-11 13:25:19 -06:00
Joshua Warner
51368651dc
better statically type Processor interface
2014-07-11 13:25:19 -06:00
Joshua Warner
0ec87c6aa1
statically type Addendum.pool better
2014-07-11 13:25:19 -06:00
Joshua Warner
9f5912c2b6
add stronger typing to method.code
2014-07-11 13:25:19 -06:00
Joshua Warner
083dc17810
add stronger typing to code.lineNumberTable
2014-07-11 13:25:18 -06:00
Joshua Warner
9b36dca846
generate better typed accessors from type-generator (and switch to using standard library there)
2014-07-11 13:25:17 -06:00
Joshua Warner
263e349cae
rename assert to assertT, to avoid conflict with std assert macro
2014-07-11 09:32:57 -06:00
Joshua Warner
43bd838c86
generate accessors for array fields
2014-07-11 09:32:57 -06:00
Joshua Warner
b5699cc9dc
move Machine::*Type to GcObject::*Type
2014-07-11 09:32:55 -06:00
Joshua Warner
13452beaab
use arg-parser in type-generator
2014-07-11 09:12:34 -06:00
Joshua Warner
9a6f7bd0bf
rename platform=darwin -> platform={ios,macosx}, fix ios simulator build
2014-06-22 12:30:52 -06:00
Joshua Warner
41adb74eb1
remove powerpc support
2014-04-29 13:26:40 -06:00
Joshua Warner
34962ff334
Merge pull request #245 from dicej/jdk8
...
add support for using the OpenJDK 8 class library
2014-04-24 18:50:38 -06:00
Joel Dice
7de555c797
add support for using the OpenJDK 8 class library
...
This ensures that all tests pass when Avian is built with an
openjdk=$path option such that $path points to either OpenJDK 7 or 8.
Note that I have not yet tried using the openjdk-src option with
OpenJDK 8. I'll work on that next.
2014-04-23 15:36:56 -06:00
Joel Dice
9b7d0d1624
update copyright years
2014-04-23 15:33:41 -06:00
Joel Dice
a71e75140e
fix Android bootimage build
...
bb86500 was a step in the right direction, but there was a bug that
caused Type_pad fields to be inserted between every other field in for
a derived class when type-maps.cpp was generated, and this led to
miscompilation of e.g. Android's
java.lang.reflect.Constructor.getModifiers.
2014-04-11 19:48:06 -06:00
Joshua Warner
a368dc0625
remove unused 'audit-codegen' tool
2014-03-16 19:42:03 -06:00
Joshua Warner
db19c7b3a2
add Slice::resize and Slice::alloc
2014-02-25 20:34:03 -07:00
Joshua Warner
a807966143
use Slice<uint8_t> in FixedAllocator
2014-02-25 20:34:03 -07:00
Joshua Warner
52b23b8a6a
move Allocator to include, properly namespaced
2014-02-25 19:13:41 -07:00