Path: blob/master/src/hotspot/cpu/arm/c1_MacroAssembler_arm.hpp
40930 views
/*1* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef CPU_ARM_C1_MACROASSEMBLER_ARM_HPP25#define CPU_ARM_C1_MACROASSEMBLER_ARM_HPP2627private:2829void pd_init() { /* not used */ }3031public:3233// Puts address of allocated object into register `obj` and end of allocated object into register `obj_end`.34// `size_expression` should be a register or constant which can be used as immediate in "add" instruction.35void try_allocate(Register obj, Register obj_end, Register tmp1, Register tmp2,36RegisterOrConstant size_expression, Label& slow_case);3738void initialize_header(Register obj, Register klass, Register len, Register tmp);3940// Cleans object body [base..obj_end]. Clobbers `base` and `tmp` registers.41void initialize_body(Register base, Register obj_end, Register tmp);4243void initialize_object(Register obj, Register obj_end, Register klass,44Register len, Register tmp1, Register tmp2,45RegisterOrConstant header_size_expression, int obj_size_in_bytes,46bool is_tlab_allocated);4748void allocate_object(Register obj, Register tmp1, Register tmp2, Register tmp3,49int header_size, int object_size,50Register klass, Label& slow_case);5152void allocate_array(Register obj, Register len,53Register tmp1, Register tmp2, Register tmp3,54int header_size, int element_size,55Register klass, Label& slow_case);5657enum {58max_array_allocation_length = 0x0100000059};6061int lock_object(Register hdr, Register obj, Register disp_hdr, Register tmp, Label& slow_case);6263void unlock_object(Register hdr, Register obj, Register disp_hdr, Register tmp, Label& slow_case);6465// This platform only uses signal-based null checks. The Label is not needed.66void null_check(Register r, Label *Lnull = NULL) { MacroAssembler::null_check(r); }6768#endif // CPU_ARM_C1_MACROASSEMBLER_ARM_HPP697071