summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/webkit/webkitgtk/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/webkit/webkitgtk/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch')
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch b/meta/recipes-sato/webkit/webkitgtk/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch
new file mode 100644
index 0000000000..76bcb3df99
--- /dev/null
+++ b/meta/recipes-sato/webkit/webkitgtk/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch
@@ -0,0 +1,67 @@
1From 1523e00a2a76e285262c8aa3721b5d99f3f2d612 Mon Sep 17 00:00:00 2001
2From: Thomas Devoogdt <thomas.devoogdt@barco.com>
3Date: Mon, 16 Jan 2023 17:03:30 +0100
4Subject: [PATCH] REGRESSION(257865@main): B3Validate.cpp: fix
5
6 !ENABLE(WEBASSEMBLY_B3JIT)
7
8https://bugs.webkit.org/show_bug.cgi?id=250681
9
10Reviewed by NOBODY (OOPS!).
11
12WasmTypeDefinition.h isn't included if not ENABLE(WEBASSEMBLY_B3JIT).
13Also, toB3Type and simdScalarType are not defined if it is included.
14
15Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
16
17Upstream-Status: Inappropriate [https://bugs.launchpad.net/ubuntu/+source/webkit2gtk/+bug/2008798]
18
19Signed-off-by: Markus Volk <f_l_k@t-online.de>
20---
21 Source/JavaScriptCore/b3/B3Validate.cpp | 12 +++++++++---
22 1 file changed, 9 insertions(+), 3 deletions(-)
23
24diff --git a/Source/JavaScriptCore/b3/B3Validate.cpp b/Source/JavaScriptCore/b3/B3Validate.cpp
25index eaaa3749..1d089783 100644
26--- a/Source/JavaScriptCore/b3/B3Validate.cpp
27+++ b/Source/JavaScriptCore/b3/B3Validate.cpp
28@@ -47,6 +47,12 @@
29 #include <wtf/StringPrintStream.h>
30 #include <wtf/text/CString.h>
31
32+#if ENABLE(WEBASSEMBLY) && ENABLE(WEBASSEMBLY_B3JIT)
33+#define simdScalarTypeToB3Type(type) toB3Type(Wasm::simdScalarType(type))
34+#else
35+#define simdScalarTypeToB3Type(type) B3::Type()
36+#endif
37+
38 namespace JSC { namespace B3 {
39
40 namespace {
41@@ -454,7 +460,7 @@ public:
42 case VectorExtractLane:
43 VALIDATE(!value->kind().hasExtraBits(), ("At ", *value));
44 VALIDATE(value->numChildren() == 1, ("At ", *value));
45- VALIDATE(value->type() == toB3Type(Wasm::simdScalarType(value->asSIMDValue()->simdLane())), ("At ", *value));
46+ VALIDATE(value->type() == simdScalarTypeToB3Type(value->asSIMDValue()->simdLane()), ("At ", *value));
47 VALIDATE(value->child(0)->type() == V128, ("At ", *value));
48 break;
49 case VectorReplaceLane:
50@@ -462,7 +468,7 @@ public:
51 VALIDATE(value->numChildren() == 2, ("At ", *value));
52 VALIDATE(value->type() == V128, ("At ", *value));
53 VALIDATE(value->child(0)->type() == V128, ("At ", *value));
54- VALIDATE(value->child(1)->type() == toB3Type(Wasm::simdScalarType(value->asSIMDValue()->simdLane())), ("At ", *value));
55+ VALIDATE(value->child(1)->type() == simdScalarTypeToB3Type(value->asSIMDValue()->simdLane()), ("At ", *value));
56 break;
57 case VectorDupElement:
58 VALIDATE(!value->kind().hasExtraBits(), ("At ", *value));
59@@ -484,7 +490,7 @@ public:
60 VALIDATE(!value->kind().hasExtraBits(), ("At ", *value));
61 VALIDATE(value->numChildren() == 1, ("At ", *value));
62 VALIDATE(value->type() == V128, ("At ", *value));
63- VALIDATE(value->child(0)->type() == toB3Type(Wasm::simdScalarType(value->asSIMDValue()->simdLane())), ("At ", *value));
64+ VALIDATE(value->child(0)->type() == simdScalarTypeToB3Type(value->asSIMDValue()->simdLane()), ("At ", *value));
65 break;
66
67 case VectorPopcnt: