hotspot/src/share/vm/c1/c1_LIRAssembler.cpp
changeset 25715 d5a8dbdc5150
parent 24935 046e99df67d0
child 25949 34557722059b
equal deleted inserted replaced
25469:3bcfa1db9717 25715:d5a8dbdc5150
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    28 #include "c1/c1_InstructionPrinter.hpp"
    28 #include "c1/c1_InstructionPrinter.hpp"
    29 #include "c1/c1_LIRAssembler.hpp"
    29 #include "c1/c1_LIRAssembler.hpp"
    30 #include "c1/c1_MacroAssembler.hpp"
    30 #include "c1/c1_MacroAssembler.hpp"
    31 #include "c1/c1_ValueStack.hpp"
    31 #include "c1/c1_ValueStack.hpp"
    32 #include "ci/ciInstance.hpp"
    32 #include "ci/ciInstance.hpp"
    33 #ifdef TARGET_ARCH_x86
       
    34 # include "nativeInst_x86.hpp"
       
    35 # include "vmreg_x86.inline.hpp"
       
    36 #endif
       
    37 #ifdef TARGET_ARCH_sparc
       
    38 # include "nativeInst_sparc.hpp"
       
    39 # include "vmreg_sparc.inline.hpp"
       
    40 #endif
       
    41 #ifdef TARGET_ARCH_zero
       
    42 # include "nativeInst_zero.hpp"
       
    43 # include "vmreg_zero.inline.hpp"
       
    44 #endif
       
    45 #ifdef TARGET_ARCH_arm
       
    46 # include "nativeInst_arm.hpp"
       
    47 # include "vmreg_arm.inline.hpp"
       
    48 #endif
       
    49 #ifdef TARGET_ARCH_ppc
       
    50 # include "nativeInst_ppc.hpp"
       
    51 # include "vmreg_ppc.inline.hpp"
       
    52 #endif
       
    53 
       
    54 
    33 
    55 void LIR_Assembler::patching_epilog(PatchingStub* patch, LIR_PatchCode patch_code, Register obj, CodeEmitInfo* info) {
    34 void LIR_Assembler::patching_epilog(PatchingStub* patch, LIR_PatchCode patch_code, Register obj, CodeEmitInfo* info) {
    56   // we must have enough patching space so that call can be inserted
    35   // we must have enough patching space so that call can be inserted
    57   while ((intx) _masm->pc() - (intx) patch->pc_start() < NativeCall::instruction_size) {
    36   while ((intx) _masm->pc() - (intx) patch->pc_start() < NativeCall::instruction_size) {
    58     _masm->nop();
    37     _masm->nop();