summaryrefslogtreecommitdiff
path: root/js/src/moz.build
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-11-03 16:57:05 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-11-03 16:57:05 -0500
commit24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374 (patch)
tree7e1b43c4deeb353950e9a83f46bfa0e028304218 /js/src/moz.build
parentec13658ab9384260fe4e05ab14c4a73ef9a2f5a5 (diff)
downloaduxp-24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374.tar.gz
Issue #1676 - Part 4: Split builtin sources out of js/src/moz.build
Diffstat (limited to 'js/src/moz.build')
-rw-r--r--js/src/moz.build64
1 files changed, 5 insertions, 59 deletions
diff --git a/js/src/moz.build b/js/src/moz.build
index 25773b3b2e..67b25470c0 100644
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -9,6 +9,10 @@ include('js-testing.mozbuild')
FILES_PER_UNIFIED_FILE = 6
+DIRS += [
+ 'builtin',
+]
+
if CONFIG['JS_BUNDLED_EDITLINE']:
DIRS += ['editline']
@@ -112,22 +116,6 @@ EXPORTS.js += [
]
SOURCES += [
- 'builtin/AtomicsObject.cpp',
- 'builtin/Eval.cpp',
- 'builtin/Intl.cpp',
- 'builtin/MapObject.cpp',
- 'builtin/ModuleObject.cpp',
- 'builtin/Object.cpp',
- 'builtin/Profilers.cpp',
- 'builtin/Promise.cpp',
- 'builtin/Reflect.cpp',
- 'builtin/ReflectParse.cpp',
- 'builtin/SIMD.cpp',
- 'builtin/SymbolObject.cpp',
- 'builtin/TestingFunctions.cpp',
- 'builtin/TypedObject.cpp',
- 'builtin/WeakMapObject.cpp',
- 'builtin/WeakSetObject.cpp',
'devtools/sharkctl.cpp',
'ds/LifoAlloc.cpp',
'ds/MemoryProtectionExceptionHandler.cpp',
@@ -342,8 +330,6 @@ SOURCES += [
# jsarray.cpp and jsatom.cpp cannot be built in unified mode because
# xpcshell is broken during packaging when compiled with gcc-4.8.2
-# builtin/RegExp.cpp cannot be built in unified mode because it is built
-# without PGO
# frontend/Parser.cpp cannot be built in unified mode because of explicit
# template instantiations.
# jsdtoa.cpp cannot be built in unified mode because we want to suppress
@@ -356,7 +342,6 @@ SOURCES += [
# instantiations may or may not be needed depending on what it gets bundled
# with.
SOURCES += [
- 'builtin/RegExp.cpp',
'frontend/Parser.cpp',
'gc/StoreBuffer.cpp',
'jsarray.cpp',
@@ -616,9 +601,7 @@ USE_LIBS += [
if CONFIG['_MSC_VER']:
- if CONFIG['CPU_ARCH'] == 'x86':
- SOURCES['builtin/RegExp.cpp'].no_pgo = True # Bug 772303
- elif CONFIG['CPU_ARCH'] == 'x86_64' and CONFIG['JS_HAS_CTYPES']:
+ if CONFIG['CPU_ARCH'] == 'x86_64' and CONFIG['JS_HAS_CTYPES']:
SOURCES['ctypes/CTypes.cpp'].no_pgo = True # Bug 810661
if CONFIG['OS_ARCH'] not in ('WINNT'):
@@ -644,43 +627,6 @@ NO_EXPAND_LIBS = True
DIST_INSTALL = True
-# Prepare self-hosted JS code for embedding
-GENERATED_FILES += [('selfhosted.out.h', 'selfhosted.js')]
-selfhosted = GENERATED_FILES[('selfhosted.out.h', 'selfhosted.js')]
-selfhosted.script = 'builtin/embedjs.py:generate_selfhosted'
-selfhosted.inputs = [
- 'js.msg',
- 'builtin/TypedObjectConstants.h',
- 'builtin/SelfHostingDefines.h',
- 'builtin/Utilities.js',
- 'builtin/Array.js',
- 'builtin/AsyncIteration.js',
- 'builtin/Classes.js',
- 'builtin/Date.js',
- 'builtin/Error.js',
- 'builtin/Function.js',
- 'builtin/Generator.js',
- 'builtin/Intl.js',
- 'builtin/IntlData.js',
- 'builtin/Iterator.js',
- 'builtin/Map.js',
- 'builtin/Module.js',
- 'builtin/Number.js',
- 'builtin/Object.js',
- 'builtin/Promise.js',
- 'builtin/Reflect.js',
- 'builtin/RegExp.js',
- 'builtin/RegExpGlobalReplaceOpt.h.js',
- 'builtin/RegExpLocalReplaceOpt.h.js',
- 'builtin/String.js',
- 'builtin/Set.js',
- 'builtin/Sorting.js',
- 'builtin/TypedArray.js',
- 'builtin/TypedObject.js',
- 'builtin/WeakMap.js',
- 'builtin/WeakSet.js'
-]
-
# Suppress warnings in third-party code.
# We are keeping this in the main moz.build because it is file specific
if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']: