[penberg/jato] 084701: lib: add generic resizable array

2009-08-23 Thread noreply
Branch: refs/heads/master Home: http://github.com/penberg/jato Commit: 084701004104537e9c7c5a229a69ea7f83bb3ed2 http://github.com/penberg/jato/commit/084701004104537e9c7c5a229a69ea7f83bb3ed2 Author: Vegard Nossum Date: 2009-08-23 (Sun, 23 Aug 2009) Changed paths: A include/lib/array.h

[PATCH] trace: filter traces by regex given by -Xtrace:method

2009-08-23 Thread Vegard Nossum
Example: $ jato -Xtrace:invoke -Xtrace:method 'Vector\.add' jvm/PrintTest [main] trace invoke: java/util/Vector.add(Ljava/lang/Object;)Z [main] trace invoke: java/util/Vector.addElement(Ljava/lang/Object;)V [main] trace invoke: java/util/Vector.add(Ljava/lang/Object;)Z [main] trace invok

[PATCH] jit: remove trace_flush() from the middle of compile()

2009-08-23 Thread Tomek Grabiec
Signed-off-by: Tomek Grabiec --- jit/compiler.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/jit/compiler.c b/jit/compiler.c index 645e9b2..1fa321a 100644 --- a/jit/compiler.c +++ b/jit/compiler.c @@ -66,7 +66,7 @@ int compile(struct compilation_unit *cu) err

[PATCH 5/7] lib: add array_unique() to filter out duplicate elements

2009-08-23 Thread Vegard Nossum
Signed-off-by: Vegard Nossum --- Makefile |1 + include/lib/array.h|4 +++ lib/array.c| 50 test/arch-x86/Makefile |1 + 4 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 lib/array.c

[PATCH 1/7] lib: add generic resizable array

2009-08-23 Thread Vegard Nossum
Signed-off-by: Vegard Nossum --- include/lib/array.h | 84 +++ 1 files changed, 84 insertions(+), 0 deletions(-) create mode 100644 include/lib/array.h diff --git a/include/lib/array.h b/include/lib/array.h new file mode 100644 index 000..3b

[PATCH 7/7] vm: remove duplicate methods from itable

2009-08-23 Thread Vegard Nossum
This fixes the lighthouse ticket: http://jato.lighthouseapp.com/projects/29055-jato/tickets/4 Actually, the ticket describes a slightly different scenario. The scenario from the ticket: interface A { void foo(); } interface B { void foo();

[PATCH 6/7] vm: fix abstract class implementing two interfaces with the same method

2009-08-23 Thread Vegard Nossum
Signed-off-by: Vegard Nossum --- vm/class.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/vm/class.c b/vm/class.c index abd3a5b..aced89b 100644 --- a/vm/class.c +++ b/vm/class.c @@ -204,6 +204,22 @@ static int insert_interface_method(struct vm_cla

[PATCH 2/7] vm: add unimplemented interface methods to abstract classes

2009-08-23 Thread Vegard Nossum
Reported-by: Tomek Grabiec Signed-off-by: Vegard Nossum --- include/vm/class.h |1 + include/vm/method.h |3 ++ vm/class.c | 85 +- vm/method.c | 19 +++ 4 files changed, 99 insertions(+), 9 deletions(-) diff

[PATCH 4/7] lib: add array_qsort() helper function

2009-08-23 Thread Vegard Nossum
Signed-off-by: Vegard Nossum --- include/lib/array.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/lib/array.h b/include/lib/array.h index 3b43db5..cff85c1 100644 --- a/include/lib/array.h +++ b/include/lib/array.h @@ -81,4 +81,10 @@ static inline int array

[PATCH 3/7] regression: add VirtualAbstractInterfaceMethodTest

2009-08-23 Thread Vegard Nossum
NOTE: The test-case was actually derived by Tomek Grabiec. Signed-off-by: Vegard Nossum --- Makefile |1 + .../jvm/VirtualAbstractInterfaceMethodTest.java| 29 regression/run-suite.sh|1 + 3

Re: [PATCH] regression: add MirandaInterfaceMethodTest

2009-08-23 Thread Pekka Enberg
On Sun, 2009-08-23 at 09:06 +0200, Vegard Nossum wrote: > I did write something about this in the changelog of one of the other > patches. It is correct that this is not _exactly_ what a miranda > method is, but it would have been called a miranda method if it was > generated by javac. But we're do

Re: [PATCH] regression: add MirandaInterfaceMethodTest

2009-08-23 Thread Vegard Nossum
2009/8/23 Pekka Enberg : > Vegard Nossum wrote: >> >> @@ -0,0 +1,29 @@ >> +package jvm; >> + >> +/** >> + * @author Tomek Grabiec >> + * @author Vegard Nossum >> + */ >> +public class MirandaInterfaceMethodTest extends TestCase { > > AFAICT, the name "miranda" is for methods inserted by javac to