< prev index next >

src/hotspot/cpu/arm/assembler_arm_32.cpp

G1BarrierSet_merge

0 /*                                                                                                                                   
1  * Copyright (c) 2008, 2015, 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 it                                                              
5  * under the terms of the GNU General Public License version 2 only, as                                                              
6  * published by the Free Software Foundation.                                                                                        
7  *                                                                                                                                   
8  * This code is distributed in the hope that it will be useful, but WITHOUT                                                          
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or                                                             
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License                                                             
11  * version 2 for more details (a copy is included in the LICENSE file that                                                           
12  * accompanied this code).                                                                                                           
13  *                                                                                                                                   
14  * You should have received a copy of the GNU General Public License version                                                         
15  * 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 USA                                                           
19  * or visit www.oracle.com if you need additional information or have any                                                            
20  * questions.                                                                                                                        

0 /*
1  * Copyright (c) 2008, 2018, 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 it
5  * under the terms of the GNU General Public License version 2 only, as
6  * published by the Free Software Foundation.
7  *
8  * This code is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11  * version 2 for more details (a copy is included in the LICENSE file that
12  * accompanied this code).
13  *
14  * You should have received a copy of the GNU General Public License version
15  * 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 USA
19  * or visit www.oracle.com if you need additional information or have any
20  * questions.

25 #include "asm/assembler.hpp"                                                                                                         
26 #include "asm/assembler.inline.hpp"                                                                                                  
27 #include "ci/ciEnv.hpp"                                                                                                              
28 #include "gc/shared/cardTableModRefBS.hpp"                                                                                           
29 #include "gc/shared/collectedHeap.inline.hpp"                                                                                        
30 #include "interpreter/interpreter.hpp"                                                                                               
31 #include "interpreter/interpreterRuntime.hpp"                                                                                        
32 #include "interpreter/templateInterpreterGenerator.hpp"                                                                              
33 #include "memory/resourceArea.hpp"                                                                                                   
34 #include "prims/jvm_misc.hpp"                                                                                                        
35 #include "prims/methodHandles.hpp"                                                                                                   
36 #include "runtime/biasedLocking.hpp"                                                                                                 
37 #include "runtime/interfaceSupport.hpp"                                                                                              
38 #include "runtime/objectMonitor.hpp"                                                                                                 
39 #include "runtime/os.hpp"                                                                                                            
40 #include "runtime/sharedRuntime.hpp"                                                                                                 
41 #include "runtime/stubRoutines.hpp"                                                                                                  
42 #include "utilities/hashtable.hpp"                                                                                                   
43 #include "utilities/macros.hpp"                                                                                                      
44 #if INCLUDE_ALL_GCS                                                                                                                  
                                                                                                                                     
45 #include "gc/g1/g1CollectedHeap.inline.hpp"                                                                                          
46 #include "gc/g1/g1SATBCardTableModRefBS.hpp"                                                                                         
47 #include "gc/g1/heapRegion.hpp"                                                                                                      
48 #endif // INCLUDE_ALL_GCS                                                                                                            
49 
50 #ifdef COMPILER2                                                                                                                     
51 // Convert the raw encoding form into the form expected by the                                                                       
52 // constructor for Address.                                                                                                          
53 Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {                               
54   RelocationHolder rspec;                                                                                                            
55   if (disp_reloc != relocInfo::none) {                                                                                               
56     rspec = Relocation::spec_simple(disp_reloc);                                                                                     
57   }                                                                                                                                  
58 
59   Register rindex = as_Register(index);                                                                                              
60   if (rindex != PC) {                                                                                                                
61     assert(disp == 0, "unsupported");                                                                                                
62     Address madr(as_Register(base), rindex, lsl, scale);                                                                             
63     madr._rspec = rspec;                                                                                                             
64     return madr;                                                                                                                     
65   } else {                                                                                                                           

25 #include "asm/assembler.hpp"
26 #include "asm/assembler.inline.hpp"
27 #include "ci/ciEnv.hpp"
28 #include "gc/shared/cardTableModRefBS.hpp"
29 #include "gc/shared/collectedHeap.inline.hpp"
30 #include "interpreter/interpreter.hpp"
31 #include "interpreter/interpreterRuntime.hpp"
32 #include "interpreter/templateInterpreterGenerator.hpp"
33 #include "memory/resourceArea.hpp"
34 #include "prims/jvm_misc.hpp"
35 #include "prims/methodHandles.hpp"
36 #include "runtime/biasedLocking.hpp"
37 #include "runtime/interfaceSupport.hpp"
38 #include "runtime/objectMonitor.hpp"
39 #include "runtime/os.hpp"
40 #include "runtime/sharedRuntime.hpp"
41 #include "runtime/stubRoutines.hpp"
42 #include "utilities/hashtable.hpp"
43 #include "utilities/macros.hpp"
44 #if INCLUDE_ALL_GCS
45 #include "gc/g1/g1BarrierSet.hpp"
46 #include "gc/g1/g1CollectedHeap.inline.hpp"

47 #include "gc/g1/heapRegion.hpp"
48 #endif // INCLUDE_ALL_GCS
49 
50 #ifdef COMPILER2
51 // Convert the raw encoding form into the form expected by the
52 // constructor for Address.
53 Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {
54   RelocationHolder rspec;
55   if (disp_reloc != relocInfo::none) {
56     rspec = Relocation::spec_simple(disp_reloc);
57   }
58 
59   Register rindex = as_Register(index);
60   if (rindex != PC) {
61     assert(disp == 0, "unsupported");
62     Address madr(as_Register(base), rindex, lsl, scale);
63     madr._rspec = rspec;
64     return madr;
65   } else {
< prev index next >