hotspot/src/share/vm/opto/output.cpp
changeset 4749 f26b30116e3a
parent 4748 3fa8d8a7c0ea
child 4750 71fd601907dc
equal deleted inserted replaced
4748:3fa8d8a7c0ea 4749:f26b30116e3a
     1 /*
     1 /*
     2  * Copyright 1998-2010 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1998-2009 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));
       
  1437   }
  1433   }
  1438 
  1434 
  1439   // One last check for failed CodeBuffer::expand:
  1435   // One last check for failed CodeBuffer::expand:
  1440   if (cb->blob() == NULL) {
  1436   if (cb->blob() == NULL) {
  1441     turn_off_compiler(this);
  1437     turn_off_compiler(this);