Mercurial > hg > truffle
comparison src/share/vm/classfile/verifier.hpp @ 10265:92ef81e2f571
8003557: NPG: Klass* const k should be const Klass* k.
Summary: With NPG, const KlassOop klass which is in fact a definition converted to Klass* const, which is not the original intention. The right usage is converting them to const Klass*.
Reviewed-by: coleenp, kvn
Contributed-by: yumin.qi@oracle.com
author | minqi |
---|---|
date | Fri, 10 May 2013 08:27:30 -0700 |
parents | da91efe96a93 |
children | 4552a7633a07 |
comparison
equal
deleted
inserted
replaced
10262:c272092594bd | 10265:92ef81e2f571 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1998, 2013, 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. |
222 void reset_frames() { | 222 void reset_frames() { |
223 _type.reset_frame(); | 223 _type.reset_frame(); |
224 _expected.reset_frame(); | 224 _expected.reset_frame(); |
225 } | 225 } |
226 | 226 |
227 void details(outputStream* ss, Method* method) const; | 227 void details(outputStream* ss, const Method* method) const; |
228 | 228 |
229 #ifdef ASSERT | 229 #ifdef ASSERT |
230 void print_on(outputStream* str) const { | 230 void print_on(outputStream* str) const { |
231 str->print("error_context(%d, %d,", _bci, _fault); | 231 str->print("error_context(%d, %d,", _bci, _fault); |
232 _type.print_on(str); | 232 _type.print_on(str); |
235 str->print(")"); | 235 str->print(")"); |
236 } | 236 } |
237 #endif | 237 #endif |
238 | 238 |
239 private: | 239 private: |
240 void location_details(outputStream* ss, Method* method) const; | 240 void location_details(outputStream* ss, const Method* method) const; |
241 void reason_details(outputStream* ss) const; | 241 void reason_details(outputStream* ss) const; |
242 void frame_details(outputStream* ss) const; | 242 void frame_details(outputStream* ss) const; |
243 void bytecode_details(outputStream* ss, Method* method) const; | 243 void bytecode_details(outputStream* ss, const Method* method) const; |
244 void handler_details(outputStream* ss, Method* method) const; | 244 void handler_details(outputStream* ss, const Method* method) const; |
245 void stackmap_details(outputStream* ss, Method* method) const; | 245 void stackmap_details(outputStream* ss, const Method* method) const; |
246 }; | 246 }; |
247 | 247 |
248 // A new instance of this class is created for each class being verified | 248 // A new instance of this class is created for each class being verified |
249 class ClassVerifier : public StackObj { | 249 class ClassVerifier : public StackObj { |
250 private: | 250 private: |