src/cpu/sparc/vm/interp_masm_sparc.cpp

changeset 3826
2fe087c3e814
parent 3050
fdb992d83a87
child 3969
1d7922586cf6
     1.1 --- a/src/cpu/sparc/vm/interp_masm_sparc.cpp	Fri Jun 01 15:30:44 2012 -0700
     1.2 +++ b/src/cpu/sparc/vm/interp_masm_sparc.cpp	Wed Jun 06 14:33:43 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -934,8 +934,14 @@
    1.11  }
    1.12  
    1.13  
    1.14 +void InterpreterMacroAssembler::get_const(Register Rdst) {
    1.15 +  ld_ptr(Lmethod, in_bytes(methodOopDesc::const_offset()), Rdst);
    1.16 +}
    1.17 +
    1.18 +
    1.19  void InterpreterMacroAssembler::get_constant_pool(Register Rdst) {
    1.20 -  ld_ptr(Lmethod, in_bytes(methodOopDesc::constants_offset()), Rdst);
    1.21 +  get_const(Rdst);
    1.22 +  ld_ptr(Rdst, in_bytes(constMethodOopDesc::constants_offset()), Rdst);
    1.23  }
    1.24  
    1.25  

mercurial