Title: [289076] trunk/Source/_javascript_Core
Revision
289076
Author
[email protected]
Date
2022-02-03 13:42:21 -0800 (Thu, 03 Feb 2022)

Log Message

Unreviewed, remove UnlinkedMetadataTable::offsetInMetadataTable since it is no longer used
https://bugs.webkit.org/show_bug.cgi?id=236063

Follow-up after Saam's comment.

* bytecode/UnlinkedMetadataTable.h:
(JSC::UnlinkedMetadataTable::offsetInMetadataTable): Deleted.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (289075 => 289076)


--- trunk/Source/_javascript_Core/ChangeLog	2022-02-03 21:34:50 UTC (rev 289075)
+++ trunk/Source/_javascript_Core/ChangeLog	2022-02-03 21:42:21 UTC (rev 289076)
@@ -1,5 +1,15 @@
 2022-02-03  Yusuke Suzuki  <[email protected]>
 
+        Unreviewed, remove UnlinkedMetadataTable::offsetInMetadataTable since it is no longer used
+        https://bugs.webkit.org/show_bug.cgi?id=236063
+
+        Follow-up after Saam's comment.
+
+        * bytecode/UnlinkedMetadataTable.h:
+        (JSC::UnlinkedMetadataTable::offsetInMetadataTable): Deleted.
+
+2022-02-03  Yusuke Suzuki  <[email protected]>
+
         [JSC] Use MetadataTable instead of UnlinkedMetadataTable
         https://bugs.webkit.org/show_bug.cgi?id=236063
         rdar://88269480

Modified: trunk/Source/_javascript_Core/bytecode/UnlinkedMetadataTable.h (289075 => 289076)


--- trunk/Source/_javascript_Core/bytecode/UnlinkedMetadataTable.h	2022-02-03 21:34:50 UTC (rev 289075)
+++ trunk/Source/_javascript_Core/bytecode/UnlinkedMetadataTable.h	2022-02-03 21:42:21 UTC (rev 289076)
@@ -64,17 +64,6 @@
         return adoptRef(*new UnlinkedMetadataTable);
     }
 
-    template <typename Opcode>
-    uintptr_t offsetInMetadataTable(const Opcode& opcode)
-    {
-        ASSERT(m_isFinalized);
-        // UnlinkedMetadataTable can be realloc-ed from the mutator thread, thus, it is not OK to touch this table from non mutator thread if the mutator thread is running.
-        ASSERT(!isCompilationThread() && !Thread::mayBeGCThread());
-        uintptr_t baseTypeOffset = m_is32Bit ? offsetTable32()[Opcode::opcodeID] : offsetTable16()[Opcode::opcodeID];
-        baseTypeOffset = roundUpToMultipleOf(alignof(typename Opcode::Metadata), baseTypeOffset);
-        return baseTypeOffset + sizeof(typename Opcode::Metadata) * opcode.m_metadataID;
-    }
-
     template <typename Bytecode>
     unsigned numEntries();
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to