[Win] Fix for JSC stress test failures.
authorpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Apr 2016 17:31:06 +0000 (17:31 +0000)
committerpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Apr 2016 17:31:06 +0000 (17:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=156343

Reviewed by Filip Pizlo.

We need to make it clear to MSVC that the method loadPtr(ImplicitAddress address, RegisterID dest)
should be used, and not loadPtr(const void* address, RegisterID dest).

* jit/CCallHelpers.cpp:
(JSC::CCallHelpers::setupShadowChickenPacket):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199160 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/CCallHelpers.cpp

index 5ca6bee..2ffb4a1 100644 (file)
@@ -1,3 +1,16 @@
+2016-04-07  Per Arne Vollan  <peavo@outlook.com>
+
+        [Win] Fix for JSC stress test failures.
+        https://bugs.webkit.org/show_bug.cgi?id=156343
+
+        Reviewed by Filip Pizlo.
+
+        We need to make it clear to MSVC that the method loadPtr(ImplicitAddress address, RegisterID dest)
+        should be used, and not loadPtr(const void* address, RegisterID dest).
+
+        * jit/CCallHelpers.cpp:
+        (JSC::CCallHelpers::setupShadowChickenPacket):
+
 2016-04-06  Benjamin Poulain  <bpoulain@apple.com>
 
         [JSC] UInt32ToNumber should be NodeMustGenerate
index 67fd8b4..6189ea1 100644 (file)
@@ -52,16 +52,16 @@ void CCallHelpers::logShadowChickenTailPacket()
 void CCallHelpers::setupShadowChickenPacket()
 {
     move(TrustedImmPtr(vm()->shadowChicken().addressOfLogCursor()), GPRInfo::regT0);
-    loadPtr(GPRInfo::regT0, GPRInfo::regT1);
+    loadPtr(Address(GPRInfo::regT0), GPRInfo::regT1);
     Jump ok = branchPtr(Below, GPRInfo::regT1, TrustedImmPtr(vm()->shadowChicken().logEnd()));
     setupArgumentsExecState();
     move(TrustedImmPtr(bitwise_cast<void*>(operationProcessShadowChickenLog)), GPRInfo::nonArgGPR0);
     call(GPRInfo::nonArgGPR0);
     move(TrustedImmPtr(vm()->shadowChicken().addressOfLogCursor()), GPRInfo::regT0);
-    loadPtr(GPRInfo::regT0, GPRInfo::regT1);
+    loadPtr(Address(GPRInfo::regT0), GPRInfo::regT1);
     ok.link(this);
     addPtr(TrustedImm32(sizeof(ShadowChicken::Packet)), GPRInfo::regT1, GPRInfo::regT2);
-    storePtr(GPRInfo::regT2, GPRInfo::regT0);
+    storePtr(GPRInfo::regT2, Address(GPRInfo::regT0));
 }
 
 } // namespace JSC