Bug 1489698 - Add moz.build for js/src/jit. r=jandem,froydnj
authorTed Campbell <tcampbell@mozilla.com>
Fri, 07 Sep 2018 19:05:55 -0400
changeset 499596 a17dfbac6b10ec140dc69ed3053662987eba25ef
parent 499595 dc8601554a38bdd9ed08d3aee628ec313baae56a
child 499597 e74320599eba71510f585cdcb049ab13d339447c
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem, froydnj
bugs1489698
milestone65.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 1489698 - Add moz.build for js/src/jit. r=jandem,froydnj
js/src/jit/moz.build
js/src/moz.build
new file mode 100644
--- /dev/null
+++ b/js/src/jit/moz.build
@@ -0,0 +1,240 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+FINAL_LIBRARY = 'js'
+
+FILES_PER_UNIFIED_FILE = 6
+
+# Includes should be relative to parent path
+LOCAL_INCLUDES += [
+    '!..',
+    '..'
+]
+
+include('../js-config.mozbuild')
+include('../js-cxxflags.mozbuild')
+
+
+# Generate jit/MOpcodes.h from jit/MIR.h
+GENERATED_FILES += ['MOpcodes.h']
+MOpcodesGenerated = GENERATED_FILES['MOpcodes.h']
+MOpcodesGenerated.script = 'GenerateOpcodeFiles.py:generate_mir_header'
+MOpcodesGenerated.inputs = ['MIR.h']
+
+# Generate jit/LOpcodes.h from jit/LIR.h, jit/shared/LIR-shared.h, and
+# platform-specific LIR files.
+GENERATED_FILES += ['LOpcodes.h']
+LOpcodesGenerated = GENERATED_FILES['LOpcodes.h']
+LOpcodesGenerated.script = 'GenerateOpcodeFiles.py:generate_lir_header'
+LOpcodesGenerated.inputs = ['LIR.h', 'shared/LIR-shared.h']
+
+
+UNIFIED_SOURCES += [
+    'AliasAnalysis.cpp',
+    'AlignmentMaskAnalysis.cpp',
+    'BacktrackingAllocator.cpp',
+    'Bailouts.cpp',
+    'BaselineBailouts.cpp',
+    'BaselineCacheIRCompiler.cpp',
+    'BaselineCompiler.cpp',
+    'BaselineDebugModeOSR.cpp',
+    'BaselineFrame.cpp',
+    'BaselineFrameInfo.cpp',
+    'BaselineIC.cpp',
+    'BaselineInspector.cpp',
+    'BaselineJIT.cpp',
+    'BitSet.cpp',
+    'BytecodeAnalysis.cpp',
+    'C1Spewer.cpp',
+    'CacheIR.cpp',
+    'CacheIRCompiler.cpp',
+    'CacheIRSpewer.cpp',
+    'CodeGenerator.cpp',
+    'CompileWrappers.cpp',
+    'EdgeCaseAnalysis.cpp',
+    'EffectiveAddressAnalysis.cpp',
+    'ExecutableAllocator.cpp',
+    'FoldLinearArithConstants.cpp',
+    'InstructionReordering.cpp',
+    'Ion.cpp',
+    'IonAnalysis.cpp',
+    'IonBuilder.cpp',
+    'IonCacheIRCompiler.cpp',
+    'IonControlFlow.cpp',
+    'IonIC.cpp',
+    'IonOptimizationLevels.cpp',
+    'Jit.cpp',
+    'JitcodeMap.cpp',
+    'JitFrames.cpp',
+    'JitOptions.cpp',
+    'JitSpewer.cpp',
+    'JSJitFrameIter.cpp',
+    'JSONSpewer.cpp',
+    'LICM.cpp',
+    'Linker.cpp',
+    'LIR.cpp',
+    'LoopUnroller.cpp',
+    'Lowering.cpp',
+    'MacroAssembler.cpp',
+    'MCallOptimize.cpp',
+    'MIR.cpp',
+    'MIRGraph.cpp',
+    'MoveResolver.cpp',
+    'OptimizationTracking.cpp',
+    'PerfSpewer.cpp',
+    'ProcessExecutableMemory.cpp',
+    'RangeAnalysis.cpp',
+    'Recover.cpp',
+    'RegisterAllocator.cpp',
+    'RematerializedFrame.cpp',
+    'Safepoints.cpp',
+    'ScalarReplacement.cpp',
+    'shared/Assembler-shared.cpp',
+    'shared/CodeGenerator-shared.cpp',
+    'shared/Disassembler-shared.cpp',
+    'shared/Lowering-shared.cpp',
+    'Sink.cpp',
+    'Snapshots.cpp',
+    'StupidAllocator.cpp',
+    'TypedObjectPrediction.cpp',
+    'TypePolicy.cpp',
+    'ValueNumbering.cpp',
+    'VMFunctions.cpp',
+    'WasmBCE.cpp',
+]
+
+if not CONFIG['ENABLE_ION']:
+    LOpcodesGenerated.inputs += ['none/LIR-none.h']
+    UNIFIED_SOURCES += [
+        'none/Trampoline-none.cpp'
+    ]
+elif CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']:
+    LOpcodesGenerated.inputs += ['x86-shared/LIR-x86-shared.h']
+    UNIFIED_SOURCES += [
+        'x86-shared/Architecture-x86-shared.cpp',
+        'x86-shared/Assembler-x86-shared.cpp',
+        'x86-shared/AssemblerBuffer-x86-shared.cpp',
+        'x86-shared/CodeGenerator-x86-shared.cpp',
+        'x86-shared/Lowering-x86-shared.cpp',
+        'x86-shared/MacroAssembler-x86-shared-SIMD.cpp',
+        'x86-shared/MacroAssembler-x86-shared.cpp',
+        'x86-shared/MoveEmitter-x86-shared.cpp',
+    ]
+    if CONFIG['JS_CODEGEN_X64']:
+        LOpcodesGenerated.inputs += ['x64/LIR-x64.h']
+        UNIFIED_SOURCES += [
+            'x64/Assembler-x64.cpp',
+            'x64/Bailouts-x64.cpp',
+            'x64/CodeGenerator-x64.cpp',
+            'x64/Lowering-x64.cpp',
+            'x64/MacroAssembler-x64.cpp',
+            'x64/Trampoline-x64.cpp',
+        ]
+    else:
+        LOpcodesGenerated.inputs += ['x86/LIR-x86.h']
+        UNIFIED_SOURCES += [
+            'x86/Assembler-x86.cpp',
+            'x86/Bailouts-x86.cpp',
+            'x86/CodeGenerator-x86.cpp',
+            'x86/Lowering-x86.cpp',
+            'x86/MacroAssembler-x86.cpp',
+            'x86/Trampoline-x86.cpp',
+        ]
+elif CONFIG['JS_CODEGEN_ARM']:
+    LOpcodesGenerated.inputs += ['arm/LIR-arm.h']
+    UNIFIED_SOURCES += [
+        'arm/Architecture-arm.cpp',
+        'arm/Assembler-arm.cpp',
+        'arm/Bailouts-arm.cpp',
+        'arm/CodeGenerator-arm.cpp',
+        'arm/disasm/Constants-arm.cpp',
+        'arm/disasm/Disasm-arm.cpp',
+        'arm/Lowering-arm.cpp',
+        'arm/MacroAssembler-arm.cpp',
+        'arm/MoveEmitter-arm.cpp',
+        'arm/Trampoline-arm.cpp',
+    ]
+    if CONFIG['JS_SIMULATOR_ARM']:
+        UNIFIED_SOURCES += [
+            'arm/Simulator-arm.cpp'
+        ]
+    elif CONFIG['OS_ARCH'] == 'Darwin':
+        SOURCES += [
+            'arm/llvm-compiler-rt/arm/aeabi_idivmod.S',
+            'arm/llvm-compiler-rt/arm/aeabi_uidivmod.S',
+        ]
+elif CONFIG['JS_CODEGEN_ARM64']:
+    LOpcodesGenerated.inputs += ['arm64/LIR-arm64.h']
+    UNIFIED_SOURCES += [
+        'arm64/Architecture-arm64.cpp',
+        'arm64/Assembler-arm64.cpp',
+        'arm64/Bailouts-arm64.cpp',
+        'arm64/CodeGenerator-arm64.cpp',
+        'arm64/Lowering-arm64.cpp',
+        'arm64/MacroAssembler-arm64.cpp',
+        'arm64/MoveEmitter-arm64.cpp',
+        'arm64/Trampoline-arm64.cpp',
+        'arm64/vixl/Assembler-vixl.cpp',
+        'arm64/vixl/Cpu-vixl.cpp',
+        'arm64/vixl/Decoder-vixl.cpp',
+        'arm64/vixl/Disasm-vixl.cpp',
+        'arm64/vixl/Instructions-vixl.cpp',
+        'arm64/vixl/Instrument-vixl.cpp',
+        'arm64/vixl/MacroAssembler-vixl.cpp',
+        'arm64/vixl/MozAssembler-vixl.cpp',
+        'arm64/vixl/MozInstructions-vixl.cpp',
+        'arm64/vixl/Utils-vixl.cpp'
+    ]
+    if CONFIG['JS_SIMULATOR_ARM64']:
+        UNIFIED_SOURCES += [
+            'arm64/vixl/Debugger-vixl.cpp',
+            'arm64/vixl/Logic-vixl.cpp',
+            'arm64/vixl/MozSimulator-vixl.cpp',
+            'arm64/vixl/Simulator-vixl.cpp'
+        ]
+elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']:
+    LOpcodesGenerated.inputs += ['mips-shared/LIR-mips-shared.h']
+    UNIFIED_SOURCES += [
+        'mips-shared/Architecture-mips-shared.cpp',
+        'mips-shared/Assembler-mips-shared.cpp',
+        'mips-shared/Bailouts-mips-shared.cpp',
+        'mips-shared/CodeGenerator-mips-shared.cpp',
+        'mips-shared/Lowering-mips-shared.cpp',
+        'mips-shared/MacroAssembler-mips-shared.cpp',
+        'mips-shared/MoveEmitter-mips-shared.cpp',
+    ]
+    if CONFIG['JS_CODEGEN_MIPS32']:
+        LOpcodesGenerated.inputs += ['mips32/LIR-mips32.h']
+        UNIFIED_SOURCES += [
+            'mips32/Architecture-mips32.cpp',
+            'mips32/Assembler-mips32.cpp',
+            'mips32/Bailouts-mips32.cpp',
+            'mips32/CodeGenerator-mips32.cpp',
+            'mips32/Lowering-mips32.cpp',
+            'mips32/MacroAssembler-mips32.cpp',
+            'mips32/MoveEmitter-mips32.cpp',
+            'mips32/Trampoline-mips32.cpp',
+        ]
+        if CONFIG['JS_SIMULATOR_MIPS32']:
+            UNIFIED_SOURCES += [
+                'mips32/Simulator-mips32.cpp'
+            ]
+    elif CONFIG['JS_CODEGEN_MIPS64']:
+        LOpcodesGenerated.inputs += ['mips64/LIR-mips64.h']
+        UNIFIED_SOURCES += [
+            'mips64/Architecture-mips64.cpp',
+            'mips64/Assembler-mips64.cpp',
+            'mips64/Bailouts-mips64.cpp',
+            'mips64/CodeGenerator-mips64.cpp',
+            'mips64/Lowering-mips64.cpp',
+            'mips64/MacroAssembler-mips64.cpp',
+            'mips64/MoveEmitter-mips64.cpp',
+            'mips64/Trampoline-mips64.cpp',
+        ]
+        if CONFIG['JS_SIMULATOR_MIPS64']:
+            UNIFIED_SOURCES += [
+                'mips64/Simulator-mips64.cpp'
+            ]
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -93,29 +93,16 @@ CONFIGURE_DEFINE_FILES += [
     'js-config.h',
 ]
 
 if CONFIG['HAVE_DTRACE']:
     GENERATED_FILES += ['javascript-trace.h']
 
     EXPORTS += ['!javascript-trace.h']
 
-# Generate jit/MOpcodes.h from jit/MIR.h
-GENERATED_FILES += ['jit/MOpcodes.h']
-MOpcodesGenerated = GENERATED_FILES['jit/MOpcodes.h']
-MOpcodesGenerated.script = 'jit/GenerateOpcodeFiles.py:generate_mir_header'
-MOpcodesGenerated.inputs = ['jit/MIR.h']
-
-# Generate jit/LOpcodes.h from jit/LIR.h, jit/shared/LIR-shared.h, and
-# platform-specific LIR files.
-GENERATED_FILES += ['jit/LOpcodes.h']
-LOpcodesGenerated = GENERATED_FILES['jit/LOpcodes.h']
-LOpcodesGenerated.script = 'jit/GenerateOpcodeFiles.py:generate_lir_header'
-LOpcodesGenerated.inputs = ['jit/LIR.h', 'jit/shared/LIR-shared.h']
-
 # Changes to internal header files, used externally, massively slow down
 # browser builds.  Don't add new files here unless you know what you're
 # doing!
 EXPORTS += [
     '!js-config.h',
     'js.msg',
     'jsapi.h',
     'jsfriendapi.h',
@@ -266,87 +253,16 @@ UNIFIED_SOURCES += [
     'irregexp/NativeRegExpMacroAssembler.cpp',
     'irregexp/RegExpAST.cpp',
     'irregexp/RegExpCharacters.cpp',
     'irregexp/RegExpEngine.cpp',
     'irregexp/RegExpInterpreter.cpp',
     'irregexp/RegExpMacroAssembler.cpp',
     'irregexp/RegExpParser.cpp',
     'irregexp/RegExpStack.cpp',
-    'jit/AliasAnalysis.cpp',
-    'jit/AlignmentMaskAnalysis.cpp',
-    'jit/BacktrackingAllocator.cpp',
-    'jit/Bailouts.cpp',
-    'jit/BaselineBailouts.cpp',
-    'jit/BaselineCacheIRCompiler.cpp',
-    'jit/BaselineCompiler.cpp',
-    'jit/BaselineDebugModeOSR.cpp',
-    'jit/BaselineFrame.cpp',
-    'jit/BaselineFrameInfo.cpp',
-    'jit/BaselineIC.cpp',
-    'jit/BaselineInspector.cpp',
-    'jit/BaselineJIT.cpp',
-    'jit/BitSet.cpp',
-    'jit/BytecodeAnalysis.cpp',
-    'jit/C1Spewer.cpp',
-    'jit/CacheIR.cpp',
-    'jit/CacheIRCompiler.cpp',
-    'jit/CacheIRSpewer.cpp',
-    'jit/CodeGenerator.cpp',
-    'jit/CompileWrappers.cpp',
-    'jit/EdgeCaseAnalysis.cpp',
-    'jit/EffectiveAddressAnalysis.cpp',
-    'jit/ExecutableAllocator.cpp',
-    'jit/FoldLinearArithConstants.cpp',
-    'jit/InstructionReordering.cpp',
-    'jit/Ion.cpp',
-    'jit/IonAnalysis.cpp',
-    'jit/IonBuilder.cpp',
-    'jit/IonCacheIRCompiler.cpp',
-    'jit/IonControlFlow.cpp',
-    'jit/IonIC.cpp',
-    'jit/IonOptimizationLevels.cpp',
-    'jit/Jit.cpp',
-    'jit/JitcodeMap.cpp',
-    'jit/JitFrames.cpp',
-    'jit/JitOptions.cpp',
-    'jit/JitSpewer.cpp',
-    'jit/JSJitFrameIter.cpp',
-    'jit/JSONSpewer.cpp',
-    'jit/LICM.cpp',
-    'jit/Linker.cpp',
-    'jit/LIR.cpp',
-    'jit/LoopUnroller.cpp',
-    'jit/Lowering.cpp',
-    'jit/MacroAssembler.cpp',
-    'jit/MCallOptimize.cpp',
-    'jit/MIR.cpp',
-    'jit/MIRGraph.cpp',
-    'jit/MoveResolver.cpp',
-    'jit/OptimizationTracking.cpp',
-    'jit/PerfSpewer.cpp',
-    'jit/ProcessExecutableMemory.cpp',
-    'jit/RangeAnalysis.cpp',
-    'jit/Recover.cpp',
-    'jit/RegisterAllocator.cpp',
-    'jit/RematerializedFrame.cpp',
-    'jit/Safepoints.cpp',
-    'jit/ScalarReplacement.cpp',
-    'jit/shared/Assembler-shared.cpp',
-    'jit/shared/CodeGenerator-shared.cpp',
-    'jit/shared/Disassembler-shared.cpp',
-    'jit/shared/Lowering-shared.cpp',
-    'jit/Sink.cpp',
-    'jit/Snapshots.cpp',
-    'jit/StupidAllocator.cpp',
-    'jit/TypedObjectPrediction.cpp',
-    'jit/TypePolicy.cpp',
-    'jit/ValueNumbering.cpp',
-    'jit/VMFunctions.cpp',
-    'jit/WasmBCE.cpp',
     'jsapi.cpp',
     'jsdate.cpp',
     'jsexn.cpp',
     'jsfriendapi.cpp',
     'jsnum.cpp',
     'perf/jsperf.cpp',
     'proxy/BaseProxyHandler.cpp',
     'proxy/CrossCompartmentWrapper.cpp',
@@ -502,149 +418,16 @@ if CONFIG['MOZ_INSTRUMENTS']:
 
 if CONFIG['ENABLE_TRACE_LOGGING']:
     SOURCES += [
         'vm/TraceLogging.cpp',
         'vm/TraceLoggingGraph.cpp',
         'vm/TraceLoggingTypes.cpp',
     ]
 
-if not CONFIG['ENABLE_ION']:
-    LOpcodesGenerated.inputs += ['jit/none/LIR-none.h']
-    UNIFIED_SOURCES += [
-        'jit/none/Trampoline-none.cpp'
-    ]
-elif CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']:
-    LOpcodesGenerated.inputs += ['jit/x86-shared/LIR-x86-shared.h']
-    UNIFIED_SOURCES += [
-        'jit/x86-shared/Architecture-x86-shared.cpp',
-        'jit/x86-shared/Assembler-x86-shared.cpp',
-        'jit/x86-shared/AssemblerBuffer-x86-shared.cpp',
-        'jit/x86-shared/CodeGenerator-x86-shared.cpp',
-        'jit/x86-shared/Lowering-x86-shared.cpp',
-        'jit/x86-shared/MacroAssembler-x86-shared-SIMD.cpp',
-        'jit/x86-shared/MacroAssembler-x86-shared.cpp',
-        'jit/x86-shared/MoveEmitter-x86-shared.cpp',
-    ]
-    if CONFIG['JS_CODEGEN_X64']:
-        LOpcodesGenerated.inputs += ['jit/x64/LIR-x64.h']
-        UNIFIED_SOURCES += [
-            'jit/x64/Assembler-x64.cpp',
-            'jit/x64/Bailouts-x64.cpp',
-            'jit/x64/CodeGenerator-x64.cpp',
-            'jit/x64/Lowering-x64.cpp',
-            'jit/x64/MacroAssembler-x64.cpp',
-            'jit/x64/Trampoline-x64.cpp',
-        ]
-    else:
-        LOpcodesGenerated.inputs += ['jit/x86/LIR-x86.h']
-        UNIFIED_SOURCES += [
-            'jit/x86/Assembler-x86.cpp',
-            'jit/x86/Bailouts-x86.cpp',
-            'jit/x86/CodeGenerator-x86.cpp',
-            'jit/x86/Lowering-x86.cpp',
-            'jit/x86/MacroAssembler-x86.cpp',
-            'jit/x86/Trampoline-x86.cpp',
-        ]
-elif CONFIG['JS_CODEGEN_ARM']:
-    LOpcodesGenerated.inputs += ['jit/arm/LIR-arm.h']
-    UNIFIED_SOURCES += [
-        'jit/arm/Architecture-arm.cpp',
-        'jit/arm/Assembler-arm.cpp',
-        'jit/arm/Bailouts-arm.cpp',
-        'jit/arm/CodeGenerator-arm.cpp',
-        'jit/arm/disasm/Constants-arm.cpp',
-        'jit/arm/disasm/Disasm-arm.cpp',
-        'jit/arm/Lowering-arm.cpp',
-        'jit/arm/MacroAssembler-arm.cpp',
-        'jit/arm/MoveEmitter-arm.cpp',
-        'jit/arm/Trampoline-arm.cpp',
-    ]
-    if CONFIG['JS_SIMULATOR_ARM']:
-        UNIFIED_SOURCES += [
-            'jit/arm/Simulator-arm.cpp'
-        ]
-    elif CONFIG['OS_ARCH'] == 'Darwin':
-        SOURCES += [
-            'jit/arm/llvm-compiler-rt/arm/aeabi_idivmod.S',
-            'jit/arm/llvm-compiler-rt/arm/aeabi_uidivmod.S',
-        ]
-elif CONFIG['JS_CODEGEN_ARM64']:
-    LOpcodesGenerated.inputs += ['jit/arm64/LIR-arm64.h']
-    UNIFIED_SOURCES += [
-        'jit/arm64/Architecture-arm64.cpp',
-        'jit/arm64/Assembler-arm64.cpp',
-        'jit/arm64/Bailouts-arm64.cpp',
-        'jit/arm64/CodeGenerator-arm64.cpp',
-        'jit/arm64/Lowering-arm64.cpp',
-        'jit/arm64/MacroAssembler-arm64.cpp',
-        'jit/arm64/MoveEmitter-arm64.cpp',
-        'jit/arm64/Trampoline-arm64.cpp',
-        'jit/arm64/vixl/Assembler-vixl.cpp',
-        'jit/arm64/vixl/Cpu-vixl.cpp',
-        'jit/arm64/vixl/Decoder-vixl.cpp',
-        'jit/arm64/vixl/Disasm-vixl.cpp',
-        'jit/arm64/vixl/Instructions-vixl.cpp',
-        'jit/arm64/vixl/Instrument-vixl.cpp',
-        'jit/arm64/vixl/MacroAssembler-vixl.cpp',
-        'jit/arm64/vixl/MozAssembler-vixl.cpp',
-        'jit/arm64/vixl/MozInstructions-vixl.cpp',
-        'jit/arm64/vixl/Utils-vixl.cpp'
-    ]
-    if CONFIG['JS_SIMULATOR_ARM64']:
-        UNIFIED_SOURCES += [
-            'jit/arm64/vixl/Debugger-vixl.cpp',
-            'jit/arm64/vixl/Logic-vixl.cpp',
-            'jit/arm64/vixl/MozSimulator-vixl.cpp',
-            'jit/arm64/vixl/Simulator-vixl.cpp'
-        ]
-elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']:
-    LOpcodesGenerated.inputs += ['jit/mips-shared/LIR-mips-shared.h']
-    UNIFIED_SOURCES += [
-        'jit/mips-shared/Architecture-mips-shared.cpp',
-        'jit/mips-shared/Assembler-mips-shared.cpp',
-        'jit/mips-shared/Bailouts-mips-shared.cpp',
-        'jit/mips-shared/CodeGenerator-mips-shared.cpp',
-        'jit/mips-shared/Lowering-mips-shared.cpp',
-        'jit/mips-shared/MacroAssembler-mips-shared.cpp',
-        'jit/mips-shared/MoveEmitter-mips-shared.cpp',
-    ]
-    if CONFIG['JS_CODEGEN_MIPS32']:
-        LOpcodesGenerated.inputs += ['jit/mips32/LIR-mips32.h']
-        UNIFIED_SOURCES += [
-            'jit/mips32/Architecture-mips32.cpp',
-            'jit/mips32/Assembler-mips32.cpp',
-            'jit/mips32/Bailouts-mips32.cpp',
-            'jit/mips32/CodeGenerator-mips32.cpp',
-            'jit/mips32/Lowering-mips32.cpp',
-            'jit/mips32/MacroAssembler-mips32.cpp',
-            'jit/mips32/MoveEmitter-mips32.cpp',
-            'jit/mips32/Trampoline-mips32.cpp',
-        ]
-        if CONFIG['JS_SIMULATOR_MIPS32']:
-            UNIFIED_SOURCES += [
-                'jit/mips32/Simulator-mips32.cpp'
-            ]
-    elif CONFIG['JS_CODEGEN_MIPS64']:
-        LOpcodesGenerated.inputs += ['jit/mips64/LIR-mips64.h']
-        UNIFIED_SOURCES += [
-            'jit/mips64/Architecture-mips64.cpp',
-            'jit/mips64/Assembler-mips64.cpp',
-            'jit/mips64/Bailouts-mips64.cpp',
-            'jit/mips64/CodeGenerator-mips64.cpp',
-            'jit/mips64/Lowering-mips64.cpp',
-            'jit/mips64/MacroAssembler-mips64.cpp',
-            'jit/mips64/MoveEmitter-mips64.cpp',
-            'jit/mips64/Trampoline-mips64.cpp',
-        ]
-        if CONFIG['JS_SIMULATOR_MIPS64']:
-            UNIFIED_SOURCES += [
-                'jit/mips64/Simulator-mips64.cpp'
-            ]
-
 if CONFIG['OS_ARCH'] == 'WINNT':
     UNIFIED_SOURCES += [
         'threading/windows/CpuCount.cpp',
         'threading/windows/Thread.cpp',
     ]
 else:
     UNIFIED_SOURCES += [
         'threading/posix/CpuCount.cpp',
@@ -686,16 +469,17 @@ GENERATED_FILES += ['frontend/ReservedWo
 ReservedWordsGenerated = GENERATED_FILES['frontend/ReservedWordsGenerated.h']
 ReservedWordsGenerated.script = 'frontend/GenerateReservedWords.py'
 ReservedWordsGenerated.inputs += [
     'frontend/ReservedWords.h'
 ]
 
 DIRS += [
     'build',
+    'jit',
 ]
 
 FINAL_LIBRARY = 'js'
 
 if CONFIG['ENABLE_WASM_CRANELIFT']:
     DIRS += ['rust']
     UNIFIED_SOURCES += [
         'wasm/WasmCraneliftCompile.cpp',