hotspot/src/cpu/x86/vm/c1_LinearScan_x86.cpp
changeset 35540 e001ad24dcdb
parent 35146 9ebfec283f56
child 38018 1dc6c6f21231
equal deleted inserted replaced
35539:9a687b686976 35540:e001ad24dcdb
   809       assert(sim()->stack_size() <= 7, "at least one stack slot must be free");
   809       assert(sim()->stack_size() <= 7, "at least one stack slot must be free");
   810       break;
   810       break;
   811     }
   811     }
   812 
   812 
   813 
   813 
   814     case lir_tan:
   814     case lir_tan: {
   815     case lir_sin:
       
   816     case lir_cos: {
       
   817       // sin, cos and exp need two temporary fpu stack slots, so there are two temporary
   815       // sin, cos and exp need two temporary fpu stack slots, so there are two temporary
   818       // registers (stored in right and temp of the operation).
   816       // registers (stored in right and temp of the operation).
   819       // the stack allocator must guarantee that the stack slots are really free,
   817       // the stack allocator must guarantee that the stack slots are really free,
   820       // otherwise there might be a stack overflow.
   818       // otherwise there might be a stack overflow.
   821       assert(left->is_fpu_register(), "must be");
   819       assert(left->is_fpu_register(), "must be");