334 |
334 |
335 // Fetching constants |
335 // Fetching constants |
336 |
336 |
337 Klass* klass_at(int which, TRAPS) { |
337 Klass* klass_at(int which, TRAPS) { |
338 constantPoolHandle h_this(THREAD, this); |
338 constantPoolHandle h_this(THREAD, this); |
339 return klass_at_impl(h_this, which, true, CHECK_NULL); |
339 return klass_at_impl(h_this, which, true, THREAD); |
340 } |
340 } |
341 |
341 |
342 // Version of klass_at that doesn't save the resolution error, called during deopt |
342 // Version of klass_at that doesn't save the resolution error, called during deopt |
343 Klass* klass_at_ignore_error(int which, TRAPS) { |
343 Klass* klass_at_ignore_error(int which, TRAPS) { |
344 constantPoolHandle h_this(THREAD, this); |
344 constantPoolHandle h_this(THREAD, this); |
345 return klass_at_impl(h_this, which, false, CHECK_NULL); |
345 return klass_at_impl(h_this, which, false, THREAD); |
346 } |
346 } |
347 |
347 |
348 Symbol* klass_name_at(int which); // Returns the name, w/o resolving. |
348 Symbol* klass_name_at(int which); // Returns the name, w/o resolving. |
349 |
349 |
350 Klass* resolved_klass_at(int which) const { // Used by Compiler |
350 Klass* resolved_klass_at(int which) const { // Used by Compiler |