aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2013-03-10 17:30:19 +0200
committerPekka Enberg <penberg@kernel.org>2013-03-10 17:31:51 +0200
commitdb0c745cc273e1ee8e7323525f57cc8d9f922938 (patch)
treeb24a63dad4345370f112f2f9cad92e71d7478c2a
parent53db0b830e05d9510a5f1d3fb73330d89d46d6d4 (diff)
downloadjato-db0c745cc273e1ee8e7323525f57cc8d9f922938.tar.gz
x86-64: Fix invokestatic for missing methods
Fix the instruction selector rule for invokestatic to properly handle missing methods. The NoSuchMethodErrorTest test case is not enabled due to unrelated problems that cause it to hang indefinitely while compiling the test method for invokevirtual. Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--arch/x86/insn-selector_64.brg2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/insn-selector_64.brg b/arch/x86/insn-selector_64.brg
index 9f09868e..18662d21 100644
--- a/arch/x86/insn-selector_64.brg
+++ b/arch/x86/insn-selector_64.brg
@@ -2538,7 +2538,7 @@ static void invoke(struct basic_block *s, struct tree_node *tree)
if (nr_stack_args)
method_args_cleanup(s, tree, nr_stack_args);
- if (vm_method_is_native(method))
+ if (vm_method_is_missing(method) || vm_method_is_native(method))
select_exception_test(s, tree);
}