Mercurial > hg > graal-compiler
comparison src/cpu/zero/vm/interpreter_zero.cpp @ 2480:4b95bbb36464
7035870: JSR 292: Zero support
Summary: This adds support for JSR 292 to Zero.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
author | twisti |
---|---|
date | Tue, 12 Apr 2011 02:40:23 -0700 |
parents | f95d63e2154a |
children | 3d2ab563047a |
comparison
equal
deleted
inserted
replaced
2479:15c9a0e16269 | 2480:4b95bbb36464 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. | 3 * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * | 5 * |
6 * This code is free software; you can redistribute it and/or modify it | 6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as | 7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. | 8 * published by the Free Software Foundation. |
47 #include "runtime/vframeArray.hpp" | 47 #include "runtime/vframeArray.hpp" |
48 #include "utilities/debug.hpp" | 48 #include "utilities/debug.hpp" |
49 #ifdef COMPILER1 | 49 #ifdef COMPILER1 |
50 #include "c1/c1_Runtime1.hpp" | 50 #include "c1/c1_Runtime1.hpp" |
51 #endif | 51 #endif |
52 #ifdef CC_INTERP | |
53 #include "interpreter/cppInterpreter.hpp" | |
54 #endif | |
52 | 55 |
53 address AbstractInterpreterGenerator::generate_slow_signature_handler() { | 56 address AbstractInterpreterGenerator::generate_slow_signature_handler() { |
54 _masm->advance(1); | 57 _masm->advance(1); |
55 return (address) InterpreterRuntime::slow_signature_handler; | 58 return (address) InterpreterRuntime::slow_signature_handler; |
56 } | 59 } |
62 | 65 |
63 Unimplemented(); | 66 Unimplemented(); |
64 } | 67 } |
65 | 68 |
66 address InterpreterGenerator::generate_abstract_entry() { | 69 address InterpreterGenerator::generate_abstract_entry() { |
67 return ShouldNotCallThisEntry(); | 70 return generate_entry((address) ShouldNotCallThisEntry()); |
68 } | 71 } |
69 | 72 |
70 address InterpreterGenerator::generate_method_handle_entry() { | 73 address InterpreterGenerator::generate_method_handle_entry() { |
71 return ShouldNotCallThisEntry(); | 74 #ifdef CC_INTERP |
75 return generate_entry((address) CppInterpreter::method_handle_entry); | |
76 #else | |
77 return generate_entry((address) ShouldNotCallThisEntry()); | |
78 #endif // CC_INTERP | |
72 } | 79 } |
73 | 80 |
74 bool AbstractInterpreter::can_be_compiled(methodHandle m) { | 81 bool AbstractInterpreter::can_be_compiled(methodHandle m) { |
75 return true; | 82 return true; |
76 } | 83 } |