comparison src/os_cpu/solaris_x86/vm/solaris_x86_32.il @ 4749:7ab5f6318694

7125934: Add a fast unordered timestamp capability to Hotspot on x86/x64 Summary: Add rdtsc detection and inline generation. Reviewed-by: kamg, dholmes Contributed-by: karen.kinnear@oracle.com
author phh
date Sun, 01 Jan 2012 11:17:59 -0500
parents bb8e3b66bde6
children da4be62fb889
comparison
equal deleted inserted replaced
4732:4ec93d767458 4749:7ab5f6318694
39 39
40 // Get current fp 40 // Get current fp
41 .inline _get_current_fp,0 41 .inline _get_current_fp,0
42 .volatile 42 .volatile
43 movl %ebp, %eax 43 movl %ebp, %eax
44 .end
45
46 // Support for os::rdtsc()
47 .inline _raw_rdtsc,0
48 rdtsc
44 .end 49 .end
45 50
46 // Support for jint Atomic::add(jint inc, volatile jint* dest) 51 // Support for jint Atomic::add(jint inc, volatile jint* dest)
47 // An additional bool (os::is_MP()) is passed as the last argument. 52 // An additional bool (os::is_MP()) is passed as the last argument.
48 .inline _Atomic_add,3 53 .inline _Atomic_add,3
111 fildll (%eax) 116 fildll (%eax)
112 movl 4(%esp), %eax // dest 117 movl 4(%esp), %eax // dest
113 fistpll (%eax) 118 fistpll (%eax)
114 .end 119 .end
115 120
116
117 // Support for OrderAccess::acquire() 121 // Support for OrderAccess::acquire()
118 .inline _OrderAccess_acquire,0 122 .inline _OrderAccess_acquire,0
119 movl 0(%esp), %eax 123 movl 0(%esp), %eax
120 .end 124 .end
121 125