equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2016, 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. |
37 class ciInstance : public ciObject { |
37 class ciInstance : public ciObject { |
38 CI_PACKAGE_ACCESS |
38 CI_PACKAGE_ACCESS |
39 |
39 |
40 protected: |
40 protected: |
41 ciInstance(instanceHandle h_i) : ciObject(h_i) { |
41 ciInstance(instanceHandle h_i) : ciObject(h_i) { |
42 assert(h_i()->is_instance(), "wrong type"); |
42 assert(h_i()->is_instance_noinline(), "wrong type"); |
43 } |
43 } |
44 |
44 |
45 ciInstance(ciKlass* klass) : ciObject(klass) {} |
45 ciInstance(ciKlass* klass) : ciObject(klass) {} |
46 |
46 |
47 instanceOop get_instanceOop() { return (instanceOop)get_oop(); } |
47 instanceOop get_instanceOop() { return (instanceOop)get_oop(); } |