Tue, 31 May 2016 00:22:06 -0400
[Code Reorganization] load_two_bytes_from_at_bcp -> get_2_byte_integer_at_bcp
remove useless MacroAssembler::store_two_byts_to_at_bcp
change MacroAssembler::load_two_bytes_from_at_bcp to InterpreterMacroAssembler::get_2_byte_integer_at_bcp
change MacroAssembler::get_4_byte_integer_at_bcp to InterpreterMacroAssembler::get_4_byte_integer_at_bcp
1 /*
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
3 * Copyright (c) 2015, 2016, Loongson Technology. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
26 private:
28 Address::ScaleFactor array_element_size(BasicType type) const;
30 void monitorexit(LIR_Opr obj_opr, LIR_Opr lock_opr, Register new_hdr, int monitor_no, Register exception);
32 void arith_fpu_implementation(LIR_Code code, int left_index, int right_index, int dest_index, bool pop_fpu_stack);
34 // helper functions which checks for overflow and sets bailout if it
35 // occurs. Always returns a valid embeddable pointer but in the
36 // bailout case the pointer won't be to unique storage.
37 address float_constant(float f);
38 address double_constant(double d);
40 bool is_literal_address(LIR_Address* addr);
42 // When we need to use something other than rscratch1 use this
43 // method.
44 Address as_Address(LIR_Address* addr, Register tmp);
47 public:
49 void store_parameter(Register r, int offset_from_esp_in_words);
50 void store_parameter(jint c, int offset_from_esp_in_words);
51 void store_parameter(jobject c, int offset_from_esp_in_words);
53 //enum { call_stub_size = NOT_LP64(24) LP64_ONLY(40),
54 enum { call_stub_size = NOT_LP64(24) LP64_ONLY(500), //aoqi_test
55 exception_handler_size = DEBUG_ONLY(1*K) NOT_DEBUG(175),
56 deopt_handler_size = NOT_LP64(16) LP64_ONLY(32)
57 };