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 6f59c0fd4b3818b6cd5cee51b4d30f1906791cfa..8ec6425c5e16f8038495f7dab10846cf18a0a4ec 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
 2015-08-12  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [ES6] Implement Reflect.defineProperty
index c9331f737ab7303199e7e4a9a24cca0d1dbc1955..3272adf8bd1f6157079c2f1972beba258704d52c 100644 (file)
@@ -3010,17 +3010,6 @@ void CodeBlock::linkIncomingCall(ExecState* callerFrame, LLIntCallLinkInfo* inco
     m_incomingLLIntCalls.push(incoming);
 }
 
     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);
 void CodeBlock::install()
 {
     ownerExecutable()->installCode(this);
index 960791d70fb5a17d2a0024b96f4a57c40813f5b6..acf4321d9be6be572b3acdefc1a44c55a3f1d2b9 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); }
 
     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()
     String nameForRegister(VirtualRegister);
 
     unsigned numberOfArgumentValueProfiles()