< prev index next >

hotspot/src/cpu/x86/vm/c1_FpuStackSim_x86.cpp

Print this page
rev 10453 : imported patch update dates

*** 1,7 **** /* ! * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 167,188 **** } intArray* FpuStackSim::write_state() { intArray* res = new intArray(1 + FrameMap::nof_fpu_regs); ! (*res)[0] = stack_size(); for (int i = 0; i < FrameMap::nof_fpu_regs; i++) { ! (*res)[1 + i] = regs_at(i); } return res; } void FpuStackSim::read_state(intArray* fpu_stack_state) { ! _stack_size = (*fpu_stack_state)[0]; for (int i = 0; i < FrameMap::nof_fpu_regs; i++) { ! set_regs_at(i, (*fpu_stack_state)[1 + i]); } } #ifndef PRODUCT --- 167,188 ---- } intArray* FpuStackSim::write_state() { intArray* res = new intArray(1 + FrameMap::nof_fpu_regs); ! res->append(stack_size()); for (int i = 0; i < FrameMap::nof_fpu_regs; i++) { ! res->append(regs_at(i)); } return res; } void FpuStackSim::read_state(intArray* fpu_stack_state) { ! _stack_size = fpu_stack_state->at(0); for (int i = 0; i < FrameMap::nof_fpu_regs; i++) { ! set_regs_at(i, fpu_stack_state->at(1 + i)); } } #ifndef PRODUCT
< prev index next >