< prev index next >

src/hotspot/cpu/s390/assembler_s390.cpp

G1BarrierSet_merge

0 /*                                                                                                                                   
1  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.                                                            
2  * Copyright (c) 2016 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 "compiler/disassembler.hpp"                                                                                                 
28 #include "gc/shared/collectedHeap.inline.hpp"                                                                                        
29 #include "interpreter/interpreter.hpp"                                                                                               
30 #include "gc/shared/cardTableModRefBS.hpp"                                                                                           
31 #include "memory/resourceArea.hpp"                                                                                                   
32 #include "prims/methodHandles.hpp"                                                                                                   
33 #include "runtime/biasedLocking.hpp"                                                                                                 
34 #include "runtime/interfaceSupport.hpp"                                                                                              
35 #include "runtime/objectMonitor.hpp"                                                                                                 
36 #include "runtime/os.hpp"                                                                                                            
37 #include "runtime/sharedRuntime.hpp"                                                                                                 
38 #include "runtime/stubRoutines.hpp"                                                                                                  
39 #include "utilities/macros.hpp"                                                                                                      
40 #if INCLUDE_ALL_GCS                                                                                                                  
                                                                                                                                     
41 #include "gc/g1/g1CollectedHeap.inline.hpp"                                                                                          
42 #include "gc/g1/g1SATBCardTableModRefBS.hpp"                                                                                         
43 #include "gc/g1/heapRegion.hpp"                                                                                                      
44 #endif                                                                                                                               
45 
46 // Convention: Use Z_R0 and Z_R1 instead of Z_scratch_* in all                                                                       
47 // assembler_s390.* files.                                                                                                           
48 
49 // Convert the raw encoding form into the form expected by the                                                                       
50 // constructor for Address. This is called by adlc generated code.                                                                   
51 Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {                               
52   assert(scale == 0, "Scale should not be used on z/Architecture. The call to make_raw is "                                          
53          "generated by adlc and this must mirror all features of Operands from machnode.hpp.");                                      
54   assert(disp_reloc == relocInfo::none, "not implemented on z/Architecture.");                                                       
55 
56   Address madr(as_Register(base), as_Register(index), in_ByteSize(disp));                                                            
57   return madr;                                                                                                                       
58 }                                                                                                                                    
59 
60 int AbstractAssembler::code_fill_byte() {                                                                                            
61   return 0x00; // Illegal instruction 0x00000000.                                                                                    

0 /*
1  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2  * Copyright (c) 2016 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 "compiler/disassembler.hpp"
28 #include "gc/shared/collectedHeap.inline.hpp"
29 #include "interpreter/interpreter.hpp"
30 #include "gc/shared/cardTableModRefBS.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "prims/methodHandles.hpp"
33 #include "runtime/biasedLocking.hpp"
34 #include "runtime/interfaceSupport.hpp"
35 #include "runtime/objectMonitor.hpp"
36 #include "runtime/os.hpp"
37 #include "runtime/sharedRuntime.hpp"
38 #include "runtime/stubRoutines.hpp"
39 #include "utilities/macros.hpp"
40 #if INCLUDE_ALL_GCS
41 #include "gc/g1/g1BarrierSet.hpp"
42 #include "gc/g1/g1CollectedHeap.inline.hpp"

43 #include "gc/g1/heapRegion.hpp"
44 #endif
45 
46 // Convention: Use Z_R0 and Z_R1 instead of Z_scratch_* in all
47 // assembler_s390.* files.
48 
49 // Convert the raw encoding form into the form expected by the
50 // constructor for Address. This is called by adlc generated code.
51 Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {
52   assert(scale == 0, "Scale should not be used on z/Architecture. The call to make_raw is "
53          "generated by adlc and this must mirror all features of Operands from machnode.hpp.");
54   assert(disp_reloc == relocInfo::none, "not implemented on z/Architecture.");
55 
56   Address madr(as_Register(base), as_Register(index), in_ByteSize(disp));
57   return madr;
58 }
59 
60 int AbstractAssembler::code_fill_byte() {
61   return 0x00; // Illegal instruction 0x00000000.
< prev index next >