changeset 2357:527b586edf24

7036706: G1: Use LIR_OprDesc::as_pointer_register in code changes for 7035117 Summary: Use LIR_OprDesc::as_pointer_register() instead as_register/as_register_lo combination in the code changes for 7035117. Reviewed-by: iveresov
author johnc
date Mon, 18 Apr 2011 16:27:16 -0700
parents 1d0b856224f8
children 732454aaf5cb 49a67202bc67
files src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp src/cpu/x86/vm/c1_CodeStubs_x86.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp	Sun Apr 17 01:24:54 2011 -0700
+++ b/src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp	Mon Apr 18 16:27:16 2011 -0700
@@ -489,7 +489,7 @@
 
   // Is marking active?
   assert(thread()->is_register(), "precondition");
-  Register thread_reg = NOT_LP64(thread()->as_register()) LP64_ONLY(thread()->as_register_lo());
+  Register thread_reg = thread()->as_pointer_register();
 
   Address in_progress(thread_reg, in_bytes(JavaThread::satb_mark_queue_offset() +
                                        PtrQueue::byte_offset_of_active()));
--- a/src/cpu/x86/vm/c1_CodeStubs_x86.cpp	Sun Apr 17 01:24:54 2011 -0700
+++ b/src/cpu/x86/vm/c1_CodeStubs_x86.cpp	Mon Apr 18 16:27:16 2011 -0700
@@ -525,7 +525,7 @@
 
   // Is marking active?
   assert(thread()->is_register(), "precondition");
-  Register thread_reg = NOT_LP64(thread()->as_register()) LP64_ONLY(thread()->as_register_lo());
+  Register thread_reg = thread()->as_pointer_register();
 
   Address in_progress(thread_reg, in_bytes(JavaThread::satb_mark_queue_offset() +
                                        PtrQueue::byte_offset_of_active()));