Removed clearEvalCodeCache()
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Aug 2015 00:04:56 +0000 (00:04 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Aug 2015 00:04:56 +0000 (00:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=147957

Reviewed by Filip Pizlo.

It was unused.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::linkIncomingCall):
(JSC::CodeBlock::install):
(JSC::CodeBlock::clearEvalCache): Deleted.
* bytecode/CodeBlock.h:
(JSC::CodeBlock::numberOfJumpTargets):
(JSC::CodeBlock::jumpTarget):
(JSC::CodeBlock::numberOfArgumentValueProfiles):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/CodeBlock.cpp
Source/JavaScriptCore/bytecode/CodeBlock.h

index 6f59c0f..8ec6425 100644 (file)
@@ -1,3 +1,21 @@
+2015-08-12  Geoffrey Garen  <ggaren@apple.com>
+
+        Removed clearEvalCodeCache()
+        https://bugs.webkit.org/show_bug.cgi?id=147957
+
+        Reviewed by Filip Pizlo.
+
+        It was unused.
+
+        * bytecode/CodeBlock.cpp:
+        (JSC::CodeBlock::linkIncomingCall):
+        (JSC::CodeBlock::install):
+        (JSC::CodeBlock::clearEvalCache): Deleted.
+        * bytecode/CodeBlock.h:
+        (JSC::CodeBlock::numberOfJumpTargets):
+        (JSC::CodeBlock::jumpTarget):
+        (JSC::CodeBlock::numberOfArgumentValueProfiles):
+
 2015-08-12  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [ES6] Implement Reflect.defineProperty
index c9331f7..3272adf 100644 (file)
@@ -3010,17 +3010,6 @@ void CodeBlock::linkIncomingCall(ExecState* callerFrame, LLIntCallLinkInfo* inco
     m_incomingLLIntCalls.push(incoming);
 }
 
-void CodeBlock::clearEvalCache()
-{
-    if (!!m_alternative)
-        m_alternative->clearEvalCache();
-    if (CodeBlock* otherBlock = specialOSREntryBlockOrNull())
-        otherBlock->clearEvalCache();
-    if (!m_rareData)
-        return;
-    m_rareData->m_evalCodeCache.clear();
-}
-
 void CodeBlock::install()
 {
     ownerExecutable()->installCode(this);
index 960791d..acf4321 100644 (file)
@@ -363,8 +363,6 @@ public:
     size_t numberOfJumpTargets() const { return m_unlinkedCode->numberOfJumpTargets(); }
     unsigned jumpTarget(int index) const { return m_unlinkedCode->jumpTarget(index); }
 
-    void clearEvalCache();
-
     String nameForRegister(VirtualRegister);
 
     unsigned numberOfArgumentValueProfiles()