comparison src/cpu/x86/vm/jniFastGetField_x86_64.cpp @ 1748:3e8fbc61cee8

6978355: renaming for 6961697 Summary: This is the renaming part of 6961697 to keep the actual changes small for review. Reviewed-by: kvn, never
author twisti
date Wed, 25 Aug 2010 05:27:54 -0700
parents c18cbe5936b8
children f95d63e2154a
comparison
equal deleted inserted replaced
1747:53dbe853fb3a 1748:3e8fbc61cee8
1 /* 1 /*
2 * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
56 case T_INT: name = "jni_fast_GetIntField"; break; 56 case T_INT: name = "jni_fast_GetIntField"; break;
57 case T_LONG: name = "jni_fast_GetLongField"; break; 57 case T_LONG: name = "jni_fast_GetLongField"; break;
58 default: ShouldNotReachHere(); 58 default: ShouldNotReachHere();
59 } 59 }
60 ResourceMark rm; 60 ResourceMark rm;
61 BufferBlob* b = BufferBlob::create(name, BUFFER_SIZE); 61 BufferBlob* blob = BufferBlob::create(name, BUFFER_SIZE);
62 address fast_entry = b->instructions_begin(); 62 CodeBuffer cbuf(blob);
63 CodeBuffer cbuf(fast_entry, b->instructions_size());
64 MacroAssembler* masm = new MacroAssembler(&cbuf); 63 MacroAssembler* masm = new MacroAssembler(&cbuf);
64 address fast_entry = __ pc();
65 65
66 Label slow; 66 Label slow;
67 67
68 ExternalAddress counter(SafepointSynchronize::safepoint_counter_addr()); 68 ExternalAddress counter(SafepointSynchronize::safepoint_counter_addr());
69 __ mov32 (rcounter, counter); 69 __ mov32 (rcounter, counter);
154 case T_FLOAT: name = "jni_fast_GetFloatField"; break; 154 case T_FLOAT: name = "jni_fast_GetFloatField"; break;
155 case T_DOUBLE: name = "jni_fast_GetDoubleField"; break; 155 case T_DOUBLE: name = "jni_fast_GetDoubleField"; break;
156 default: ShouldNotReachHere(); 156 default: ShouldNotReachHere();
157 } 157 }
158 ResourceMark rm; 158 ResourceMark rm;
159 BufferBlob* b = BufferBlob::create(name, BUFFER_SIZE); 159 BufferBlob* blob = BufferBlob::create(name, BUFFER_SIZE);
160 address fast_entry = b->instructions_begin(); 160 CodeBuffer cbuf(blob);
161 CodeBuffer cbuf(fast_entry, b->instructions_size());
162 MacroAssembler* masm = new MacroAssembler(&cbuf); 161 MacroAssembler* masm = new MacroAssembler(&cbuf);
162 address fast_entry = __ pc();
163 163
164 Label slow; 164 Label slow;
165 165
166 ExternalAddress counter(SafepointSynchronize::safepoint_counter_addr()); 166 ExternalAddress counter(SafepointSynchronize::safepoint_counter_addr());
167 __ mov32 (rcounter, counter); 167 __ mov32 (rcounter, counter);