Blame cloop-big-endians.patch

c4a08e2
diff -up webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp.b132333 webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp
c4a08e2
--- webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp.b132333	2017-02-07 09:05:07.000000000 +0100
c4a08e2
+++ webkitgtk-2.14.7/Source/JavaScriptCore/bytecode/CodeBlock.cpp	2017-06-16 10:34:57.859748036 +0200
c4a08e2
@@ -2186,7 +2186,12 @@ void CodeBlock::finishCreation(VM& vm, S
c4a08e2
                 instructions[i + 5].u.watchpointSet = op.watchpointSet;
c4a08e2
             else if (op.structure)
c4a08e2
                 instructions[i + 5].u.structure.set(vm, this, op.structure);
c4a08e2
-            instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
c4a08e2
+
c4a08e2
+            if (op.type == ClosureVar || op.type == ClosureVarWithVarInjectionChecks || op.type == GlobalProperty || op.type == GlobalPropertyWithVarInjectionChecks || op.type == ModuleVar)
c4a08e2
+                instructions[i + 6].u.operand = op.operand;
c4a08e2
+            else
c4a08e2
+                instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
c4a08e2
+
c4a08e2
             break;
c4a08e2
         }
c4a08e2
 
c4a08e2
@@ -2222,7 +2227,11 @@ void CodeBlock::finishCreation(VM& vm, S
c4a08e2
                     op.watchpointSet->invalidate(vm, PutToScopeFireDetail(this, ident));
c4a08e2
             } else if (op.structure)
c4a08e2
                 instructions[i + 5].u.structure.set(vm, this, op.structure);
c4a08e2
-            instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
c4a08e2
+
c4a08e2
+            if (op.type == ClosureVar || op.type == ClosureVarWithVarInjectionChecks || op.type == GlobalProperty || op.type == GlobalPropertyWithVarInjectionChecks || op.type == ModuleVar)
c4a08e2
+                instructions[i + 6].u.operand = op.operand;
c4a08e2
+            else
c4a08e2
+                instructions[i + 6].u.pointer = reinterpret_cast<void*>(op.operand);
c4a08e2
 
c4a08e2
             break;
c4a08e2
         }