comparison src/share/vm/graal/graalCodeInstaller.cpp @ 3594:af1319bc4fd5

Fixed wrong type char check.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 18 Oct 2011 20:07:52 +0200
parents 076a2c9caf71
children 5e9645341ec3
comparison
equal deleted inserted replaced
3593:456dd8ed1b9b 3594:af1319bc4fd5
753 case 'i': 753 case 'i':
754 fatal("int-sized values not expected in DataPatch") 754 fatal("int-sized values not expected in DataPatch")
755 ; 755 ;
756 break; 756 break;
757 case 'f': 757 case 'f':
758 case 'l': 758 case 'j':
759 case 'd': { 759 case 'd': {
760 address operand = Assembler::locate_operand(instruction, Assembler::disp32_operand); 760 address operand = Assembler::locate_operand(instruction, Assembler::disp32_operand);
761 address next_instruction = Assembler::locate_next_instruction(instruction); 761 address next_instruction = Assembler::locate_next_instruction(instruction);
762 // we don't care if this is a long/double/etc., the primitive field contains the right bits 762 // we don't care if this is a long/double/etc., the primitive field contains the right bits
763 int size = _constants->size(); 763 int size = _constants->size();
764 if (typeChar == 'd' || typeChar == 'l') { 764 if (typeChar == 'd' || typeChar == 'j') {
765 size = _constants->align_at_start(size); 765 size = _constants->align_at_start(size);
766 } 766 }
767 address dest = _constants->start() + size; 767 address dest = _constants->start() + size;
768 _constants->set_end(dest + BytesPerLong); 768 _constants->set_end(dest + BytesPerLong);
769 *(jlong*) dest = CiConstant::primitive(constant); 769 *(jlong*) dest = CiConstant::primitive(constant);