equal
deleted
inserted
replaced
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"); |