@@ -844,8 +844,7 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa
844
844
return '{ ' + ret . join ( ', ' ) + ' }' ;
845
845
}
846
846
847
- // In double mode 1, in asmjs-unknown-emscripten we need this code path if we are not fully aligned.
848
- if ( DOUBLE_MODE == 1 && type == 'double' && ( align < 8 ) ) {
847
+ if ( type == 'double' && ( align < 8 ) ) {
849
848
return '(' + makeSetTempDouble ( 0 , 'i32' , makeGetValue ( ptr , pos , 'i32' , noNeedFirst , unsigned , ignore , align , noSafe ) ) + ',' +
850
849
makeSetTempDouble ( 1 , 'i32' , makeGetValue ( ptr , getFastValue ( pos , '+' , Runtime . getNativeTypeSize ( 'i32' ) ) , 'i32' , noNeedFirst , unsigned , ignore , align , noSafe ) ) + ',' +
851
850
makeGetTempDouble ( 0 , 'double' ) + ')' ;
@@ -854,7 +853,6 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa
854
853
if ( align ) {
855
854
// Alignment is important here. May need to split this up
856
855
var bytes = Runtime . getNativeTypeSize ( type ) ;
857
- if ( DOUBLE_MODE == 0 && type == 'double' ) bytes = 4 ; // we will really only read 4 bytes here
858
856
if ( bytes > align ) {
859
857
var ret = '(' ;
860
858
if ( isIntImplemented ( type ) ) {
@@ -928,7 +926,7 @@ function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe,
928
926
return ret . join ( '; ' ) ;
929
927
}
930
928
931
- if ( DOUBLE_MODE == 1 && type == 'double' && ( align < 8 ) ) {
929
+ if ( type == 'double' && ( align < 8 ) ) {
932
930
return '(' + makeSetTempDouble ( 0 , 'double' , value ) + ',' +
933
931
makeSetValue ( ptr , pos , makeGetTempDouble ( 0 , 'i32' ) , 'i32' , noNeedFirst , ignore , align , noSafe , ',' ) + ',' +
934
932
makeSetValue ( ptr , getFastValue ( pos , '+' , Runtime . getNativeTypeSize ( 'i32' ) ) , makeGetTempDouble ( 1 , 'i32' ) , 'i32' , noNeedFirst , ignore , align , noSafe , ',' ) + ')' ;
@@ -943,7 +941,6 @@ function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe,
943
941
if ( align || needSplitting ) {
944
942
// Alignment is important here, or we need to split this up for other reasons.
945
943
var bytes = Runtime . getNativeTypeSize ( type ) ;
946
- if ( DOUBLE_MODE == 0 && type == 'double' ) bytes = 4 ; // we will really only read 4 bytes here
947
944
if ( bytes > align || needSplitting ) {
948
945
var ret = '' ;
949
946
if ( isIntImplemented ( type ) ) {
0 commit comments