src/hotspot/cpu/x86/sharedRuntime_x86_32.cpp
changeset 48807 fd8ccb37fce9
parent 47216 71c04702a3d5
child 48819 ee513596f3ee
equal deleted inserted replaced
48806:51fc22e5fb00 48807:fd8ccb37fce9
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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.
   143 
   143 
   144   // save registers, fpu state, and flags
   144   // save registers, fpu state, and flags
   145   // We assume caller has already has return address slot on the stack
   145   // We assume caller has already has return address slot on the stack
   146   // We push epb twice in this sequence because we want the real rbp,
   146   // We push epb twice in this sequence because we want the real rbp,
   147   // to be under the return like a normal enter and we want to use pusha
   147   // to be under the return like a normal enter and we want to use pusha
   148   // We push by hand instead of pusing push
   148   // We push by hand instead of using push.
   149   __ enter();
   149   __ enter();
   150   __ pusha();
   150   __ pusha();
   151   __ pushf();
   151   __ pushf();
   152   __ subptr(rsp,FPU_regs_live*wordSize); // Push FPU registers space
   152   __ subptr(rsp,FPU_regs_live*wordSize); // Push FPU registers space
   153   __ push_FPU_state();          // Save FPU state & init
   153   __ push_FPU_state();          // Save FPU state & init