hotspot/src/share/vm/opto/output.cpp
changeset 4752 67a506670cd0
parent 4750 71fd601907dc
child 4894 8a76fd3d098d
equal deleted inserted replaced
4751:9418f690831d 4752:67a506670cd0
     1 /*
     1 /*
     2  * Copyright 1998-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1998-2010 Sun Microsystems, Inc.  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.
  1428   if (_method) {
  1428   if (_method) {
  1429     // Emit the exception handler code.
  1429     // Emit the exception handler code.
  1430     _code_offsets.set_value(CodeOffsets::Exceptions, emit_exception_handler(*cb));
  1430     _code_offsets.set_value(CodeOffsets::Exceptions, emit_exception_handler(*cb));
  1431     // Emit the deopt handler code.
  1431     // Emit the deopt handler code.
  1432     _code_offsets.set_value(CodeOffsets::Deopt, emit_deopt_handler(*cb));
  1432     _code_offsets.set_value(CodeOffsets::Deopt, emit_deopt_handler(*cb));
       
  1433     // Emit the MethodHandle deopt handler code.  We can use the same
       
  1434     // code as for the normal deopt handler, we just need a different
       
  1435     // entry point address.
       
  1436     _code_offsets.set_value(CodeOffsets::DeoptMH, emit_deopt_handler(*cb));
  1433   }
  1437   }
  1434 
  1438 
  1435   // One last check for failed CodeBuffer::expand:
  1439   // One last check for failed CodeBuffer::expand:
  1436   if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) {
  1440   if ((cb->blob() == NULL) || (!CompileBroker::should_compile_new_jobs())) {
  1437     turn_off_compiler(this);
  1441     turn_off_compiler(this);