src/cpu/x86/vm/interp_masm_x86_64.hpp

changeset 3826
2fe087c3e814
parent 3050
fdb992d83a87
child 4037
da91efe96a93
     1.1 --- a/src/cpu/x86/vm/interp_masm_x86_64.hpp	Fri Jun 01 15:30:44 2012 -0700
     1.2 +++ b/src/cpu/x86/vm/interp_masm_x86_64.hpp	Wed Jun 06 14:33:43 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2003, 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 @@ -84,9 +84,14 @@
    1.11      movptr(reg, Address(rbp, frame::interpreter_frame_method_offset * wordSize));
    1.12    }
    1.13  
    1.14 +  void get_const(Register reg) {
    1.15 +    get_method(reg);
    1.16 +    movptr(reg, Address(reg, methodOopDesc::const_offset()));
    1.17 +  }
    1.18 +
    1.19    void get_constant_pool(Register reg) {
    1.20 -    get_method(reg);
    1.21 -    movptr(reg, Address(reg, methodOopDesc::constants_offset()));
    1.22 +    get_const(reg);
    1.23 +    movptr(reg, Address(reg, constMethodOopDesc::constants_offset()));
    1.24    }
    1.25  
    1.26    void get_constant_pool_cache(Register reg) {

mercurial