hotspot/src/cpu/x86/vm/interpreter_x86_64.cpp
changeset 35540 e001ad24dcdb
parent 35146 9ebfec283f56
child 35546 b75e269c0922
--- a/hotspot/src/cpu/x86/vm/interpreter_x86_64.cpp	Fri Jan 08 11:41:04 2016 +0100
+++ b/hotspot/src/cpu/x86/vm/interpreter_x86_64.cpp	Fri Jan 08 21:06:50 2016 -0800
@@ -259,6 +259,12 @@
     __ movdbl(xmm1, Address(rsp, wordSize));
     __ movdbl(xmm0, Address(rsp, 3 * wordSize));
     __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, StubRoutines::dpow())));
+  } else if (kind == Interpreter::java_lang_math_sin && StubRoutines::dsin() != NULL) {
+    __ movdbl(xmm0, Address(rsp, wordSize));
+    __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, StubRoutines::dsin())));
+  } else if (kind == Interpreter::java_lang_math_cos && StubRoutines::dcos() != NULL) {
+    __ movdbl(xmm0, Address(rsp, wordSize));
+    __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, StubRoutines::dcos())));
   } else {
     __ fld_d(Address(rsp, wordSize));
     switch (kind) {