Title: [204840] trunk/Source/_javascript_Core
Revision
204840
Author
sbar...@apple.com
Date
2016-08-23 10:32:52 -0700 (Tue, 23 Aug 2016)

Log Message

JIT::updateTopCallframe() in the baseline JIT should use PC instead of PC+1
https://bugs.webkit.org/show_bug.cgi?id=158955

Reviewed by Mark Lam.

This will make the baseline JIT consistent with the rest of the tiers.

* jit/JITInlines.h:
(JSC::JIT::updateTopCallFrame):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (204839 => 204840)


--- trunk/Source/_javascript_Core/ChangeLog	2016-08-23 15:34:09 UTC (rev 204839)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-08-23 17:32:52 UTC (rev 204840)
@@ -1,3 +1,15 @@
+2016-08-23  Saam Barati  <sbar...@apple.com>
+
+        JIT::updateTopCallframe() in the baseline JIT should use PC instead of PC+1
+        https://bugs.webkit.org/show_bug.cgi?id=158955
+
+        Reviewed by Mark Lam.
+
+        This will make the baseline JIT consistent with the rest of the tiers.
+
+        * jit/JITInlines.h:
+        (JSC::JIT::updateTopCallFrame):
+
 2016-08-22  Per Arne Vollan  <pvol...@apple.com>
 
         [Win] Warning fix.

Modified: trunk/Source/_javascript_Core/jit/JITInlines.h (204839 => 204840)


--- trunk/Source/_javascript_Core/jit/JITInlines.h	2016-08-23 15:34:09 UTC (rev 204839)
+++ trunk/Source/_javascript_Core/jit/JITInlines.h	2016-08-23 17:32:52 UTC (rev 204840)
@@ -137,10 +137,10 @@
 {
     ASSERT(static_cast<int>(m_bytecodeOffset) >= 0);
 #if USE(JSVALUE32_64)
-    Instruction* instruction = m_codeBlock->instructions().begin() + m_bytecodeOffset + 1; 
+    Instruction* instruction = m_codeBlock->instructions().begin() + m_bytecodeOffset; 
     uint32_t locationBits = CallSiteIndex(instruction).bits();
 #else
-    uint32_t locationBits = CallSiteIndex(m_bytecodeOffset + 1).bits();
+    uint32_t locationBits = CallSiteIndex(m_bytecodeOffset).bits();
 #endif
     store32(TrustedImm32(locationBits), intTagFor(CallFrameSlot::argumentCount));
     
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to