From 8a16aca1fa6c2e3c9043a43e26e6a9d1fd6667e0 Mon Sep 17 00:00:00 2001 From: Joel Maher Date: Fri, 24 Mar 2017 09:50:49 -0400 Subject: [PATCH] Bug 1333493 - add BUG_COMPONENT to js/* files. r=bbouvier MozReview-Commit-ID: BjUeavdJkFP --- js/ductwork/debugger/moz.build | 3 +++ js/moz.build | 13 +++++++++++++ js/src/moz.build | 8 -------- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 js/moz.build diff --git a/js/ductwork/debugger/moz.build b/js/ductwork/debugger/moz.build index c1140db35660..0fb85f8b86ef 100644 --- a/js/ductwork/debugger/moz.build +++ b/js/ductwork/debugger/moz.build @@ -4,6 +4,9 @@ # 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/. +with Files("**"): + BUG_COMPONENT = ("Core", "JavaScript Engine") + XPIDL_SOURCES += [ 'IJSDebugger.idl', ] diff --git a/js/moz.build b/js/moz.build new file mode 100644 index 000000000000..d1a4acb2d339 --- /dev/null +++ b/js/moz.build @@ -0,0 +1,13 @@ +component_engine = ('Core', 'JavaScript Engine') +component_gc = ('Core', 'JavaScript: GC') +component_jit = ('Core', 'JavaScript Engine: JIT') + +with Files("**"): + BUG_COMPONENT = component_engine + +for header in ('GCAnnotations.h', 'GCAPI.h', 'HeapAPI.h', 'RootingAPI.h', 'SliceBudget.h', 'SweepingAPI.h', 'TraceKind.h', 'TracingAPI.h', 'WeakMapPtr.h', 'GCHashTable.h', 'GCPolicyAPI.h', 'GCVariant.h', 'GCVector.h'): + with Files('public/' + header): + BUG_COMPONENT = component_gc + +with Files('public/TrackedOptimizationInfo.h'): + BUG_COMPONENT = component_jit diff --git a/js/src/moz.build b/js/src/moz.build index 32459181050e..e88c5222bb63 100644 --- a/js/src/moz.build +++ b/js/src/moz.build @@ -13,8 +13,6 @@ component_stl = ('Core', 'JavaScript: Standard Library') FILES_PER_UNIFIED_FILE = 6 -with Files('../public/**'): - BUG_COMPONENT = component_engine with Files('*'): BUG_COMPONENT = component_engine @@ -33,9 +31,6 @@ with Files('jit/**'): for gcfile in ['jsgc*', 'devtools/rootAnalysis', 'devtools/gc-ubench', 'devtools/gctrace']: with Files(gcfile): BUG_COMPONENT = component_gc -for header in ('GCAnnotations.h', 'GCAPI.h', 'HeapAPI.h', 'RootingAPI.h', 'SliceBudget.h', 'SweepingAPI.h', 'TraceKind.h', 'TracingAPI.h', 'WeakMapPtr.h'): - with Files('../public/' + header): - BUG_COMPONENT = component_gc for stlfile in ['jsarray.*', 'jsbool*', 'jsdate.*', 'jsnum.*', 'json.*', 'jsstr.*']: with Files(stlfile): @@ -46,9 +41,6 @@ with Files('builtin/Intl*'): with Files('builtin/make_intl_data.py'): BUG_COMPONENT = component_intl -with Files('../public/TrackedOptimizationInfo.h'): - BUG_COMPONENT = component_jit - if CONFIG['JS_BUNDLED_EDITLINE']: DIRS += ['editline']