equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2012, 2013 SAP SE. All rights reserved. |
3 * Copyright (c) 2012, 2013 SAP SE. All rights reserved. |
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 |
146 #endif |
146 #endif |
147 } |
147 } |
148 |
148 |
149 |
149 |
150 // Access function to get the signature. |
150 // Access function to get the signature. |
151 IRT_ENTRY(address, InterpreterRuntime::get_signature(JavaThread* thread, Method* method)) |
151 JRT_ENTRY(address, InterpreterRuntime::get_signature(JavaThread* thread, Method* method)) |
152 methodHandle m(thread, method); |
152 methodHandle m(thread, method); |
153 assert(m->is_native(), "sanity check"); |
153 assert(m->is_native(), "sanity check"); |
154 Symbol *s = m->signature(); |
154 Symbol *s = m->signature(); |
155 return (address) s->base(); |
155 return (address) s->base(); |
156 IRT_END |
156 JRT_END |
157 |
157 |
158 IRT_ENTRY(address, InterpreterRuntime::get_result_handler(JavaThread* thread, Method* method)) |
158 JRT_ENTRY(address, InterpreterRuntime::get_result_handler(JavaThread* thread, Method* method)) |
159 methodHandle m(thread, method); |
159 methodHandle m(thread, method); |
160 assert(m->is_native(), "sanity check"); |
160 assert(m->is_native(), "sanity check"); |
161 return AbstractInterpreter::result_handler(m->result_type()); |
161 return AbstractInterpreter::result_handler(m->result_type()); |
162 IRT_END |
162 JRT_END |