--- old/src/cpu/x86/vm/interpreter_x86_64.cpp 2015-12-02 11:46:49.588984500 -0800 +++ new/src/cpu/x86/vm/interpreter_x86_64.cpp 2015-12-02 11:46:49.248950500 -0800 @@ -256,6 +256,12 @@ } else if (kind == Interpreter::java_lang_math_log) { __ movdbl(xmm0, Address(rsp, wordSize)); __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, StubRoutines::dlog()))); + } 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) {