1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
271 assert(o == NULL || o->is_oop(), "oop only"); |
271 assert(o == NULL || o->is_oop(), "oop only"); |
272 return o; |
272 return o; |
273 } |
273 } |
274 Method* read_method() { |
274 Method* read_method() { |
275 Method* o = (Method*)(code()->metadata_at(read_int())); |
275 Method* o = (Method*)(code()->metadata_at(read_int())); |
276 assert(o == NULL || |
276 // is_metadata() is a faster check than is_metaspace_object() |
277 o->is_metaspace_object(), "meta data only"); |
277 assert(o == NULL || o->is_metadata(), "meta data only"); |
278 return o; |
278 return o; |
279 } |
279 } |
280 ScopeValue* read_object_value(); |
280 ScopeValue* read_object_value(); |
281 ScopeValue* get_cached_object(); |
281 ScopeValue* get_cached_object(); |
282 // BCI encoding is mostly unsigned, but -1 is a distinguished value |
282 // BCI encoding is mostly unsigned, but -1 is a distinguished value |