Skip to content

Commit ac4186e

Browse files
committed
Remove unneeded Runtime.getNativeFieldSize function
1 parent b55a3c3 commit ac4186e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/parseTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ function checkSafeHeap() {
480480
}
481481

482482
function getHeapOffset(offset, type) {
483-
if (Runtime.getNativeFieldSize(type) > 4 && type == 'i64') {
483+
if (type == 'i64') {
484484
// we emulate 64-bit integer values as 32 in asmjs-unknown-emscripten, but not double
485485
type = 'i32';
486486
}

src/runtime.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ function getNativeTypeSize(type) {
4545

4646
var Runtime = {
4747
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-
5648
POINTER_SIZE: 4,
5749
QUANTUM_SIZE: 4,
5850
};

0 commit comments

Comments
 (0)