summaryrefslogtreecommitdiff
path: root/js/src/jit/x64/CodeGenerator-x64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/x64/CodeGenerator-x64.cpp')
-rw-r--r--js/src/jit/x64/CodeGenerator-x64.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit/x64/CodeGenerator-x64.cpp b/js/src/jit/x64/CodeGenerator-x64.cpp
index 61ce8a187c..3f4052f51d 100644
--- a/js/src/jit/x64/CodeGenerator-x64.cpp
+++ b/js/src/jit/x64/CodeGenerator-x64.cpp
@@ -121,6 +121,9 @@ CodeGeneratorX64::visitUnbox(LUnbox* unbox)
case MIRType::Symbol:
cond = masm.testSymbol(Assembler::NotEqual, value);
break;
+ case MIRType::BigInt:
+ cond = masm.testBigInt(Assembler::NotEqual, value);
+ break;
default:
MOZ_CRASH("Given MIRType cannot be unboxed.");
}
@@ -145,6 +148,9 @@ CodeGeneratorX64::visitUnbox(LUnbox* unbox)
case MIRType::Symbol:
masm.unboxSymbol(input, result);
break;
+ case MIRType::BigInt:
+ masm.unboxBigInt(input, result);
+ break;
default:
MOZ_CRASH("Given MIRType cannot be unboxed.");
}
@@ -439,6 +445,8 @@ CodeGeneratorX64::wasmStore(const wasm::MemoryAccessDesc& access, const LAllocat
case Scalar::Int16x8:
case Scalar::Int32x4:
case Scalar::Uint8Clamped:
+ case Scalar::BigInt64:
+ case Scalar::BigUint64:
case Scalar::MaxTypedArrayViewType:
MOZ_CRASH("unexpected array type");
}