src/share/vm/opto/output.cpp

changeset 7003
69ea58782b1a
parent 7001
b6a8cc1e0d92
child 7161
fc2c88ea11a9
equal deleted inserted replaced
7002:a073be2ce5c2 7003:69ea58782b1a
781 // holds the first raw word of the native double representation. 781 // holds the first raw word of the native double representation.
782 // This is actually reasonable, since locals and stack arrays 782 // This is actually reasonable, since locals and stack arrays
783 // grow downwards in all implementations. 783 // grow downwards in all implementations.
784 // (If, on some machine, the interpreter's Java locals or stack 784 // (If, on some machine, the interpreter's Java locals or stack
785 // were to grow upwards, the embedded doubles would be word-swapped.) 785 // were to grow upwards, the embedded doubles would be word-swapped.)
786 jlong_accessor acc = { jlong_cast(d) }; 786 jlong_accessor acc;
787 acc.long_value = jlong_cast(d);
787 array->append(new ConstantIntValue(acc.words[1])); 788 array->append(new ConstantIntValue(acc.words[1]));
788 array->append(new ConstantIntValue(acc.words[0])); 789 array->append(new ConstantIntValue(acc.words[0]));
789 #endif 790 #endif
790 break; 791 break;
791 } 792 }
800 // holds the first raw word of the native double representation. 801 // holds the first raw word of the native double representation.
801 // This is actually reasonable, since locals and stack arrays 802 // This is actually reasonable, since locals and stack arrays
802 // grow downwards in all implementations. 803 // grow downwards in all implementations.
803 // (If, on some machine, the interpreter's Java locals or stack 804 // (If, on some machine, the interpreter's Java locals or stack
804 // were to grow upwards, the embedded doubles would be word-swapped.) 805 // were to grow upwards, the embedded doubles would be word-swapped.)
805 jlong_accessor acc = { d }; 806 jlong_accessor acc;
807 acc.long_value = d;
806 array->append(new ConstantIntValue(acc.words[1])); 808 array->append(new ConstantIntValue(acc.words[1]));
807 array->append(new ConstantIntValue(acc.words[0])); 809 array->append(new ConstantIntValue(acc.words[0]));
808 #endif 810 #endif
809 break; 811 break;
810 } 812 }

mercurial