annotate src/hotspot/cpu/s390/c1_LIRAssembler_s390.hpp @ 54970:b776653628c5

8218991: s390: Add intrinsic for GHASH algorithm Reviewed-by: lucy, simonis
author mdoerr
date Mon, 18 Feb 2019 12:16:02 +0100
parents 71c04702a3d5
children
rev   line source
goetz@42065 1 /*
coleenp@54304 2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
goetz@42065 3 * Copyright (c) 2016 SAP SE. All rights reserved.
goetz@42065 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
goetz@42065 5 *
goetz@42065 6 * This code is free software; you can redistribute it and/or modify it
goetz@42065 7 * under the terms of the GNU General Public License version 2 only, as
goetz@42065 8 * published by the Free Software Foundation.
goetz@42065 9 *
goetz@42065 10 * This code is distributed in the hope that it will be useful, but WITHOUT
goetz@42065 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
goetz@42065 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
goetz@42065 13 * version 2 for more details (a copy is included in the LICENSE file that
goetz@42065 14 * accompanied this code).
goetz@42065 15 *
goetz@42065 16 * You should have received a copy of the GNU General Public License version
goetz@42065 17 * 2 along with this work; if not, write to the Free Software Foundation,
goetz@42065 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
goetz@42065 19 *
goetz@42065 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
goetz@42065 21 * or visit www.oracle.com if you need additional information or have any
goetz@42065 22 * questions.
goetz@42065 23 *
goetz@42065 24 */
goetz@42065 25
coleenp@54304 26 #ifndef CPU_S390_C1_LIRASSEMBLER_S390_HPP
coleenp@54304 27 #define CPU_S390_C1_LIRASSEMBLER_S390_HPP
goetz@42065 28
goetz@42065 29 private:
goetz@42065 30
goetz@42065 31 // Record the type of the receiver in ReceiverTypeData.
goetz@42065 32 void type_profile_helper(Register mdo, ciMethodData *md, ciProfileData *data,
goetz@42065 33 Register recv, Register tmp1, Label* update_done);
goetz@42065 34 // Setup pointers to MDO, MDO slot, also compute offset bias to access the slot.
goetz@42065 35 void setup_md_access(ciMethod* method, int bci,
goetz@42065 36 ciMethodData*& md, ciProfileData*& data, int& mdo_offset_bias);
goetz@42065 37 public:
goetz@42065 38 address emit_call_c(address a);
goetz@42065 39
goetz@42065 40 void store_parameter(Register r, int param_num);
goetz@42065 41 void store_parameter(jint c, int param_num);
goetz@42065 42
goetz@42065 43 void check_reserved_argument_area(int bytes) {
goetz@42065 44 assert(bytes + FrameMap::first_available_sp_in_frame <= frame_map()->reserved_argument_area_size(),
goetz@42065 45 "reserved_argument_area too small");
goetz@42065 46 }
goetz@42065 47
goetz@42065 48 enum {
kvn@42650 49 _call_stub_size = 512, // See Compile::MAX_stubs_size and CompiledStaticCall::emit_to_interp_stub.
kvn@42650 50 _call_aot_stub_size = 0,
kvn@42650 51 _exception_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(128),
kvn@42650 52 _deopt_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(64)
goetz@42065 53 };
goetz@42065 54
coleenp@54304 55 #endif // CPU_S390_C1_LIRASSEMBLER_S390_HPP