src/hotspot/cpu/aarch64/c1_MacroAssembler_aarch64.cpp
changeset 49906 4bb58f644e4e
parent 47216 71c04702a3d5
child 50693 db0a17475826
equal deleted inserted replaced
49905:a09af8ef8e5c 49906:4bb58f644e4e
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2014, Red Hat Inc. All rights reserved.
     3  * Copyright (c) 2014, Red Hat Inc. All rights reserved.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
   356 
   356 
   357 
   357 
   358 void C1_MacroAssembler::verified_entry() {
   358 void C1_MacroAssembler::verified_entry() {
   359 }
   359 }
   360 
   360 
       
   361 void C1_MacroAssembler::load_parameter(int offset_in_words, Register reg) {
       
   362   // rbp, + 0: link
       
   363   //     + 1: return address
       
   364   //     + 2: argument with offset 0
       
   365   //     + 3: argument with offset 1
       
   366   //     + 4: ...
       
   367 
       
   368   ldr(reg, Address(rfp, (offset_in_words + 2) * BytesPerWord));
       
   369 }
       
   370 
   361 #ifndef PRODUCT
   371 #ifndef PRODUCT
   362 
   372 
   363 void C1_MacroAssembler::verify_stack_oop(int stack_offset) {
   373 void C1_MacroAssembler::verify_stack_oop(int stack_offset) {
   364   if (!VerifyOops) return;
   374   if (!VerifyOops) return;
   365   verify_oop_addr(Address(sp, stack_offset), "oop");
   375   verify_oop_addr(Address(sp, stack_offset), "oop");