diff options
author | Brian Smith <brian@dbsoft.org> | 2023-07-21 20:25:52 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2023-07-21 20:25:52 -0500 |
commit | 94609cf97bae8b30f51ddabd94cfc2d301d59b83 (patch) | |
tree | c6ce1a7e08a75aac1ba0195adbda464b414eabca /js/src/jit/x64/CodeGenerator-x64.cpp | |
parent | 6257513c7e0e1e90b47b35e0c2ea63eeeb802ed8 (diff) | |
download | uxp-94609cf97bae8b30f51ddabd94cfc2d301d59b83.tar.gz |
Issue #1240 - Part 10 - Implement minimal Ion support for BigInt.
https://bugzilla.mozilla.org/show_bug.cgi?id=1507484
Implement IC support for BigInt.
https://bugzilla.mozilla.org/show_bug.cgi?id=1522431
Diffstat (limited to 'js/src/jit/x64/CodeGenerator-x64.cpp')
-rw-r--r-- | js/src/jit/x64/CodeGenerator-x64.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit/x64/CodeGenerator-x64.cpp b/js/src/jit/x64/CodeGenerator-x64.cpp index 61ce8a187c..9dea005abb 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."); } |