comparison src/share/vm/opto/output.cpp @ 20289:69ea58782b1a

8054054: 8040121 is broken Summary: C++ code pattern from 8040121 is incorrect Reviewed-by: kvn
author roland
date Thu, 31 Jul 2014 19:59:36 +0200
parents b6a8cc1e0d92
children fc2c88ea11a9
comparison
equal deleted inserted replaced
20288:a073be2ce5c2 20289: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 }