equal
deleted
inserted
replaced
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 |