Bug 1726122 - Part 1: Remove AlignmentFinder specialisations from MIR.h. r=jandem
authorAndré Bargull <andre.bargull@gmail.com>
Tue, 17 Aug 2021 15:44:34 +0000
changeset 589127 fe00a06e58ac60d74cfe7b8168fcd524d304f116
parent 589126 eb97cd4501dbf3f8690724ffcdaf4c78b342e831
child 589128 d6e1ffa0037226b64e43614f9c4faab77d89d425
push id148165
push userandre.bargull@gmail.com
push dateTue, 17 Aug 2021 15:58:00 +0000
treeherderautoland@4cde398f759e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1726122, 1448387
milestone93.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1726122 - Part 1: Remove AlignmentFinder specialisations from MIR.h. r=jandem These specialisations are no longer needed after bug 1448387. Differential Revision: https://phabricator.services.mozilla.com/D122837
js/src/jit/MIR.h
--- a/js/src/jit/MIR.h
+++ b/js/src/jit/MIR.h
@@ -7,17 +7,16 @@
 /*
  * Everything needed to build actual MIR instructions: the actual opcodes and
  * instructions, the instruction interface, and use chains.
  */
 
 #ifndef jit_MIR_h
 #define jit_MIR_h
 
-#include "mozilla/Alignment.h"
 #include "mozilla/Array.h"
 #include "mozilla/MacroForEach.h"
 
 #include <algorithm>
 #include <initializer_list>
 
 #include "NamespaceImports.h"
 
@@ -10393,23 +10392,9 @@ inline MIRType MIRTypeForArrayBufferView
       break;
   }
   MOZ_CRASH("Unknown typed array type");
 }
 
 }  // namespace jit
 }  // namespace js
 
-// Specialize the AlignmentFinder class to make Result<V, E> works with abstract
-// classes such as MDefinition*, and MInstruction*
-namespace mozilla {
-
-template <>
-class AlignmentFinder<js::jit::MDefinition>
-    : public AlignmentFinder<js::jit::MStart> {};
-
-template <>
-class AlignmentFinder<js::jit::MInstruction>
-    : public AlignmentFinder<js::jit::MStart> {};
-
-}  // namespace mozilla
-
 #endif /* jit_MIR_h */