< prev index next >

src/hotspot/cpu/ppc/assembler_ppc.cpp

G1BarrierSet_merge

0 /*                                                                                                                                   
1  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.                                                      
2  * Copyright (c) 2012, 2015 SAP SE. All rights reserved.                                                                             
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.                                                                     
4  *                                                                                                                                   
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                                                              
7  * published by the Free Software Foundation.                                                                                        
8  *                                                                                                                                   
9  * This code is distributed in the hope that it will be useful, but WITHOUT                                                          
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or                                                             
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License                                                             
12  * version 2 for more details (a copy is included in the LICENSE file that                                                           
13  * accompanied this code).                                                                                                           
14  *                                                                                                                                   
15  * You should have received a copy of the GNU General Public License version                                                         
16  * 2 along with this work; if not, write to the Free Software Foundation,                                                            
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.                                                                     
18  *                                                                                                                                   
19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA                                                           
20  * or visit www.oracle.com if you need additional information or have any                                                            
21  * questions.                                                                                                                        
22  *                                                                                                                                   
23  */                                                                                                                                  
24 
25 #include "precompiled.hpp"                                                                                                           
26 #include "asm/assembler.inline.hpp"                                                                                                  
27 #include "gc/shared/cardTableModRefBS.hpp"                                                                                           
28 #include "gc/shared/collectedHeap.inline.hpp"                                                                                        
29 #include "interpreter/interpreter.hpp"                                                                                               
30 #include "memory/resourceArea.hpp"                                                                                                   
31 #include "prims/methodHandles.hpp"                                                                                                   
32 #include "runtime/biasedLocking.hpp"                                                                                                 
33 #include "runtime/interfaceSupport.hpp"                                                                                              
34 #include "runtime/objectMonitor.hpp"                                                                                                 
35 #include "runtime/os.hpp"                                                                                                            
36 #include "runtime/sharedRuntime.hpp"                                                                                                 
37 #include "runtime/stubRoutines.hpp"                                                                                                  
38 #include "utilities/macros.hpp"                                                                                                      
39 #if INCLUDE_ALL_GCS                                                                                                                  
                                                                                                                                     
40 #include "gc/g1/g1CollectedHeap.inline.hpp"                                                                                          
41 #include "gc/g1/g1SATBCardTableModRefBS.hpp"                                                                                         
42 #include "gc/g1/heapRegion.hpp"                                                                                                      
43 #endif // INCLUDE_ALL_GCS                                                                                                            
44 
45 #ifdef PRODUCT                                                                                                                       
46 #define BLOCK_COMMENT(str) // nothing                                                                                                
47 #else                                                                                                                                
48 #define BLOCK_COMMENT(str) block_comment(str)                                                                                        
49 #endif                                                                                                                               
50 
51 int AbstractAssembler::code_fill_byte() {                                                                                            
52   return 0x00;                  // illegal instruction 0x00000000                                                                    
53 }                                                                                                                                    
54 
55 
56 // Patch instruction `inst' at offset `inst_pos' to refer to                                                                         
57 // `dest_pos' and return the resulting instruction.  We should have                                                                  
58 // pcs, not offsets, but since all is relative, it will work out fine.                                                               
59 int Assembler::patched_branch(int dest_pos, int inst, int inst_pos) {                                                                
60   int m = 0; // mask for displacement field                                                                                          

0 /*
1  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
2  * Copyright (c) 2012, 2015 SAP SE. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
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
7  * published by the Free Software Foundation.
8  *
9  * This code is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * version 2 for more details (a copy is included in the LICENSE file that
13  * accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License version
16  * 2 along with this work; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  * or visit www.oracle.com if you need additional information or have any
21  * questions.
22  *
23  */
24 
25 #include "precompiled.hpp"
26 #include "asm/assembler.inline.hpp"
27 #include "gc/shared/cardTableModRefBS.hpp"
28 #include "gc/shared/collectedHeap.inline.hpp"
29 #include "interpreter/interpreter.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "prims/methodHandles.hpp"
32 #include "runtime/biasedLocking.hpp"
33 #include "runtime/interfaceSupport.hpp"
34 #include "runtime/objectMonitor.hpp"
35 #include "runtime/os.hpp"
36 #include "runtime/sharedRuntime.hpp"
37 #include "runtime/stubRoutines.hpp"
38 #include "utilities/macros.hpp"
39 #if INCLUDE_ALL_GCS
40 #include "gc/g1/g1BarrierSet.hpp"
41 #include "gc/g1/g1CollectedHeap.inline.hpp"

42 #include "gc/g1/heapRegion.hpp"
43 #endif // INCLUDE_ALL_GCS
44 
45 #ifdef PRODUCT
46 #define BLOCK_COMMENT(str) // nothing
47 #else
48 #define BLOCK_COMMENT(str) block_comment(str)
49 #endif
50 
51 int AbstractAssembler::code_fill_byte() {
52   return 0x00;                  // illegal instruction 0x00000000
53 }
54 
55 
56 // Patch instruction `inst' at offset `inst_pos' to refer to
57 // `dest_pos' and return the resulting instruction.  We should have
58 // pcs, not offsets, but since all is relative, it will work out fine.
59 int Assembler::patched_branch(int dest_pos, int inst, int inst_pos) {
60   int m = 0; // mask for displacement field
< prev index next >