File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ function checkSafeHeap() {
480
480
}
481
481
482
482
function getHeapOffset ( offset , type ) {
483
- if ( Runtime . getNativeFieldSize ( type ) > 4 && type == 'i64' ) {
483
+ if ( type == 'i64' ) {
484
484
// we emulate 64-bit integer values as 32 in asmjs-unknown-emscripten, but not double
485
485
type = 'i32' ;
486
486
}
Original file line number Diff line number Diff line change @@ -45,14 +45,6 @@ function getNativeTypeSize(type) {
45
45
46
46
var Runtime = {
47
47
getNativeTypeSize : getNativeTypeSize ,
48
-
49
- //! Returns the size of a structure field, as C/C++ would have it (in 32-bit,
50
- //! for now).
51
- //! @param type The type, by name.
52
- getNativeFieldSize : function ( type ) {
53
- return Math . max ( getNativeTypeSize ( type ) , Runtime . QUANTUM_SIZE ) ;
54
- } ,
55
-
56
48
POINTER_SIZE : 4 ,
57
49
QUANTUM_SIZE : 4 ,
58
50
} ;
You can’t perform that action at this time.
0 commit comments