src/hotspot/cpu/x86/methodHandles_x86.cpp
changeset 48807 fd8ccb37fce9
parent 47765 b7c7428eaab9
child 49449 ef5d5d343e2a
equal deleted inserted replaced
48806:51fc22e5fb00 48807:fd8ccb37fce9
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, 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.
   587                            args->entry_sp);
   587                            args->entry_sp);
   588 }
   588 }
   589 
   589 
   590 void MethodHandles::trace_method_handle(MacroAssembler* _masm, const char* adaptername) {
   590 void MethodHandles::trace_method_handle(MacroAssembler* _masm, const char* adaptername) {
   591   if (!TraceMethodHandles)  return;
   591   if (!TraceMethodHandles)  return;
   592   BLOCK_COMMENT("trace_method_handle {");
   592   BLOCK_COMMENT(err_msg("trace_method_handle %s {", adaptername));
   593   __ enter();
   593   __ enter();
   594   __ andptr(rsp, -16); // align stack if needed for FPU state
   594   __ andptr(rsp, -16); // align stack if needed for FPU state
   595   __ pusha();
   595   __ pusha();
   596   __ mov(rbx, rsp); // for retreiving saved_regs
   596   __ mov(rbx, rsp); // for retreiving saved_regs
   597   // Note: saved_regs must be in the entered frame for the
   597   // Note: saved_regs must be in the entered frame for the