Revert "Issue #1676 - Follow-up: Put js/src (including vm), jit, and wasm back into unified sources."

This reverts commit a8a397fbceb78d2338e214e583be4f02797637d1.
This commit is contained in:
Moonchild 2022-09-05 13:10:47 +00:00 • committed by roytam1
commit 7bb8046c17
4 changed files with 27 additions and 38 deletions

View file

@ -11,7 +11,7 @@ FINAL_LIBRARY = "js"
# Includes should be relative to parent path # Includes should be relative to parent path
LOCAL_INCLUDES += ["!..", ".."] LOCAL_INCLUDES += ["!..", ".."]
UNIFIED_SOURCES += [ SOURCES += [
'AliasAnalysis.cpp', 'AliasAnalysis.cpp',
'AliasAnalysisShared.cpp', 'AliasAnalysisShared.cpp',
'AlignmentMaskAnalysis.cpp', 'AlignmentMaskAnalysis.cpp',
@ -83,14 +83,14 @@ UNIFIED_SOURCES += [
] ]
if CONFIG['MOZ_DEBUG']: if CONFIG['MOZ_DEBUG']:
UNIFIED_SOURCES += ['Disassembler.cpp'] SOURCES += ['Disassembler.cpp']
if not CONFIG['ENABLE_ION']: if not CONFIG['ENABLE_ION']:
UNIFIED_SOURCES += [ SOURCES += [
'none/Trampoline-none.cpp' 'none/Trampoline-none.cpp'
] ]
elif CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']: elif CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']:
UNIFIED_SOURCES += [ SOURCES += [
'x86-shared/Architecture-x86-shared.cpp', 'x86-shared/Architecture-x86-shared.cpp',
'x86-shared/Assembler-x86-shared.cpp', 'x86-shared/Assembler-x86-shared.cpp',
'x86-shared/AssemblerBuffer-x86-shared.cpp', 'x86-shared/AssemblerBuffer-x86-shared.cpp',
@ -101,11 +101,11 @@ elif CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']:
'x86-shared/MacroAssembler-x86-shared.cpp', 'x86-shared/MacroAssembler-x86-shared.cpp',
'x86-shared/MoveEmitter-x86-shared.cpp', 'x86-shared/MoveEmitter-x86-shared.cpp',
] ]
UNIFIED_SOURCES += [ SOURCES += [
'x86-shared/Disassembler-x86-shared.cpp', # using namespace js::jit::X86Encoding; 'x86-shared/Disassembler-x86-shared.cpp', # using namespace js::jit::X86Encoding;
] ]
if CONFIG['JS_CODEGEN_X64']: if CONFIG['JS_CODEGEN_X64']:
UNIFIED_SOURCES += [ SOURCES += [
'x64/Assembler-x64.cpp', 'x64/Assembler-x64.cpp',
'x64/Bailouts-x64.cpp', 'x64/Bailouts-x64.cpp',
'x64/BaselineCompiler-x64.cpp', 'x64/BaselineCompiler-x64.cpp',
@ -117,7 +117,7 @@ elif CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']:
'x64/Trampoline-x64.cpp', 'x64/Trampoline-x64.cpp',
] ]
else: else:
UNIFIED_SOURCES += [ SOURCES += [
'x86/Assembler-x86.cpp', 'x86/Assembler-x86.cpp',
'x86/Bailouts-x86.cpp', 'x86/Bailouts-x86.cpp',
'x86/BaselineCompiler-x86.cpp', 'x86/BaselineCompiler-x86.cpp',
@ -129,7 +129,7 @@ elif CONFIG['JS_CODEGEN_X86'] or CONFIG['JS_CODEGEN_X64']:
'x86/Trampoline-x86.cpp', 'x86/Trampoline-x86.cpp',
] ]
elif CONFIG['JS_CODEGEN_ARM']: elif CONFIG['JS_CODEGEN_ARM']:
UNIFIED_SOURCES += [ SOURCES += [
'arm/Architecture-arm.cpp', 'arm/Architecture-arm.cpp',
'arm/Assembler-arm.cpp', 'arm/Assembler-arm.cpp',
'arm/Bailouts-arm.cpp', 'arm/Bailouts-arm.cpp',
@ -145,16 +145,16 @@ elif CONFIG['JS_CODEGEN_ARM']:
'arm/Trampoline-arm.cpp', 'arm/Trampoline-arm.cpp',
] ]
if CONFIG['JS_SIMULATOR_ARM']: if CONFIG['JS_SIMULATOR_ARM']:
UNIFIED_SOURCES += [ SOURCES += [
'arm/Simulator-arm.cpp' 'arm/Simulator-arm.cpp'
] ]
elif CONFIG['OS_ARCH'] == 'Darwin': elif CONFIG['OS_ARCH'] == 'Darwin':
UNIFIED_SOURCES += [ SOURCES += [
'arm/llvm-compiler-rt/arm/aeabi_idivmod.S', 'arm/llvm-compiler-rt/arm/aeabi_idivmod.S',
'arm/llvm-compiler-rt/arm/aeabi_uidivmod.S', 'arm/llvm-compiler-rt/arm/aeabi_uidivmod.S',
] ]
elif CONFIG['JS_CODEGEN_ARM64']: elif CONFIG['JS_CODEGEN_ARM64']:
UNIFIED_SOURCES += [ SOURCES += [
'arm64/Architecture-arm64.cpp', 'arm64/Architecture-arm64.cpp',
'arm64/Assembler-arm64.cpp', 'arm64/Assembler-arm64.cpp',
'arm64/Bailouts-arm64.cpp', 'arm64/Bailouts-arm64.cpp',
@ -177,14 +177,14 @@ elif CONFIG['JS_CODEGEN_ARM64']:
'arm64/vixl/Utils-vixl.cpp' 'arm64/vixl/Utils-vixl.cpp'
] ]
if CONFIG['JS_SIMULATOR_ARM64']: if CONFIG['JS_SIMULATOR_ARM64']:
UNIFIED_SOURCES += [ SOURCES += [
'arm64/vixl/Debugger-vixl.cpp', 'arm64/vixl/Debugger-vixl.cpp',
'arm64/vixl/Logic-vixl.cpp', 'arm64/vixl/Logic-vixl.cpp',
'arm64/vixl/MozSimulator-vixl.cpp', 'arm64/vixl/MozSimulator-vixl.cpp',
'arm64/vixl/Simulator-vixl.cpp' 'arm64/vixl/Simulator-vixl.cpp'
] ]
elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']: elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']:
UNIFIED_SOURCES += [ SOURCES += [
'mips-shared/Architecture-mips-shared.cpp', 'mips-shared/Architecture-mips-shared.cpp',
'mips-shared/Assembler-mips-shared.cpp', 'mips-shared/Assembler-mips-shared.cpp',
'mips-shared/Bailouts-mips-shared.cpp', 'mips-shared/Bailouts-mips-shared.cpp',
@ -196,7 +196,7 @@ elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']:
'mips-shared/MoveEmitter-mips-shared.cpp', 'mips-shared/MoveEmitter-mips-shared.cpp',
] ]
if CONFIG['JS_CODEGEN_MIPS32']: if CONFIG['JS_CODEGEN_MIPS32']:
UNIFIED_SOURCES += [ SOURCES += [
'mips32/Architecture-mips32.cpp', 'mips32/Architecture-mips32.cpp',
'mips32/Assembler-mips32.cpp', 'mips32/Assembler-mips32.cpp',
'mips32/Bailouts-mips32.cpp', 'mips32/Bailouts-mips32.cpp',
@ -210,11 +210,11 @@ elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']:
'mips32/Trampoline-mips32.cpp', 'mips32/Trampoline-mips32.cpp',
] ]
if CONFIG['JS_SIMULATOR_MIPS32']: if CONFIG['JS_SIMULATOR_MIPS32']:
UNIFIED_SOURCES += [ SOURCES += [
'mips32/Simulator-mips32.cpp' 'mips32/Simulator-mips32.cpp'
] ]
elif CONFIG['JS_CODEGEN_MIPS64']: elif CONFIG['JS_CODEGEN_MIPS64']:
UNIFIED_SOURCES += [ SOURCES += [
'mips64/Architecture-mips64.cpp', 'mips64/Architecture-mips64.cpp',
'mips64/Assembler-mips64.cpp', 'mips64/Assembler-mips64.cpp',
'mips64/Bailouts-mips64.cpp', 'mips64/Bailouts-mips64.cpp',
@ -228,6 +228,6 @@ elif CONFIG['JS_CODEGEN_MIPS32'] or CONFIG['JS_CODEGEN_MIPS64']:
'mips64/Trampoline-mips64.cpp', 'mips64/Trampoline-mips64.cpp',
] ]
if CONFIG['JS_SIMULATOR_MIPS64']: if CONFIG['JS_SIMULATOR_MIPS64']:
UNIFIED_SOURCES += [ SOURCES += [
'mips64/Simulator-mips64.cpp' 'mips64/Simulator-mips64.cpp'
] ]

View file

@ -3,8 +3,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # 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/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
FILES_PER_UNIFIED_FILE = 6
# Also set in shell/moz.build # Also set in shell/moz.build
DEFINES['ENABLE_SHARED_ARRAY_BUFFER'] = True DEFINES['ENABLE_SHARED_ARRAY_BUFFER'] = True

View file

@ -131,18 +131,22 @@ if not CONFIG['JS_DISABLE_SHELL']:
if CONFIG['MOZ_VTUNE']: if CONFIG['MOZ_VTUNE']:
DIRS += ['vtune'] DIRS += ['vtune']
UNIFIED_SOURCES += [ SOURCES += [
'jsalloc.cpp', 'jsalloc.cpp',
'jsapi.cpp', 'jsapi.cpp',
'jsarray.cpp',
'jsatom.cpp',
'jsbool.cpp', 'jsbool.cpp',
'jscntxt.cpp', 'jscntxt.cpp',
'jscompartment.cpp', 'jscompartment.cpp',
'jsdate.cpp', 'jsdate.cpp',
'jsdtoa.cpp',
'jsexn.cpp', 'jsexn.cpp',
'jsfriendapi.cpp', 'jsfriendapi.cpp',
'jsfun.cpp', 'jsfun.cpp',
'jsgc.cpp', 'jsgc.cpp',
'jsiter.cpp', 'jsiter.cpp',
'jsmath.cpp',
'jsnativestack.cpp', 'jsnativestack.cpp',
'jsnum.cpp', 'jsnum.cpp',
'jsobj.cpp', 'jsobj.cpp',
@ -152,16 +156,8 @@ UNIFIED_SOURCES += [
'jspropertytree.cpp', 'jspropertytree.cpp',
'jsscript.cpp', 'jsscript.cpp',
'jsstr.cpp', 'jsstr.cpp',
'jsweakmap.cpp',
]
# Can't be built unified
SOURCES += [
'jsarray.cpp',
'jsatom.cpp',
'jsdtoa.cpp',
'jsmath.cpp',
'jsutil.cpp', 'jsutil.cpp',
'jsweakmap.cpp',
] ]
# Suppress warnings in third-party code. # Suppress warnings in third-party code.
@ -169,7 +165,7 @@ SOURCES += [
if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']: if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']:
SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough'] SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough']
UNIFIED_SOURCES += [ SOURCES += [
'vm/ArgumentsObject.cpp', 'vm/ArgumentsObject.cpp',
'vm/ArrayBufferObject.cpp', 'vm/ArrayBufferObject.cpp',
'vm/AsyncFunction.cpp', 'vm/AsyncFunction.cpp',
@ -189,6 +185,7 @@ UNIFIED_SOURCES += [
'vm/GlobalObject.cpp', 'vm/GlobalObject.cpp',
'vm/HelperThreads.cpp', 'vm/HelperThreads.cpp',
'vm/Id.cpp', 'vm/Id.cpp',
'vm/Initialization.cpp',
'vm/Interpreter.cpp', 'vm/Interpreter.cpp',
'vm/JSONParser.cpp', 'vm/JSONParser.cpp',
'vm/MemoryMetrics.cpp', 'vm/MemoryMetrics.cpp',
@ -230,18 +227,12 @@ UNIFIED_SOURCES += [
'vm/Xdr.cpp', 'vm/Xdr.cpp',
] ]
# Can't be built unified
SOURCES += [
'vm/Initialization.cpp',
]
if CONFIG['JS_POSIX_NSPR']: if CONFIG['JS_POSIX_NSPR']:
UNIFIED_SOURCES += [ SOURCES += [
'vm/PosixNSPR.cpp', 'vm/PosixNSPR.cpp',
] ]
if CONFIG['ENABLE_TRACE_LOGGING']: if CONFIG['ENABLE_TRACE_LOGGING']:
# Can't be built unified
SOURCES += [ SOURCES += [
'vm/TraceLogging.cpp', 'vm/TraceLogging.cpp',
'vm/TraceLoggingGraph.cpp', 'vm/TraceLoggingGraph.cpp',

View file

@ -11,7 +11,7 @@ FINAL_LIBRARY = "js"
# Includes should be relative to parent path # Includes should be relative to parent path
LOCAL_INCLUDES += ["!..", ".."] LOCAL_INCLUDES += ["!..", ".."]
UNIFIED_SOURCES += [ SOURCES += [
'AsmJS.cpp', 'AsmJS.cpp',
'WasmBaselineCompile.cpp', 'WasmBaselineCompile.cpp',
'WasmBinaryFormat.cpp', 'WasmBinaryFormat.cpp',