src/cpu/ppc/vm/macroAssembler_ppc.inline.hpp

Wed, 15 Apr 2020 11:49:55 +0800

author
aoqi
date
Wed, 15 Apr 2020 11:49:55 +0800
changeset 9852
70aa912cebe5
parent 6876
710a3c8b516e
permissions
-rw-r--r--

Merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * Copyright 2012, 2014 SAP AG. All rights reserved.
aoqi@0 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 5 *
aoqi@0 6 * This code is free software; you can redistribute it and/or modify it
aoqi@0 7 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 8 * published by the Free Software Foundation.
aoqi@0 9 *
aoqi@0 10 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 13 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 14 * accompanied this code).
aoqi@0 15 *
aoqi@0 16 * You should have received a copy of the GNU General Public License version
aoqi@0 17 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 19 *
aoqi@0 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 21 * or visit www.oracle.com if you need additional information or have any
aoqi@0 22 * questions.
aoqi@0 23 *
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 #ifndef CPU_PPC_VM_MACROASSEMBLER_PPC_INLINE_HPP
aoqi@0 27 #define CPU_PPC_VM_MACROASSEMBLER_PPC_INLINE_HPP
aoqi@0 28
aoqi@0 29 #include "asm/assembler.inline.hpp"
aoqi@0 30 #include "asm/macroAssembler.hpp"
aoqi@0 31 #include "asm/codeBuffer.hpp"
aoqi@0 32 #include "code/codeCache.hpp"
aoqi@0 33
aoqi@0 34 inline bool MacroAssembler::is_ld_largeoffset(address a) {
aoqi@0 35 const int inst1 = *(int *)a;
aoqi@0 36 const int inst2 = *(int *)(a+4);
aoqi@0 37 return (is_ld(inst1)) ||
aoqi@0 38 (is_addis(inst1) && is_ld(inst2) && inv_ra_field(inst2) == inv_rt_field(inst1));
aoqi@0 39 }
aoqi@0 40
aoqi@0 41 inline int MacroAssembler::get_ld_largeoffset_offset(address a) {
aoqi@0 42 assert(MacroAssembler::is_ld_largeoffset(a), "must be ld with large offset");
aoqi@0 43
aoqi@0 44 const int inst1 = *(int *)a;
aoqi@0 45 if (is_ld(inst1)) {
aoqi@0 46 return inv_d1_field(inst1);
aoqi@0 47 } else {
aoqi@0 48 const int inst2 = *(int *)(a+4);
aoqi@0 49 return (inv_d1_field(inst1) << 16) + inv_d1_field(inst2);
aoqi@0 50 }
aoqi@0 51 }
aoqi@0 52
aoqi@0 53 inline void MacroAssembler::round_to(Register r, int modulus) {
aoqi@0 54 assert(is_power_of_2_long((jlong)modulus), "must be power of 2");
aoqi@0 55 addi(r, r, modulus-1);
aoqi@0 56 clrrdi(r, r, log2_long((jlong)modulus));
aoqi@0 57 }
aoqi@0 58
aoqi@0 59 // Move register if destination register and target register are different.
aoqi@0 60 inline void MacroAssembler::mr_if_needed(Register rd, Register rs) {
aoqi@0 61 if (rs != rd) mr(rd, rs);
aoqi@0 62 }
aoqi@0 63 inline void MacroAssembler::fmr_if_needed(FloatRegister rd, FloatRegister rs) {
aoqi@0 64 if (rs != rd) fmr(rd, rs);
aoqi@0 65 }
aoqi@0 66 inline void MacroAssembler::endgroup_if_needed(bool needed) {
aoqi@0 67 if (needed) {
aoqi@0 68 endgroup();
aoqi@0 69 }
aoqi@0 70 }
aoqi@0 71
aoqi@0 72 inline void MacroAssembler::membar(int bits) {
aoqi@0 73 // TODO: use elemental_membar(bits) for Power 8 and disable optimization of acquire-release
aoqi@0 74 // (Matcher::post_membar_release where we use PPC64_ONLY(xop == Op_MemBarRelease ||))
aoqi@0 75 if (bits & StoreLoad) sync(); else lwsync();
aoqi@0 76 }
aoqi@0 77 inline void MacroAssembler::release() { membar(LoadStore | StoreStore); }
aoqi@0 78 inline void MacroAssembler::acquire() { membar(LoadLoad | LoadStore); }
aoqi@0 79 inline void MacroAssembler::fence() { membar(LoadLoad | LoadStore | StoreLoad | StoreStore); }
aoqi@0 80
aoqi@0 81 // Address of the global TOC.
aoqi@0 82 inline address MacroAssembler::global_toc() {
aoqi@0 83 return CodeCache::low_bound();
aoqi@0 84 }
aoqi@0 85
aoqi@0 86 // Offset of given address to the global TOC.
aoqi@0 87 inline int MacroAssembler::offset_to_global_toc(const address addr) {
aoqi@0 88 intptr_t offset = (intptr_t)addr - (intptr_t)MacroAssembler::global_toc();
aoqi@0 89 assert(Assembler::is_simm((long)offset, 31) && offset >= 0, "must be in range");
aoqi@0 90 return (int)offset;
aoqi@0 91 }
aoqi@0 92
aoqi@0 93 // Address of current method's TOC.
aoqi@0 94 inline address MacroAssembler::method_toc() {
aoqi@0 95 return code()->consts()->start();
aoqi@0 96 }
aoqi@0 97
aoqi@0 98 // Offset of given address to current method's TOC.
aoqi@0 99 inline int MacroAssembler::offset_to_method_toc(address addr) {
aoqi@0 100 intptr_t offset = (intptr_t)addr - (intptr_t)method_toc();
aoqi@0 101 assert(is_simm((long)offset, 31) && offset >= 0, "must be in range");
aoqi@0 102 return (int)offset;
aoqi@0 103 }
aoqi@0 104
aoqi@0 105 inline bool MacroAssembler::is_calculate_address_from_global_toc_at(address a, address bound) {
aoqi@0 106 const address inst2_addr = a;
aoqi@0 107 const int inst2 = *(int *) a;
aoqi@0 108
aoqi@0 109 // The relocation points to the second instruction, the addi.
aoqi@0 110 if (!is_addi(inst2)) return false;
aoqi@0 111
aoqi@0 112 // The addi reads and writes the same register dst.
aoqi@0 113 const int dst = inv_rt_field(inst2);
aoqi@0 114 if (inv_ra_field(inst2) != dst) return false;
aoqi@0 115
aoqi@0 116 // Now, find the preceding addis which writes to dst.
aoqi@0 117 int inst1 = 0;
aoqi@0 118 address inst1_addr = inst2_addr - BytesPerInstWord;
aoqi@0 119 while (inst1_addr >= bound) {
aoqi@0 120 inst1 = *(int *) inst1_addr;
aoqi@0 121 if (is_addis(inst1) && inv_rt_field(inst1) == dst) {
aoqi@0 122 // stop, found the addis which writes dst
aoqi@0 123 break;
aoqi@0 124 }
aoqi@0 125 inst1_addr -= BytesPerInstWord;
aoqi@0 126 }
aoqi@0 127
aoqi@0 128 if (!(inst1 == 0 || inv_ra_field(inst1) == 29 /* R29 */)) return false;
aoqi@0 129 return is_addis(inst1);
aoqi@0 130 }
aoqi@0 131
aoqi@0 132 #ifdef _LP64
aoqi@0 133 // Detect narrow oop constants.
aoqi@0 134 inline bool MacroAssembler::is_set_narrow_oop(address a, address bound) {
aoqi@0 135 const address inst2_addr = a;
aoqi@0 136 const int inst2 = *(int *)a;
aoqi@0 137 // The relocation points to the second instruction, the ori.
aoqi@0 138 if (!is_ori(inst2)) return false;
aoqi@0 139
aoqi@0 140 // The ori reads and writes the same register dst.
aoqi@0 141 const int dst = inv_rta_field(inst2);
aoqi@0 142 if (inv_rs_field(inst2) != dst) return false;
aoqi@0 143
aoqi@0 144 // Now, find the preceding addis which writes to dst.
aoqi@0 145 int inst1 = 0;
aoqi@0 146 address inst1_addr = inst2_addr - BytesPerInstWord;
aoqi@0 147 while (inst1_addr >= bound) {
aoqi@0 148 inst1 = *(int *) inst1_addr;
aoqi@0 149 if (is_lis(inst1) && inv_rs_field(inst1) == dst) return true;
aoqi@0 150 inst1_addr -= BytesPerInstWord;
aoqi@0 151 }
aoqi@0 152 return false;
aoqi@0 153 }
aoqi@0 154 #endif
aoqi@0 155
aoqi@0 156
aoqi@0 157 inline bool MacroAssembler::is_load_const_at(address a) {
aoqi@0 158 const int* p_inst = (int *) a;
aoqi@0 159 bool b = is_lis(*p_inst++);
aoqi@0 160 if (is_ori(*p_inst)) {
aoqi@0 161 p_inst++;
aoqi@0 162 b = b && is_rldicr(*p_inst++); // TODO: could be made more precise: `sldi'!
aoqi@0 163 b = b && is_oris(*p_inst++);
aoqi@0 164 b = b && is_ori(*p_inst);
aoqi@0 165 } else if (is_lis(*p_inst)) {
aoqi@0 166 p_inst++;
aoqi@0 167 b = b && is_ori(*p_inst++);
aoqi@0 168 b = b && is_ori(*p_inst);
aoqi@0 169 // TODO: could enhance reliability by adding is_insrdi
aoqi@0 170 } else return false;
aoqi@0 171 return b;
aoqi@0 172 }
aoqi@0 173
aoqi@0 174 inline void MacroAssembler::set_oop_constant(jobject obj, Register d) {
aoqi@0 175 set_oop(constant_oop_address(obj), d);
aoqi@0 176 }
aoqi@0 177
aoqi@0 178 inline void MacroAssembler::set_oop(AddressLiteral obj_addr, Register d) {
aoqi@0 179 assert(obj_addr.rspec().type() == relocInfo::oop_type, "must be an oop reloc");
aoqi@0 180 load_const(d, obj_addr);
aoqi@0 181 }
aoqi@0 182
aoqi@0 183 inline void MacroAssembler::pd_patch_instruction(address branch, address target) {
aoqi@0 184 jint& stub_inst = *(jint*) branch;
aoqi@0 185 stub_inst = patched_branch(target - branch, stub_inst, 0);
aoqi@0 186 }
aoqi@0 187
aoqi@0 188 // Relocation of conditional far branches.
aoqi@0 189 inline bool MacroAssembler::is_bc_far_variant1_at(address instruction_addr) {
aoqi@0 190 // Variant 1, the 1st instruction contains the destination address:
aoqi@0 191 //
aoqi@0 192 // bcxx DEST
aoqi@0 193 // endgroup
aoqi@0 194 //
aoqi@0 195 const int instruction_1 = *(int*)(instruction_addr);
aoqi@0 196 const int instruction_2 = *(int*)(instruction_addr + 4);
aoqi@0 197 return is_bcxx(instruction_1) &&
aoqi@0 198 (inv_bd_field(instruction_1, (intptr_t)instruction_addr) != (intptr_t)(instruction_addr + 2*4)) &&
aoqi@0 199 is_endgroup(instruction_2);
aoqi@0 200 }
aoqi@0 201
aoqi@0 202 // Relocation of conditional far branches.
aoqi@0 203 inline bool MacroAssembler::is_bc_far_variant2_at(address instruction_addr) {
aoqi@0 204 // Variant 2, the 2nd instruction contains the destination address:
aoqi@0 205 //
aoqi@0 206 // b!cxx SKIP
aoqi@0 207 // bxx DEST
aoqi@0 208 // SKIP:
aoqi@0 209 //
aoqi@0 210 const int instruction_1 = *(int*)(instruction_addr);
aoqi@0 211 const int instruction_2 = *(int*)(instruction_addr + 4);
aoqi@0 212 return is_bcxx(instruction_1) &&
aoqi@0 213 (inv_bd_field(instruction_1, (intptr_t)instruction_addr) == (intptr_t)(instruction_addr + 2*4)) &&
aoqi@0 214 is_bxx(instruction_2);
aoqi@0 215 }
aoqi@0 216
aoqi@0 217 // Relocation for conditional branches
aoqi@0 218 inline bool MacroAssembler::is_bc_far_variant3_at(address instruction_addr) {
aoqi@0 219 // Variant 3, far cond branch to the next instruction, already patched to nops:
aoqi@0 220 //
aoqi@0 221 // nop
aoqi@0 222 // endgroup
aoqi@0 223 // SKIP/DEST:
aoqi@0 224 //
aoqi@0 225 const int instruction_1 = *(int*)(instruction_addr);
aoqi@0 226 const int instruction_2 = *(int*)(instruction_addr + 4);
aoqi@0 227 return is_nop(instruction_1) &&
aoqi@0 228 is_endgroup(instruction_2);
aoqi@0 229 }
aoqi@0 230
aoqi@0 231
aoqi@0 232 // Convenience bc_far versions
aoqi@0 233 inline void MacroAssembler::blt_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs1, bi0(crx, less), L, optimize); }
aoqi@0 234 inline void MacroAssembler::bgt_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs1, bi0(crx, greater), L, optimize); }
aoqi@0 235 inline void MacroAssembler::beq_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs1, bi0(crx, equal), L, optimize); }
aoqi@0 236 inline void MacroAssembler::bso_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs1, bi0(crx, summary_overflow), L, optimize); }
aoqi@0 237 inline void MacroAssembler::bge_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs0, bi0(crx, less), L, optimize); }
aoqi@0 238 inline void MacroAssembler::ble_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs0, bi0(crx, greater), L, optimize); }
aoqi@0 239 inline void MacroAssembler::bne_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs0, bi0(crx, equal), L, optimize); }
aoqi@0 240 inline void MacroAssembler::bns_far(ConditionRegister crx, Label& L, int optimize) { MacroAssembler::bc_far(bcondCRbiIs0, bi0(crx, summary_overflow), L, optimize); }
aoqi@0 241
aoqi@0 242 inline address MacroAssembler::call_stub(Register function_entry) {
aoqi@0 243 mtctr(function_entry);
aoqi@0 244 bctrl();
aoqi@0 245 return pc();
aoqi@0 246 }
aoqi@0 247
aoqi@0 248 inline void MacroAssembler::call_stub_and_return_to(Register function_entry, Register return_pc) {
aoqi@0 249 assert_different_registers(function_entry, return_pc);
aoqi@0 250 mtlr(return_pc);
aoqi@0 251 mtctr(function_entry);
aoqi@0 252 bctr();
aoqi@0 253 }
aoqi@0 254
aoqi@0 255 // Get the pc where the last emitted call will return to.
aoqi@0 256 inline address MacroAssembler::last_calls_return_pc() {
aoqi@0 257 return _last_calls_return_pc;
aoqi@0 258 }
aoqi@0 259
aoqi@0 260 // Read from the polling page, its address is already in a register.
aoqi@0 261 inline void MacroAssembler::load_from_polling_page(Register polling_page_address, int offset) {
aoqi@0 262 ld(R0, offset, polling_page_address);
aoqi@0 263 }
aoqi@0 264
aoqi@0 265 // Trap-instruction-based checks.
aoqi@0 266
aoqi@0 267 inline void MacroAssembler::trap_null_check(Register a, trap_to_bits cmp) {
aoqi@0 268 assert(TrapBasedNullChecks, "sanity");
aoqi@0 269 tdi(cmp, a/*reg a*/, 0);
aoqi@0 270 }
aoqi@0 271 inline void MacroAssembler::trap_zombie_not_entrant() {
aoqi@0 272 tdi(traptoUnconditional, 0/*reg 0*/, 1);
aoqi@0 273 }
aoqi@0 274 inline void MacroAssembler::trap_should_not_reach_here() {
aoqi@0 275 tdi_unchecked(traptoUnconditional, 0/*reg 0*/, 2);
aoqi@0 276 }
aoqi@0 277
aoqi@0 278 inline void MacroAssembler::trap_ic_miss_check(Register a, Register b) {
aoqi@0 279 td(traptoGreaterThanUnsigned | traptoLessThanUnsigned, a, b);
aoqi@0 280 }
aoqi@0 281
aoqi@0 282 // Do an explicit null check if access to a+offset will not raise a SIGSEGV.
aoqi@0 283 // Either issue a trap instruction that raises SIGTRAP, or do a compare that
aoqi@0 284 // branches to exception_entry.
aoqi@0 285 // No support for compressed oops (base page of heap). Does not distinguish
aoqi@0 286 // loads and stores.
aoqi@0 287 inline void MacroAssembler::null_check_throw(Register a, int offset, Register temp_reg,
aoqi@0 288 address exception_entry) {
aoqi@0 289 if (!ImplicitNullChecks || needs_explicit_null_check(offset) || !os::zero_page_read_protected()) {
aoqi@0 290 if (TrapBasedNullChecks) {
aoqi@0 291 assert(UseSIGTRAP, "sanity");
aoqi@0 292 trap_null_check(a);
aoqi@0 293 } else {
aoqi@0 294 Label ok;
aoqi@0 295 cmpdi(CCR0, a, 0);
aoqi@0 296 bne(CCR0, ok);
aoqi@0 297 load_const_optimized(temp_reg, exception_entry);
aoqi@0 298 mtctr(temp_reg);
aoqi@0 299 bctr();
aoqi@0 300 bind(ok);
aoqi@0 301 }
aoqi@0 302 }
aoqi@0 303 }
aoqi@0 304
aoqi@0 305 inline void MacroAssembler::load_with_trap_null_check(Register d, int si16, Register s1) {
aoqi@0 306 if (!os::zero_page_read_protected()) {
aoqi@0 307 if (TrapBasedNullChecks) {
aoqi@0 308 trap_null_check(s1);
aoqi@0 309 }
aoqi@0 310 }
aoqi@0 311 ld(d, si16, s1);
aoqi@0 312 }
aoqi@0 313
aoqi@0 314 inline void MacroAssembler::load_heap_oop_not_null(Register d, RegisterOrConstant offs, Register s1) {
aoqi@0 315 if (UseCompressedOops) {
aoqi@0 316 lwz(d, offs, s1);
aoqi@0 317 // Attention: no null check here!
aoqi@0 318 decode_heap_oop_not_null(d);
aoqi@0 319 } else {
aoqi@0 320 ld(d, offs, s1);
aoqi@0 321 }
aoqi@0 322 }
aoqi@0 323
aoqi@0 324 inline void MacroAssembler::store_heap_oop_not_null(Register d, RegisterOrConstant offs, Register s1, Register tmp) {
aoqi@0 325 if (UseCompressedOops) {
aoqi@0 326 Register compressedOop = encode_heap_oop_not_null((tmp != noreg) ? tmp : d, d);
aoqi@0 327 stw(compressedOop, offs, s1);
aoqi@0 328 } else {
aoqi@0 329 std(d, offs, s1);
aoqi@0 330 }
aoqi@0 331 }
aoqi@0 332
aoqi@0 333 inline void MacroAssembler::load_heap_oop(Register d, RegisterOrConstant offs, Register s1) {
aoqi@0 334 if (UseCompressedOops) {
aoqi@0 335 lwz(d, offs, s1);
aoqi@0 336 decode_heap_oop(d);
aoqi@0 337 } else {
aoqi@0 338 ld(d, offs, s1);
aoqi@0 339 }
aoqi@0 340 }
aoqi@0 341
aoqi@0 342 inline Register MacroAssembler::encode_heap_oop_not_null(Register d, Register src) {
aoqi@0 343 Register current = (src!=noreg) ? src : d; // Compressed oop is in d if no src provided.
aoqi@0 344 if (Universe::narrow_oop_base() != NULL) {
aoqi@0 345 sub(d, current, R30);
aoqi@0 346 current = d;
aoqi@0 347 }
aoqi@0 348 if (Universe::narrow_oop_shift() != 0) {
aoqi@0 349 srdi(d, current, LogMinObjAlignmentInBytes);
aoqi@0 350 current = d;
aoqi@0 351 }
aoqi@0 352 return current; // Encoded oop is in this register.
aoqi@0 353 }
aoqi@0 354
aoqi@0 355 inline void MacroAssembler::decode_heap_oop_not_null(Register d) {
aoqi@0 356 if (Universe::narrow_oop_shift() != 0) {
aoqi@0 357 assert (LogMinObjAlignmentInBytes == Universe::narrow_oop_shift(), "decode alg wrong");
aoqi@0 358 sldi(d, d, LogMinObjAlignmentInBytes);
aoqi@0 359 }
aoqi@0 360 if (Universe::narrow_oop_base() != NULL) {
aoqi@0 361 add(d, d, R30);
aoqi@0 362 }
aoqi@0 363 }
aoqi@0 364
aoqi@0 365 inline void MacroAssembler::decode_heap_oop(Register d) {
aoqi@0 366 Label isNull;
aoqi@0 367 if (Universe::narrow_oop_base() != NULL) {
aoqi@0 368 cmpwi(CCR0, d, 0);
aoqi@0 369 beq(CCR0, isNull);
aoqi@0 370 }
aoqi@0 371 if (Universe::narrow_oop_shift() != 0) {
aoqi@0 372 assert (LogMinObjAlignmentInBytes == Universe::narrow_oop_shift(), "decode alg wrong");
aoqi@0 373 sldi(d, d, LogMinObjAlignmentInBytes);
aoqi@0 374 }
aoqi@0 375 if (Universe::narrow_oop_base() != NULL) {
aoqi@0 376 add(d, d, R30);
aoqi@0 377 }
aoqi@0 378 bind(isNull);
aoqi@0 379 }
aoqi@0 380
aoqi@0 381 // SIGTRAP-based range checks for arrays.
aoqi@0 382 inline void MacroAssembler::trap_range_check_l(Register a, Register b) {
aoqi@0 383 tw (traptoLessThanUnsigned, a/*reg a*/, b/*reg b*/);
aoqi@0 384 }
aoqi@0 385 inline void MacroAssembler::trap_range_check_l(Register a, int si16) {
aoqi@0 386 twi(traptoLessThanUnsigned, a/*reg a*/, si16);
aoqi@0 387 }
aoqi@0 388 inline void MacroAssembler::trap_range_check_le(Register a, int si16) {
aoqi@0 389 twi(traptoEqual | traptoLessThanUnsigned, a/*reg a*/, si16);
aoqi@0 390 }
aoqi@0 391 inline void MacroAssembler::trap_range_check_g(Register a, int si16) {
aoqi@0 392 twi(traptoGreaterThanUnsigned, a/*reg a*/, si16);
aoqi@0 393 }
aoqi@0 394 inline void MacroAssembler::trap_range_check_ge(Register a, Register b) {
aoqi@0 395 tw (traptoEqual | traptoGreaterThanUnsigned, a/*reg a*/, b/*reg b*/);
aoqi@0 396 }
aoqi@0 397 inline void MacroAssembler::trap_range_check_ge(Register a, int si16) {
aoqi@0 398 twi(traptoEqual | traptoGreaterThanUnsigned, a/*reg a*/, si16);
aoqi@0 399 }
aoqi@0 400
aoqi@0 401 #if defined(ABI_ELFv2)
aoqi@0 402 inline address MacroAssembler::function_entry() { return pc(); }
aoqi@0 403 #else
aoqi@0 404 inline address MacroAssembler::function_entry() { return emit_fd(); }
aoqi@0 405 #endif
aoqi@0 406
aoqi@0 407 #endif // CPU_PPC_VM_MACROASSEMBLER_PPC_INLINE_HPP

mercurial