Mercurial > hg > truffle
comparison src/share/vm/interpreter/interpreterRuntime.cpp @ 6985:80e866b1d053
Merge
author | coleenp |
---|---|
date | Fri, 16 Nov 2012 09:19:12 -0500 |
parents | 64672b22ef05 070d523b96a7 |
children | 2cb439954abf cd3d6a6b95d9 |
comparison
equal
deleted
inserted
replaced
6974:6b6ddf8c4329 | 6985:80e866b1d053 |
---|---|
310 IRT_END | 310 IRT_END |
311 | 311 |
312 | 312 |
313 IRT_ENTRY(void, InterpreterRuntime::create_klass_exception(JavaThread* thread, char* name, oopDesc* obj)) | 313 IRT_ENTRY(void, InterpreterRuntime::create_klass_exception(JavaThread* thread, char* name, oopDesc* obj)) |
314 ResourceMark rm(thread); | 314 ResourceMark rm(thread); |
315 const char* klass_name = Klass::cast(obj->klass())->external_name(); | 315 const char* klass_name = obj->klass()->external_name(); |
316 // lookup exception klass | 316 // lookup exception klass |
317 TempNewSymbol s = SymbolTable::new_symbol(name, CHECK); | 317 TempNewSymbol s = SymbolTable::new_symbol(name, CHECK); |
318 if (ProfileTraps) { | 318 if (ProfileTraps) { |
319 note_trap(thread, Deoptimization::Reason_class_check, CHECK); | 319 note_trap(thread, Deoptimization::Reason_class_check, CHECK); |
320 } | 320 } |
339 IRT_ENTRY(void, InterpreterRuntime::throw_ClassCastException( | 339 IRT_ENTRY(void, InterpreterRuntime::throw_ClassCastException( |
340 JavaThread* thread, oopDesc* obj)) | 340 JavaThread* thread, oopDesc* obj)) |
341 | 341 |
342 ResourceMark rm(thread); | 342 ResourceMark rm(thread); |
343 char* message = SharedRuntime::generate_class_cast_message( | 343 char* message = SharedRuntime::generate_class_cast_message( |
344 thread, Klass::cast(obj->klass())->external_name()); | 344 thread, obj->klass()->external_name()); |
345 | 345 |
346 if (ProfileTraps) { | 346 if (ProfileTraps) { |
347 note_trap(thread, Deoptimization::Reason_class_check, CHECK); | 347 note_trap(thread, Deoptimization::Reason_class_check, CHECK); |
348 } | 348 } |
349 | 349 |