comparison src/cpu/x86/vm/templateInterpreter_x86_32.cpp @ 6084:6759698e3140

7133857: exp() and pow() should use the x87 ISA on x86 Summary: use x87 instructions to implement exp() and pow() in interpreter/c1/c2. Reviewed-by: kvn, never, twisti
author roland
date Tue, 15 May 2012 10:10:23 +0200
parents 22cee0ee8927
children 2fe087c3e814
comparison
equal deleted inserted replaced
6057:8f972594effc 6084:6759698e3140
1516 case Interpreter::java_lang_math_cos : // fall thru 1516 case Interpreter::java_lang_math_cos : // fall thru
1517 case Interpreter::java_lang_math_tan : // fall thru 1517 case Interpreter::java_lang_math_tan : // fall thru
1518 case Interpreter::java_lang_math_abs : // fall thru 1518 case Interpreter::java_lang_math_abs : // fall thru
1519 case Interpreter::java_lang_math_log : // fall thru 1519 case Interpreter::java_lang_math_log : // fall thru
1520 case Interpreter::java_lang_math_log10 : // fall thru 1520 case Interpreter::java_lang_math_log10 : // fall thru
1521 case Interpreter::java_lang_math_sqrt : entry_point = ((InterpreterGenerator*)this)->generate_math_entry(kind); break; 1521 case Interpreter::java_lang_math_sqrt : // fall thru
1522 case Interpreter::java_lang_math_pow : // fall thru
1523 case Interpreter::java_lang_math_exp : entry_point = ((InterpreterGenerator*)this)->generate_math_entry(kind); break;
1522 case Interpreter::java_lang_ref_reference_get 1524 case Interpreter::java_lang_ref_reference_get
1523 : entry_point = ((InterpreterGenerator*)this)->generate_Reference_get_entry(); break; 1525 : entry_point = ((InterpreterGenerator*)this)->generate_Reference_get_entry(); break;
1524 default : ShouldNotReachHere(); break; 1526 default : ShouldNotReachHere(); break;
1525 } 1527 }
1526 1528
1538 case Interpreter::java_lang_math_cos : // fall thru 1540 case Interpreter::java_lang_math_cos : // fall thru
1539 case Interpreter::java_lang_math_tan : // fall thru 1541 case Interpreter::java_lang_math_tan : // fall thru
1540 case Interpreter::java_lang_math_abs : // fall thru 1542 case Interpreter::java_lang_math_abs : // fall thru
1541 case Interpreter::java_lang_math_log : // fall thru 1543 case Interpreter::java_lang_math_log : // fall thru
1542 case Interpreter::java_lang_math_log10 : // fall thru 1544 case Interpreter::java_lang_math_log10 : // fall thru
1543 case Interpreter::java_lang_math_sqrt : 1545 case Interpreter::java_lang_math_sqrt : // fall thru
1546 case Interpreter::java_lang_math_pow : // fall thru
1547 case Interpreter::java_lang_math_exp :
1544 return false; 1548 return false;
1545 default: 1549 default:
1546 return true; 1550 return true;
1547 } 1551 }
1548 } 1552 }