Title: [292920] trunk/Source/_javascript_Core
Revision
292920
Author
[email protected]
Date
2022-04-15 12:54:36 -0700 (Fri, 15 Apr 2022)

Log Message

Apply purifyNaN in more places.
https://bugs.webkit.org/show_bug.cgi?id=239393

Reviewed by Saam Barati.

Also removed some unused functions.

* wasm/WasmInstance.h:
(JSC::Wasm::Instance::loadI64Global const):
(JSC::Wasm::Instance::loadF32Global const): Deleted.
(JSC::Wasm::Instance::loadF64Global const): Deleted.
* wasm/js/JSWebAssemblyHelpers.h:
(JSC::toJSValue):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (292919 => 292920)


--- trunk/Source/_javascript_Core/ChangeLog	2022-04-15 19:04:25 UTC (rev 292919)
+++ trunk/Source/_javascript_Core/ChangeLog	2022-04-15 19:54:36 UTC (rev 292920)
@@ -1,3 +1,19 @@
+2022-04-15  Mark Lam  <[email protected]>
+
+        Apply purifyNaN in more places.
+        https://bugs.webkit.org/show_bug.cgi?id=239393
+
+        Reviewed by Saam Barati.
+
+        Also removed some unused functions.
+
+        * wasm/WasmInstance.h:
+        (JSC::Wasm::Instance::loadI64Global const):
+        (JSC::Wasm::Instance::loadF32Global const): Deleted.
+        (JSC::Wasm::Instance::loadF64Global const): Deleted.
+        * wasm/js/JSWebAssemblyHelpers.h:
+        (JSC::toJSValue):
+
 2022-04-14  Caitlin Potter  <[email protected]>
 
         [JSC] ShadowRealm global object has a mutable prototype

Modified: trunk/Source/_javascript_Core/wasm/WasmInstance.h (292919 => 292920)


--- trunk/Source/_javascript_Core/wasm/WasmInstance.h	2022-04-15 19:04:25 UTC (rev 292919)
+++ trunk/Source/_javascript_Core/wasm/WasmInstance.h	2022-04-15 19:54:36 UTC (rev 292920)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017-2018 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2022 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -132,8 +132,6 @@
         }
         return slot->m_primitive;
     }
-    float loadF32Global(unsigned i) const { return bitwise_cast<float>(loadI32Global(i)); }
-    double loadF64Global(unsigned i) const { return bitwise_cast<double>(loadI64Global(i)); }
     void setGlobal(unsigned i, int64_t bits)
     {
         Global::Value* slot = m_globals.get() + i;

Modified: trunk/Source/_javascript_Core/wasm/js/JSWebAssemblyHelpers.h (292919 => 292920)


--- trunk/Source/_javascript_Core/wasm/js/JSWebAssemblyHelpers.h	2022-04-15 19:04:25 UTC (rev 292919)
+++ trunk/Source/_javascript_Core/wasm/js/JSWebAssemblyHelpers.h	2022-04-15 19:54:36 UTC (rev 292920)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2018 Apple Inc. All rights reserved.
+ * Copyright (C) 2016-2022 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -162,7 +162,7 @@
     case Wasm::TypeKind::F32:
         return jsNumber(bitwise_cast<float>(static_cast<int32_t>(bits)));
     case Wasm::TypeKind::F64:
-        return jsNumber(bitwise_cast<double>(bits));
+        return jsNumber(purifyNaN(bitwise_cast<double>(bits)));
     case Wasm::TypeKind::I64:
         return JSBigInt::createFrom(globalObject, static_cast<int64_t>(bits));
     case Wasm::TypeKind::Externref:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to