< prev index next >

src/hotspot/cpu/x86/c1_CodeStubs_x86.cpp

Print this page

*** 1,7 **** /* ! * Copyright (c) 1999, 2018, 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) 1999, 2019, 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.
*** 159,179 **** LoadFlattenedArrayStub::LoadFlattenedArrayStub(LIR_Opr array, LIR_Opr index, LIR_Opr result, CodeEmitInfo* info) { _array = array; _index = index; _result = result; - _info = new CodeEmitInfo(info); - } - - void LoadFlattenedArrayStub::visit(LIR_OpVisitState* visitor) { - visitor->do_slow_case(_info); - visitor->do_input(_array); - visitor->do_input(_index); - visitor->do_output(_result); - // Tell the register allocator that the runtime call will scratch rax. ! visitor->do_output(FrameMap::rax_oop_opr); } void LoadFlattenedArrayStub::emit_code(LIR_Assembler* ce) { assert(__ rsp_offset() == 0, "frame size should be fixed"); __ bind(_entry); --- 159,171 ---- LoadFlattenedArrayStub::LoadFlattenedArrayStub(LIR_Opr array, LIR_Opr index, LIR_Opr result, CodeEmitInfo* info) { _array = array; _index = index; _result = result; // Tell the register allocator that the runtime call will scratch rax. ! _scratch_reg = FrameMap::rax_oop_opr; ! _info = new CodeEmitInfo(info); } void LoadFlattenedArrayStub::emit_code(LIR_Assembler* ce) { assert(__ rsp_offset() == 0, "frame size should be fixed"); __ bind(_entry);
< prev index next >