Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No more js_src, it is now "spidermonkey"

  • Loading branch information...
commit f8b175e93b400c82ff1760c9bf9c2f9f5c97b214 1 parent d73ee59
@jhs jhs authored
Showing with 2 additions and 51,298 deletions.
  1. +2 −3 Documentation/getting_spidermonkey.txt.md
  2. +0 −705 dependencies/js_src/Makefile.in
  3. +0 −470 dependencies/js_src/Makefile.ref
  4. +0 −54 dependencies/js_src/README.html
  5. +0 −3  dependencies/js_src/SpiderMonkey.rsp
  6. +0 −19 dependencies/js_src/Y.js
  7. +0 −13 dependencies/js_src/aclocal.m4
  8. +0 −110 dependencies/js_src/analysis-tests/Makefile.in
  9. +0 −11 dependencies/js_src/analysis-tests/green-accessred.cpp
  10. +0 −12 dependencies/js_src/analysis-tests/green-callred.cpp
  11. +0 −8 dependencies/js_src/analysis-tests/green-callredptr.cpp
  12. +0 −14 dependencies/js_src/analysis-tests/green-tored-badpath.cpp
  13. +0 −12 dependencies/js_src/analysis-tests/green-tored.cpp
  14. +0 −12 dependencies/js_src/analysis-tests/green-toredptr.cpp
  15. +0 −5 dependencies/js_src/analysis-tests/misdeclared-red-funcptr.cpp
  16. +0 −5 dependencies/js_src/analysis-tests/misdeclared-red-funcptr2.cpp
  17. +0 −11 dependencies/js_src/analysis-tests/red-accessred.cpp
  18. +0 −8 dependencies/js_src/analysis-tests/red-callgreen.cpp
  19. +0 −8 dependencies/js_src/analysis-tests/red-callred.cpp
  20. +0 −11 dependencies/js_src/analysis-tests/red-togreenptr-arg.cpp
  21. +0 −15 dependencies/js_src/analysis-tests/red-togreenptr-field.cpp
  22. +0 −8 dependencies/js_src/analysis-tests/red-togreenptr-initializer-array.cpp
  23. +0 −7 dependencies/js_src/analysis-tests/red-togreenptr-initializer-cast.cpp
  24. +0 −18 dependencies/js_src/analysis-tests/red-togreenptr-initializer-nested.cpp
  25. +0 −12 dependencies/js_src/analysis-tests/red-togreenptr-initializer-struct.cpp
  26. +0 −7 dependencies/js_src/analysis-tests/red-togreenptr-initializer.cpp
  27. +0 −9 dependencies/js_src/analysis-tests/red-togreenptr-return.cpp
  28. +0 −10 dependencies/js_src/analysis-tests/red-togreenptr.cpp
  29. +0 −5 dependencies/js_src/bench.sh
  30. +0 −202 dependencies/js_src/build/autoconf/acoutput-fast.pl
  31. +0 −65 dependencies/js_src/build/autoconf/acwinpaths.m4
  32. +0 −154 dependencies/js_src/build/autoconf/altoptions.m4
  33. +0 −1,537 dependencies/js_src/build/autoconf/config.guess
  34. +0 −1,702 dependencies/js_src/build/autoconf/config.sub
  35. +0 −119 dependencies/js_src/build/autoconf/install-sh
  36. +0 −322 dependencies/js_src/build/autoconf/make-makefile
  37. +0 −101 dependencies/js_src/build/autoconf/match-dir.sh
  38. +0 −136 dependencies/js_src/build/autoconf/moznbytetype.m4
  39. +0 −76 dependencies/js_src/build/autoconf/mozprog.m4
  40. +0 −101 dependencies/js_src/build/autoconf/nspr.m4
  41. +0 −59 dependencies/js_src/build/autoconf/pkg.m4
  42. +0 −75 dependencies/js_src/build/cygwin-wrapper
  43. +0 −111 dependencies/js_src/build/hcc
  44. +0 −155 dependencies/js_src/build/hcpp
  45. +0 −16 dependencies/js_src/build/msys-perl-wrapper
  46. +0 −171 dependencies/js_src/build/unix/mddepend.pl
  47. +0 −63 dependencies/js_src/build/unix/uniq.pl
  48. +0 −40 dependencies/js_src/build/win32/pgomerge.py
  49. +0 −91 dependencies/js_src/builtins.tbl
  50. +0 −193 dependencies/js_src/config.mk
  51. +0 −109 dependencies/js_src/config/Makefile.in
  52. +0 −232 dependencies/js_src/config/Moz/Milestone.pm
  53. +0 −345 dependencies/js_src/config/autoconf.mk.in
  54. +0 −107 dependencies/js_src/config/check-sync-dirs.py
  55. +0 −14 dependencies/js_src/config/check-sync-exceptions
  56. +0 −794 dependencies/js_src/config/config.mk
  57. +0 −66 dependencies/js_src/config/fastcwd.pl
  58. +0 −2  dependencies/js_src/config/gcc_hidden.h
  59. +0 −53 dependencies/js_src/config/insure.mk
  60. +0 −59 dependencies/js_src/config/make-system-wrappers.pl
  61. +0 −112 dependencies/js_src/config/milestone.pl
  62. +0 −13 dependencies/js_src/config/milestone.txt
  63. +0 −83 dependencies/js_src/config/mkdepend/Makefile.in
  64. +0 −233 dependencies/js_src/config/mkdepend/cppsetup.c
  65. +0 −184 dependencies/js_src/config/mkdepend/def.h
  66. +0 −551 dependencies/js_src/config/mkdepend/ifparser.c
  67. +0 −83 dependencies/js_src/config/mkdepend/ifparser.h
  68. +0 −733 dependencies/js_src/config/mkdepend/imakemdep.h
  69. +0 −337 dependencies/js_src/config/mkdepend/include.c
  70. +0 −860 dependencies/js_src/config/mkdepend/main.c
  71. +0 −382 dependencies/js_src/config/mkdepend/mkdepend.man
  72. +0 −686 dependencies/js_src/config/mkdepend/parse.c
  73. +0 −124 dependencies/js_src/config/mkdepend/pr.c
  74. +0 −50 dependencies/js_src/config/nfspwd.pl
  75. +0 −487 dependencies/js_src/config/nsinstall.c
  76. +0 −17 dependencies/js_src/config/nsinstall.exe.manifest
  77. +0 −155 dependencies/js_src/config/nsinstall.py
  78. +0 −711 dependencies/js_src/config/nsinstall_win.c
  79. +0 −247 dependencies/js_src/config/pathsub.c
  80. +0 −74 dependencies/js_src/config/pathsub.h
  81. +0 −671 dependencies/js_src/config/preprocessor.pl
  82. +0 −2,292 dependencies/js_src/config/rules.mk
  83. +0 −1  dependencies/js_src/config/solaris_ia32.map
  84. +0 −21 dependencies/js_src/config/static-checking-config.mk
  85. +0 −108 dependencies/js_src/config/static-checking.js
  86. +0 −61 dependencies/js_src/config/string-format.js
  87. +0 −1,026 dependencies/js_src/config/system-headers
  88. +0 −85 dependencies/js_src/config/version.mk
  89. +0 −436 dependencies/js_src/config/version_win.pl
  90. +0 −5,236 dependencies/js_src/configure.in
  91. +0 −3,331 dependencies/js_src/dtoa.c
  92. +0 −55 dependencies/js_src/editline/Makefile.in
  93. +0 −143 dependencies/js_src/editline/Makefile.ref
  94. +0 −83 dependencies/js_src/editline/README
  95. +0 −175 dependencies/js_src/editline/editline.3
  96. +0 −1,371 dependencies/js_src/editline/editline.c
  97. +0 −135 dependencies/js_src/editline/editline.h
  98. +0 −182 dependencies/js_src/editline/sysunix.c
  99. +0 −82 dependencies/js_src/editline/unix.h
  100. +0 −69 dependencies/js_src/find-child.py
  101. +0 −404 dependencies/js_src/imacro_asm.js.in
  102. +0 −987 dependencies/js_src/imacros.c.out
  103. +0 −724 dependencies/js_src/imacros.jsasm
  104. +0 −73 dependencies/js_src/javascript-trace.d
  105. +0 −97 dependencies/js_src/jitstats.tbl
  106. +0 −87 dependencies/js_src/js-config.h.in
  107. +0 −111 dependencies/js_src/js-config.in
  108. BIN  dependencies/js_src/js.mdp
  109. +0 −329 dependencies/js_src/js.msg
  110. +0 −81 dependencies/js_src/jsapi-tests/Makefile.in
  111. +0 −160 dependencies/js_src/jsapi-tests/README
  112. +0 −20 dependencies/js_src/jsapi-tests/selfTest.cpp
  113. +0 −26 dependencies/js_src/jsapi-tests/testContexts.cpp
  114. +0 −25 dependencies/js_src/jsapi-tests/testDebugger.cpp
  115. +0 −51 dependencies/js_src/jsapi-tests/testDefineGetterSetterNonEnumerable.cpp
  116. +0 −45 dependencies/js_src/jsapi-tests/testExtendedEq.cpp
  117. +0 −13 dependencies/js_src/jsapi-tests/testIntString.cpp
  118. +0 −89 dependencies/js_src/jsapi-tests/testIsAboutToBeFinalized.cpp
  119. +0 −29 dependencies/js_src/jsapi-tests/testLookup.cpp
  120. +0 −31 dependencies/js_src/jsapi-tests/testPropCache.cpp
  121. +0 −21 dependencies/js_src/jsapi-tests/testSameValue.cpp
  122. +0 −10 dependencies/js_src/jsapi-tests/testSeal.cpp
  123. +0 −62 dependencies/js_src/jsapi-tests/testSetPropertyWithNativeGetterStubSetter.cpp
  124. +0 −70 dependencies/js_src/jsapi-tests/testTrap.cpp
  125. +0 −126 dependencies/js_src/jsapi-tests/testXDR.cpp
  126. +0 −83 dependencies/js_src/jsapi-tests/tests.cpp
  127. +0 −238 dependencies/js_src/jsapi-tests/tests.h
  128. +0 −5,758 dependencies/js_src/jsapi.cpp
  129. +0 −2,814 dependencies/js_src/jsapi.h
  130. +0 −450 dependencies/js_src/jsarena.cpp
  131. +0 −289 dependencies/js_src/jsarena.h
  132. +0 −3,611 dependencies/js_src/jsarray.cpp
  133. +0 −238 dependencies/js_src/jsarray.h
  134. +0 −1,268 dependencies/js_src/jsatom.cpp
  135. +0 −508 dependencies/js_src/jsatom.h
  136. +0 −95 dependencies/js_src/jsatominlines.h
  137. +0 −274 dependencies/js_src/jsbit.h
  138. +0 −191 dependencies/js_src/jsbool.cpp
  139. +0 −84 dependencies/js_src/jsbool.h
  140. +0 −465 dependencies/js_src/jsbuiltins.cpp
  141. +0 −582 dependencies/js_src/jsbuiltins.h
  142. +0 −139 dependencies/js_src/jsclist.h
Sorry, we could not display the entire diff because too many files (4,742) changed.
View
5 Documentation/getting_spidermonkey.txt.md
@@ -10,9 +10,8 @@ The objective (suggested by Mikeal in this project's infancy) is to pull spiderm
1. `hg clone --verbose http://hg.mozilla.org/releases/mozilla-release`
1. `hg checkout FIREFOX_6_0_RELEASE`
-1. `cd js/src`
-1. `tar cf /tmp/js_src.tar .`
-1. Move to build-couchdb/dependencies/js_src
+1. `tar cf /tmp/js.tar mfbt js/src`
+1. Move to build-couchdb/dependencies/spidermonkey
1. `rm -r *`
1. `tar xf /tmp/js_src.tar && rm /tmp/js_src.tar`
1. `git add .`
View
705 dependencies/js_src/Makefile.in
@@ -1,705 +0,0 @@
-# -*- Mode: makefile -*-
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is Mozilla Communicator client code, released
-# March 31, 1998.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1998
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either of the GNU General Public License Version 2 or later (the "GPL"),
-# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-DEPTH = .
-topsrcdir = @top_srcdir@
-srcdir = @srcdir@
-
-run_for_side_effects := $(shell echo "MAKE: $(MAKE)")
-include $(DEPTH)/config/autoconf.mk
-
-DIRS = config
-
-ifdef DEHYDRA_PATH
-DIRS += analysis-tests
-endif
-
-ifdef JS_NATIVE_EDITLINE
-DIRS += editline
-endif
-
-# editline needs to get built before the shell
-ifndef JS_DISABLE_SHELL
-DIRS += shell
-endif
-
-# FIXME: bug 515383 covers getting these working on wince
-ifndef WINCE
-ifdef ENABLE_TESTS
-DIRS += jsapi-tests
-endif
-endif
-
-ifdef ENABLE_TESTS
-DIRS += tests
-endif
-
-MODULE = js
-LIBRARY_NAME = mozjs
-STATIC_LIBRARY_NAME = js_static
-GRE_MODULE = 1
-
-LIBS = $(NSPR_LIBS)
-
-ifdef GNU_CXX
-ifdef INTEL_CXX
-# icc gets special optimize flags
-ifdef MOZ_PROFILE_GENERATE
-MODULE_OPTIMIZE_FLAGS = -O0
-else
-MODULE_OPTIMIZE_FLAGS = -O2 -ip
-#XXX: do we want different INTERP_OPTIMIZER flags here?
-endif
-else # not INTEL_CXX
-MODULE_OPTIMIZE_FLAGS = -O3 -fstrict-aliasing $(MOZ_OPTIMIZE_SIZE_TWEAK)
-# Special optimization flags for jsinterp.c
-INTERP_OPTIMIZER = -O3 -fstrict-aliasing
-endif
-else # not GNU_CXX
-ifeq ($(OS_ARCH),SunOS)
-MODULE_OPTIMIZE_FLAGS = -xO4
-endif
-ifeq ($(OS_ARCH),WINNT)
-ifdef WINCE
-# -GL is not supported on windows mobile while we are using the arm-wince-link command
-MODULE_OPTIMIZE_FLAGS = -O2
-else
-MODULE_OPTIMIZE_FLAGS = -O2 -GL
-endif
-endif
-endif
-
-
-# JavaScript must be built shared, even for static builds, as it is used by
-# other modules which are always built shared. Failure to do so results in
-# the js code getting copied into xpinstall and jsd as well as mozilla-bin,
-# and then the static data cells used for locking no longer work.
-#
-# In fact, we now build both a static and a shared library, as the
-# JS shell would like to link to the static library.
-
-FORCE_SHARED_LIB = 1
-FORCE_STATIC_LIB = 1
-
-VPATH = $(srcdir)
-
-CPPSRCS = \
- jsapi.cpp \
- jsarena.cpp \
- jsarray.cpp \
- jsatom.cpp \
- jsbool.cpp \
- jscntxt.cpp \
- jsdate.cpp \
- jsdbgapi.cpp \
- jsdhash.cpp \
- jsdtoa.cpp \
- jsemit.cpp \
- jsexn.cpp \
- jsfun.cpp \
- jsgc.cpp \
- jshash.cpp \
- jsinterp.cpp \
- jsinvoke.cpp \
- jsiter.cpp \
- jslock.cpp \
- jslog2.cpp \
- jsmath.cpp \
- jsnum.cpp \
- jsobj.cpp \
- json.cpp \
- jsopcode.cpp \
- jsparse.cpp \
- jsprf.cpp \
- jsregexp.cpp \
- jsscan.cpp \
- jsscope.cpp \
- jsscript.cpp \
- jsstr.cpp \
- jstask.cpp \
- jstypedarray.cpp \
- jsutil.cpp \
- jsxdrapi.cpp \
- jsxml.cpp \
- prmjtime.cpp \
- $(NULL)
-
-ifdef HAVE_DTRACE
-CPPSRCS += \
- jsdtracef.cpp
-endif
-
-INSTALLED_HEADERS = \
- js-config.h \
- jsautocfg.h \
- $(CURDIR)/jsautokw.h \
- js.msg \
- jsapi.h \
- jsarray.h \
- jsarena.h \
- jsatom.h \
- jsbit.h \
- jsbool.h \
- jsclist.h \
- jscntxt.h \
- jscompat.h \
- jsdate.h \
- jsdbgapi.h \
- jsdhash.h \
- jsdtoa.h \
- jsemit.h \
- jsfun.h \
- jsgc.h \
- jshash.h \
- jsinterp.h \
- jsinttypes.h \
- jsiter.h \
- jslock.h \
- jslong.h \
- jsmath.h \
- jsnum.h \
- jsobj.h \
- jsobjinlines.h \
- json.h \
- jsopcode.tbl \
- jsopcode.h \
- jsotypes.h \
- jsparse.h \
- jsprf.h \
- jsproto.tbl \
- jsprvtd.h \
- jspubtd.h \
- jsregexp.h \
- jsscan.h \
- jsscope.h \
- jsscript.h \
- jsscriptinlines.h \
- jsstaticcheck.h \
- jsstr.h \
- jstask.h \
- jstracer.h \
- jstypedarray.h \
- jstypes.h \
- jsutil.h \
- jsvector.h \
- jstl.h \
- jshashtable.h \
- jsversion.h \
- jsxdrapi.h \
- jsxml.h \
- $(NULL)
-
-ifdef ENABLE_TRACEJIT
-VPATH += $(srcdir)/nanojit
-
-INSTALLED_HEADERS += \
- jsbuiltins.h \
- Assembler.h \
- Allocator.h \
- CodeAlloc.h \
- Containers.h \
- LIR.h \
- avmplus.h \
- Fragmento.h \
- Native.h \
- Native$(NANOJIT_ARCH).h \
- njconfig.h \
- RegAlloc.h \
- nanojit.h \
- VMPI.h \
- $(NULL)
-
-CPPSRCS += \
- jstracer.cpp \
- Assembler.cpp \
- Allocator.cpp \
- CodeAlloc.cpp \
- Containers.cpp \
- Fragmento.cpp \
- LIR.cpp \
- njconfig.cpp \
- RegAlloc.cpp \
- avmplus.cpp \
- Native$(NANOJIT_ARCH).cpp \
- jsbuiltins.cpp \
- VMPI.cpp \
- $(NULL)
-
-ifdef WINCE
-# don't need -c
-AS_DASH_C_FLAG =
-ASFLAGS += -arch 6
-ASFILES += jswince.asm
-endif
-
-endif # ENABLE_TRACEJIT
-
-ifdef HAVE_DTRACE
-INSTALLED_HEADERS += \
- jsdtracef.h \
- $(CURDIR)/javascript-trace.h \
- $(NULL)
-endif
-
-ifeq (,$(filter-out WINNT WINCE,$(OS_ARCH)))
-INSTALLED_HEADERS += jscpucfg.h
-endif
-
-EXPORTS = $(INSTALLED_HEADERS)
-
-DASH_R = -r
-
-ifneq (,$(filter OS2 WINCE WINNT,$(OS_ARCH)))
-SDK_LIBRARY = $(IMPORT_LIBRARY)
-else
-SDK_LIBRARY = $(SHARED_LIBRARY)
-endif
-
-include $(topsrcdir)/config/config.mk
-
-EXTRA_DSO_LDOPTS += $(NSPR_LIBS)
-
-ifdef MOZ_MEMORY
-ifeq ($(OS_ARCH),SunOS)
-EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,jemalloc,$(DIST)/lib)
-endif
-endif
-
-ifndef BUILD_OPT
-MOCHAFILE = 1
-endif
-
-# Define keyword generator before rules.mk, see bug 323979 comment 50
-
-HOST_SIMPLE_PROGRAMS += host_jskwgen$(HOST_BIN_SUFFIX)
-GARBAGE += jsautokw.h host_jskwgen$(HOST_BIN_SUFFIX)
-
-HOST_SIMPLE_PROGRAMS += host_jsoplengen$(HOST_BIN_SUFFIX)
-GARBAGE += jsautooplen.h host_jsoplengen$(HOST_BIN_SUFFIX)
-
-USE_HOST_CXX = 1
-
-ifdef HAVE_DTRACE
-ifneq ($(OS_ARCH),Darwin)
-DTRACE_PROBE_OBJ = $(LIBRARY_NAME)-dtrace.$(OBJ_SUFFIX)
-endif
-MOZILLA_DTRACE_SRC = $(srcdir)/javascript-trace.d
-endif
-
-default::
-
-ifneq (,$(CROSS_COMPILE)$(filter-out WINNT OS2,$(OS_ARCH)))
-ifneq (,$(filter-out SYMBIAN WINCE,$(OS_ARCH)))
-# nsinstall doesn't get built until we enter config/ in the exports phase,
-# so we'll have to manually ensure it gets built here if we want to use
-# $(EXPORTS)
-export:: config/nsinstall$(HOST_BIN_SUFFIX)
-$(PUBLIC) $(SDK_PUBLIC): config/nsinstall$(HOST_BIN_SUFFIX)
-
-config/nsinstall$(HOST_BIN_SUFFIX): $(srcdir)/config/nsinstall.c $(srcdir)/config/pathsub.c
- $(MAKE) -C config/ nsinstall$(HOST_BIN_SUFFIX)
-endif
-endif
-
-include $(topsrcdir)/config/rules.mk
-
-ifdef MOZ_SYNC_BUILD_FILES
-# Because the SpiderMonkey can be distributed and built independently
-# of the Mozilla source tree, it contains its own copies of many of
-# the files used by the top-level Mozilla build process, from the
-# 'config' and 'build' subtrees.
-#
-# To make it simpler to keep the copies in sync, we follow the policy
-# that the SpiderMonkey copies must always be exact copies of those in
-# the containing Mozilla tree. If you've made a change in one, it
-# belongs in the other as well. If the change isn't right for both
-# places, then that's something to bring up with the other developers.
-#
-# Some files are reasonable to diverge; for example,
-# js/config/autoconf.mk.in doesn't need most of the stuff in
-# config/autoconf.mk.in.
-check-sync-dirs = $(PYTHON) $(srcdir)/config/check-sync-dirs.py
-check::
- $(check-sync-dirs) $(srcdir)/config $(MOZ_SYNC_BUILD_FILES)/config
- $(check-sync-dirs) $(srcdir)/build $(MOZ_SYNC_BUILD_FILES)/build
-
-check-valgrind::
- $(check-sync-dirs) $(srcdir)/config $(MOZ_SYNC_BUILD_FILES)/config
- $(check-sync-dirs) $(srcdir)/build $(MOZ_SYNC_BUILD_FILES)/build
-endif
-
-ifdef ENABLE_TRACEJIT
-ifndef WINCE
-check::
- $(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/trace-test/trace-test.py \
- --no-slow --no-progress --tinderbox $(DIST)/bin/js$(BIN_SUFFIX)
-
-check-valgrind::
- $(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/trace-test/trace-test.py \
- --valgrind --no-slow --no-progress --tinderbox $(DIST)/bin/js$(BIN_SUFFIX)
-endif
-endif
-
-DIST_GARBAGE = config.cache config.log config.status \
- unallmakefiles js-config js-config.h js-confdefs.h
-
-distclean::
- cat unallmakefiles | $(XARGS) rm -f
- rm -f $(DIST_GARBAGE)
-
-# our build system doesn't handle subdir srcs very gracefully today
-export::
- mkdir -p nanojit
-
-DEFINES += -DEXPORT_JS_API
-
-INCLUDES += -I$(srcdir)
-
-GARBAGE += jscpucfg.o jsautocfg.h jsautocfg.tmp jscpucfg
-
-ifneq (,$(CROSS_COMPILE)$(filter-out WINNT,$(OS_ARCH)))
-TARGETS += jscpucfg$(HOST_BIN_SUFFIX)
-endif
-
-ifdef JS_THREADSAFE
-DEFINES += -DJS_THREADSAFE
-endif
-
-ifdef JS_NO_THIN_LOCKS
-DEFINES += -DJS_USE_ONLY_NSPR_LOCKS
-endif
-
-ifdef JS_VERSION
-DEFINES += -DJS_VERSION=$(JS_VERSION)
-endif
-
-ifneq ($(findstring -L,$(NSPR_LIBS)),)
-NSPR_STATIC_PATH = $(subst -L,,$(findstring -L,$(NSPR_LIBS)))
-else
-NSPR_STATIC_PATH = $(DIST)/lib
-endif
-
-ifdef MOZ_SHARK
-CFLAGS += -F/System/Library/PrivateFrameworks
-CXXFLAGS += -F/System/Library/PrivateFrameworks
-LDFLAGS += -F/System/Library/PrivateFrameworks -framework CHUD
-endif
-
-ifdef MOZ_VTUNE
-CXXFLAGS += -IC:/Program\ Files/Intel/VTune/Analyzer/Include
-EXTRA_DSO_LDOPTS += C:/Program\ Files/Intel/VTune/Analyzer/Lib/VtuneApi.lib
-LIBS += C:/Program\ Files/Intel/VTune/Analyzer/Lib/VtuneApi.lib
-endif
-
-# BeOS and HP-UX do not require the extra linking of "-lm"
-ifeq (,$(filter BeOS HP-UX WINNT WINCE OpenVMS OS2,$(OS_ARCH)))
-EXTRA_LIBS += -lm
-endif
-
-# Prevent floating point errors caused by VC++ optimizations
-ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
-ifeq (,$(filter-out 1200 1300 1310,$(_MSC_VER)))
-CFLAGS += -Op
-else
-CFLAGS += -fp:precise
-endif
-endif # WINNT
-
-ifeq ($(OS_ARCH),FreeBSD)
-EXTRA_LIBS += -pthread
-endif
-ifeq ($(OS_ARCH),IRIX)
-ifdef USE_N32
-DASH_R += -n32
-endif
-endif
-ifeq ($(OS_ARCH),Linux)
-EXTRA_LIBS += -ldl
-endif
-ifeq ($(OS_ARCH),OSF1)
-EXTRA_LIBS += -lc_r
-endif
-ifeq ($(OS_ARCH),SunOS)
-ifeq ($(TARGET_CPU),sparc)
-
-ifdef GNU_CC
-CFLAGS += -mcpu=v9
-CXXFLAGS += -mcpu=v9
-endif # GNU_CC
-
-endif
-ifeq ($(OS_RELEASE),4.1)
-EXTRA_LIBS += -ldl -lnsl
-else
-EXTRA_LIBS += -lposix4 -ldl -lnsl -lsocket
-endif
-endif
-
-ifdef MOZ_MEMORY
-ifeq ($(OS_ARCH),Darwin)
-LDFLAGS += -ljemalloc
-endif
-endif
-
-ifdef SOLARIS_SUNPRO_CXX
-# Sun Studio SPARC doesn't work well with gcc inline asm, use lock_SunOS_sparc*.il
-jslock.o: jslock.cpp Makefile.in lock_sparcv8plus.il lock_sparcv9.il
- $(REPORT_BUILD)
- @$(MAKE_DEPS_AUTO_CXX)
-ifeq (sparcv9,$(findstring sparcv9,$(OS_TEST)))
- $(CXX) -o $@ -c $(COMPILE_CFLAGS) $(srcdir)/lock_sparcv9.il $<
-else
- $(CXX) -o $@ -c $(COMPILE_CFLAGS) $(srcdir)/lock_sparcv8plus.il $<
-endif # sparcv9
-endif # SOLARIS_SUNPRO_CXX
-
-# Allow building jsinterp.c with special optimization flags
-ifdef INTERP_OPTIMIZER
-jsinterp.$(OBJ_SUFFIX): MODULE_OPTIMIZE_FLAGS=$(INTERP_OPTIMIZER)
-endif
-
-ifeq ($(OS_ARCH),IRIX)
-ifndef GNU_CC
-_COMPILE_CFLAGS = $(patsubst -O%,-O1,$(COMPILE_CFLAGS))
-jsapi.o jsxdrapi.o jsarena.o jsarray.o jsatom.o jsemit.o jsfun.o jsinterp.o jsregexp.o jsparse.o jsopcode.o jsscript.o: %.o: %.cpp Makefile.in
- $(REPORT_BUILD)
- @$(MAKE_DEPS_AUTO_CXX)
- $(CXX) -o $@ -c $(_COMPILE_CFLAGS) $<
-endif
-endif
-
-# An AIX Optimization bug causes PR_dtoa() & JS_dtoa to produce wrong result.
-# This suppresses optimization for this single compilation unit.
-ifeq ($(OS_ARCH),AIX)
-jsatom.o: jsatom.cpp Makefile.in
- $(REPORT_BUILD)
- @$(MAKE_DEPS_AUTO_CXX)
- $(CXX) -o $@ -c $(filter-out $(MOZ_OPTIMIZE_FLAGS), $(COMPILE_CFLAGS)) $<
-jsdtoa.o: jsdtoa.cpp Makefile.in
- $(REPORT_BUILD)
- @$(MAKE_DEPS_AUTO_CXX)
- $(CXX) -o $@ -c $(filter-out $(MOZ_OPTIMIZE_FLAGS), $(COMPILE_CFLAGS)) $<
-endif
-
-export:: jsautocfg.h
-
-ifeq (,$(CROSS_COMPILE)$(GNU_CC)$(filter-out WINNT,$(OS_ARCH)))
-jsautocfg.h:
- touch $@
-else
-ifeq ($(OS_ARCH),WINCE)
-jsautocfg.h:
- touch $@
-else
-jsautocfg.h: jscpucfg$(HOST_BIN_SUFFIX)
- @rm -f $@ jsautocfg.tmp
- ./jscpucfg > jsautocfg.tmp
- mv jsautocfg.tmp $@
-endif
-endif
-
-# jscpucfg is a strange target
-# Needs to be built with the host compiler but needs to include
-# the mdcpucfg for the target so it needs the appropriate target defines
-ifdef HOST_NSPR_MDCPUCFG
-HOST_CXX := $(HOST_CXX) -DMDCPUCFG=$(TARGET_NSPR_MDCPUCFG)
-HOST_CXXFLAGS := $(patsubst -DXP_%,,$(HOST_CXXFLAGS))
-endif
-
-ifdef CROSS_COMPILE
-# jscpucfg needs to know when it's supposed to produce a config for the target
-JSCPUCFG_DEFINES = $(ACDEFINES)
-endif
-
-ifeq ($(OS_ARCH),QNX)
-ifneq ($(OS_TARGET),NTO)
-# QNX's compiler apparently can't build a binary directly from a source file.
-jscpucfg.o: jscpucfg.cpp Makefile.in
- $(HOST_CXX) $(HOST_CXXFLAGS) -c $(JSCPUCFG_DEFINES) $(DEFINES) $(NSPR_CFLAGS) -o $@ $<
-
-jscpucfg: jscpucfg.o
- $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) -o $@ $<
-endif
-else
-ifeq ($(OS_ARCH),WINCE)
-jscpucfg$(HOST_BIN_SUFFIX):
- echo no need to build jscpucfg $<
-else
-jscpucfg$(HOST_BIN_SUFFIX): jscpucfg.cpp Makefile.in
- $(HOST_CXX) $(HOST_CXXFLAGS) $(JSCPUCFG_DEFINES) $(DEFINES) $(NSPR_CFLAGS) $(HOST_OUTOPTION)$@ $<
-endif
-endif
-
-# Compute the linker flags that programs linking against SpiderMonkey should
-# pass to get SpiderMonkey and its dependencies, beyond just the -L and -l
-# for the SpiderMonkey library itself.
-# - EXTRA_DSO_LDOPTS includes the NSPR -L and -l flags.
-# - OS_LIBS includes libraries selected by the configure script.
-# - EXTRA_LIBS includes libraries selected by this Makefile.
-JS_CONFIG_LIBS=$(EXTRA_DSO_LDOPTS) $(OS_LIBS) $(EXTRA_LIBS)
-
-# The configure script invokes this rule explicitly at configure time!
-# It's important that js-config be ready by the time we're done
-# configuring, because we may be running other configure scripts that
-# would like to run js-config themselves, before js is built.
-#
-# This file and rules.mk go through a certain amount of work to decide
-# which libraries to build, what to name them, and what flags to pass
-# when linking them (and thus what flags its own clients must pass).
-# All this information needs to go into the js-config script. To
-# avoid trying to re-compute all that in the configure script, we just
-# have the configure script generate this Makefile, and then invoke
-# this rule.
-at=@
-js-config: js-config.in Makefile $(DEPTH)/config/autoconf.mk $(topsrcdir)/config/config.mk $(topsrcdir)/config/rules.mk
- rm -f js-config.tmp
- sed < $< > js-config.tmp \
- -e 's|$(at)prefix$(at)|$(prefix)|' \
- -e 's|$(at)exec_prefix$(at)|$(exec_prefix)|' \
- -e 's|$(at)includedir$(at)|$(includedir)|' \
- -e 's|$(at)libdir$(at)|$(libdir)|' \
- -e 's|$(at)MOZILLA_VERSION$(at)|$(MOZILLA_VERSION)|' \
- -e 's|$(at)LIBRARY_NAME$(at)|$(LIBRARY_NAME)|' \
- -e 's|$(at)NSPR_CFLAGS$(at)|$(NSPR_CFLAGS)|' \
- -e 's|$(at)JS_CONFIG_LIBS$(at)|$(JS_CONFIG_LIBS)|' \
- -e 's|$(at)MOZ_JS_LIBS$(at)|$(MOZ_JS_LIBS)|' \
- && mv js-config.tmp $@ && chmod +x $@
-
-SCRIPTS = js-config
-SDK_BINARY = js-config
-
-install:: $(INSTALLED_HEADERS)
- $(SYSINSTALL) $^ $(DESTDIR)$(includedir)/$(MODULE)
-
-install:: $(SCRIPTS)
- $(SYSINSTALL) $^ $(DESTDIR)$(bindir)
-
-install:: $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY)
-ifneq (,$(LIBRARY))
- $(SYSINSTALL) $(LIBRARY) $(DESTDIR)$(libdir)
-endif
-ifneq (,$(SHARED_LIBRARY))
- $(SYSINSTALL) $(SHARED_LIBRARY) $(DESTDIR)$(libdir)
-endif
-ifneq (,$(IMPORT_LIBRARY))
- $(SYSINSTALL) $(IMPORT_LIBRARY) $(DESTDIR)$(libdir)
-endif
-
-# Extra dependancies and rules for auto-generated headers
-host_jskwgen.$(OBJ_SUFFIX): jsversion.h jskeyword.tbl
-
-# Use CURDIR to avoid finding a jsautokw.h in the source tree (from a
-# previous build?) via VPATH when we're building in a separate tree.
-$(CURDIR)/jsautokw.h: host_jskwgen$(HOST_BIN_SUFFIX)
- ./host_jskwgen$(HOST_BIN_SUFFIX) $@
-
-host_jsoplengen.$(OBJ_SUFFIX): jsopcode.tbl
-
-# Use CURDIR to avoid finding a jsautooplen.h in the source tree (from
-# a previous build?) via VPATH when we're building in a separate tree.
-$(CURDIR)/jsautooplen.h: host_jsoplengen$(HOST_BIN_SUFFIX)
- ./host_jsoplengen$(HOST_BIN_SUFFIX) $@
-
-# Force auto-header generation before compiling any source that may use them
-$(CPPSRCS:%.cpp=%.$(OBJ_SUFFIX)): $(CURDIR)/jsautokw.h $(CURDIR)/jsautooplen.h
-
-ifdef HAVE_DTRACE
-$(CURDIR)/javascript-trace.h: $(srcdir)/javascript-trace.d
- dtrace -h -s $(srcdir)/javascript-trace.d -o javascript-trace.h.in
- sed 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \
- javascript-trace.h.in > javascript-trace.h
-
-# We can't automatically generate dependencies on auto-generated headers;
-# we have to list them explicitly.
-$(addsuffix .$(OBJ_SUFFIX),jsdtracef jsinterp jsobj): $(CURDIR)/javascript-trace.h
-endif
-
-ifdef GNU_CC
-ifndef CROSS_COMPILE
-ifndef QEMU_CANT_RUN_JS_SHELL
-# If we don't have run-mozilla.sh *and* we're linking against NSPR, we don't
-# know how to run the JS binary. Oh well
-
-imacro_asm.js: imacro_asm.js.in jsopcode.tbl
- $(CC) -c -x c -E -P -I$(srcdir) $< > $@
-
-GARBAGE += imacros.c.tmp imacro_asm.js
-
-ifneq (,$(wildcard $(RUN_TEST_PROGRAM))$(if $(NSPR_LIBS),,1))
-libs:: imacro_asm.js $(srcdir)/imacros.jsasm
- $(wildcard $(RUN_TEST_PROGRAM)) $(DIST)/bin/js$(BIN_SUFFIX) $< $(srcdir)/imacros.jsasm > imacros.c.tmp
- @cmp -s imacros.c.tmp $(srcdir)/imacros.c.out || \
- (echo "imacros.c.out is out of date. Run 'make update-imacros' to copy it to your source tree."; diff -U 4 $(srcdir)/imacros.c.out imacros.c.out; exit 1)
- @echo "imacros.c.out is up to date"
-
-update-imacros: imacros.c.tmp
- cp $< $(srcdir)/imacros.c.out
-
-# Code for importing the nanojit subtree from its repository.
-
-NANOJIT_CENTRAL_REV=$(shell cat $(srcdir)/nanojit-import-rev)
-NANOJIT_CENTRAL_REPO=http://hg.mozilla.org/projects/nanojit-central
-NANOJIT_CENTRAL_LOCAL=$(CURDIR)/nanojit-central
-CUR_REPO=$(srcdir)/../..
-
-update-nanojit:
- rm -Rf $(NANOJIT_CENTRAL_LOCAL) import-splicemap import-revmap
- hg clone $(NANOJIT_CENTRAL_REPO) $(NANOJIT_CENTRAL_LOCAL)
- python $(srcdir)/find-child.py \
- --src=$(NANOJIT_CENTRAL_LOCAL) \
- --dst=$(CUR_REPO) \
- --start=$(NANOJIT_CENTRAL_REV) \
- --filemap=$(srcdir)/nanojit-import-filemap \
- >import-splicemap
- hg convert --config convert.hg.saverev=True \
- --config convert.hg.startrev=`cut -d ' ' -f 1 import-splicemap` \
- --filemap=$(srcdir)/nanojit-import-filemap \
- --splicemap=import-splicemap \
- $(NANOJIT_CENTRAL_LOCAL) \
- $(CUR_REPO) \
- import-revmap
- (cd $(srcdir) && hg up)
- (cd $(NANOJIT_CENTRAL_LOCAL) && hg log -r tip --template "{node}\n") >$(srcdir)/nanojit-import-rev
- (cd $(srcdir) && hg commit --message="Update nanojit-import-rev stamp." nanojit-import-rev)
-
-.PHONY: update-imacros update-nanojit
-endif
-endif
-endif
-endif
View
470 dependencies/js_src/Makefile.ref
@@ -1,470 +0,0 @@
-# -*- Mode: makefile -*-
-# vim: ft=make
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is Mozilla Communicator client code, released
-# March 31, 1998.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1998
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-# Michael Ang <mang@subcarrier.org>
-# Kevin Buhr <buhr@stat.wisc.edu>
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either of the GNU General Public License Version 2 or later (the "GPL"),
-# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#
-# JSRef GNUmake makefile.
-#
-# Note: dependency rules are missing for some files (some
-# .h, all .msg, etc.) Re-make clean if in doubt.
-#
-
-
-DEPTH = .
-
-include config.mk
-
-#NS_USE_NATIVE = 1
-
-ifndef NANOJIT_ARCH
-$(warning NANOJIT_ARCH not defined in config/$(OS_CONFIG).mk, JIT disabled)
-else
-ifdef DISABLE_JIT
-$(warning disabling JIT per build specification)
-else
-ENABLE_JIT=1
-endif
-endif
-
-ifdef ENABLE_JIT
-DEFINES += -DJS_TRACER
-DEFINES += -DFEATURE_NANOJIT
-INCLUDES += -Inanojit
-endif
-
-#ifndef BUILD_OPT
-#DEFINES += -Ivprof
-#endif
-
-ifdef NARCISSUS
-DEFINES += -DNARCISSUS
-endif
-
-# Look in OBJDIR to find jsautocfg.h, jsautokw.h, and js-config.h
-INCLUDES += -I. -I$(OBJDIR)
-
-ifdef JS_THREADSAFE
-DEFINES += -DJS_THREADSAFE
-INCLUDES += -I$(DIST)/include/nspr
-ifdef USE_MSVC
-OTHER_LIBS += $(DIST)/lib/libnspr$(NSPR_LIBSUFFIX).lib
-else
-OTHER_LIBS += -L$(DIST)/lib -lnspr$(NSPR_LIBSUFFIX)
-endif
-endif
-
-ifdef JS_NO_THIN_LOCKS
-DEFINES += -DJS_USE_ONLY_NSPR_LOCKS
-endif
-
-ifdef JS_HAS_FILE_OBJECT
-DEFINES += -DJS_HAS_FILE_OBJECT
-endif
-
-ifdef JS_GC_ZEAL
-DEFINES += -DJS_GC_ZEAL
-endif
-
-#
-# XCFLAGS may be set in the environment or on the gmake command line
-#
-#CFLAGS += -DDEBUG -DDEBUG_brendan -DJS_ARENAMETER -DJS_HASHMETER -DJS_DUMP_PROPTREE_STATS -DJS_DUMP_SCOPE_METERS -DJS_SCOPE_DEPTH_METER -DJS_BASIC_STATS
-CFLAGS += $(OS_CFLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS)
-
-LDFLAGS = $(XLDFLAGS)
-LDFLAGS += $(OS_LDFLAGS)
-
-ifdef MOZ_SHARK
-DEFINES += -DMOZ_SHARK
-CFLAGS += -F/System/Library/PrivateFrameworks
-LDFLAGS += -F/System/Library/PrivateFrameworks -framework CHUD
-endif
-ifdef MOZ_CALLGRIND
-DEFINES += -DMOZ_CALLGRIND
-endif
-ifdef MOZ_VTUNE
-DEFINES += -DMOZ_VTUNE
-CXXFLAGS += -IC:/Program\ Files/Intel/VTune/Analyzer/Include
-OTHER_LIBS += C:/Program\ Files/Intel/VTune/Analyzer/Lib/VtuneApi.lib
-endif
-
-ifndef NO_LIBM
-LDFLAGS += -lm
-endif
-
-# Prevent floating point errors caused by VC++ optimizations
-ifeq ($(OS_ARCH),WINNT)
-_MSC_VER = $(shell $(CXX) 2>&1 | sed -n 's/.*Compiler Version \([0-9]*\)\.\([0-9]*\).*/\1\2/p')
-ifeq (,$(filter-out 1200 1300 1310,$(_MSC_VER)))
-CFLAGS += -Op
-else
-CFLAGS += -fp:precise
-endif
-endif # WINNT
-
-#
-# Server-related changes :
-#
-ifdef NES40
-DEFINES += -DNES40
-endif
-
-#
-# Line editing support.
-# Define JS_READLINE or JS_EDITLINE to enable line editing in the
-# js command-line interpreter.
-#
-ifdef JS_READLINE
-# For those platforms with the readline library installed.
-DEFINES += -DEDITLINE
-PROG_LIBS += -lreadline -ltermcap
-else
-ifdef JS_EDITLINE
-# Use the editline library, built locally.
-PREDIRS += editline
-DEFINES += -DEDITLINE
-PROG_LIBS += $(OBJDIR)/editline/libedit.a
-endif
-endif
-
-# For purify
-PURE_CFLAGS = -DXP_UNIX $(OPTIMIZER) $(PURE_OS_CFLAGS) $(DEFINES) \
- $(INCLUDES) $(XCFLAGS)
-
-#
-# JS file lists
-#
-JS_HFILES = \
- jsarray.h \
- jsatom.h \
- jsbool.h \
- jscntxt.h \
- jsdate.h \
- jsemit.h \
- jsexn.h \
- jsfun.h \
- jsgc.h \
- jsinterp.h \
- jsiter.h \
- jslibmath.h \
- jslock.h \
- jsmath.h \
- jsnum.h \
- jsobj.h \
- json.h \
- jsopcode.h \
- jsparse.h \
- jsarena.h \
- jsclist.h \
- jsdhash.h \
- jsdtoa.h \
- jshash.h \
- jslong.h \
- jstypes.h \
- jsprvtd.h \
- jspubtd.h \
- jsregexp.h \
- jsscan.h \
- jsscope.h \
- jsscript.h \
- jsstr.h \
- jsversion.h \
- jsxdrapi.h \
- jsxml.h \
- $(NULL)
-
-ifdef ENABLE_JIT
-JS_HFILES += \
- jstracer.h \
- nanojit/Assembler.h \
- nanojit/LIR.h \
- nanojit/Native$(NANOJIT_ARCH).h \
- nanojit/avmplus.h \
- nanojit/vm_fops.h \
- nanojit/Fragmento.h \
- nanojit/Native.h \
- nanojit/RegAlloc.h \
- nanojit/nanojit.h \
- $(NULL)
-endif
-
-ifndef BUILD_OPT
-#JS_HFILES += \
-# vprof/vprof.h \
-# $(NULL)
-endif
-
-API_HFILES = \
- jsapi.h \
- jsdbgapi.h \
- $(NULL)
-
-OTHER_HFILES = \
- jsbit.h \
- jscompat.h \
- jscpucfg.h \
- jsotypes.h \
- prmjtime.h \
- resource.h \
- jsopcode.tbl \
- jsproto.tbl \
- js.msg \
- jsshell.msg \
- jskeyword.tbl \
- $(NULL)
-
-ifndef PREBUILT_CPUCFG
-OTHER_HFILES += $(OBJDIR)/jsautocfg.h
-endif
-OTHER_HFILES += $(OBJDIR)/jsautokw.h $(OBJDIR)/js-config.h
-
-HFILES = $(JS_HFILES) $(API_HFILES) $(OTHER_HFILES)
-
-JS_CPPFILES = \
- jsapi.cpp \
- jsarena.cpp \
- jsarray.cpp \
- jsatom.cpp \
- jsbool.cpp \
- jscntxt.cpp \
- jsdate.cpp \
- jsdbgapi.cpp \
- jsdhash.cpp \
- jsdtoa.cpp \
- jsemit.cpp \
- jsexn.cpp \
- jsfun.cpp \
- jsgc.cpp \
- jshash.cpp \
- jsinterp.cpp \
- jsinvoke.cpp \
- jsiter.cpp \
- jslock.cpp \
- jslog2.cpp \
- jslong.cpp \
- jsmath.cpp \
- jsnum.cpp \
- jsobj.cpp \
- json.cpp \
- jsopcode.cpp \
- jsparse.cpp \
- jsprf.cpp \
- jsregexp.cpp \
- jsscan.cpp \
- jsscope.cpp \
- jsscript.cpp \
- jsstr.cpp \
- jsutil.cpp \
- jsxdrapi.cpp \
- jsxml.cpp \
- prmjtime.cpp \
- $(NULL)
-
-ifdef ENABLE_JIT
-JS_CPPFILES += \
- jsbuiltins.cpp \
- jstracer.cpp \
- nanojit/Assembler.cpp \
- nanojit/Fragmento.cpp \
- nanojit/LIR.cpp \
- nanojit/Native$(NANOJIT_ARCH).cpp \
- nanojit/RegAlloc.cpp \
- nanojit/avmplus.cpp \
- $(NULL)
-
-endif
-
-ifndef BUILD_OPT
-#JS_CPPFILES += \
-# vprof/vprof.cpp \
-# $(NULL)
-endif
-
-ifdef JS_HAS_FILE_OBJECT
-JS_CPPFILES += jsfile.cpp
-JS_HFILES += jsfile.h
-endif
-
-LIB_CPPFILES = $(JS_CPPFILES)
-LIB_ASFILES := $(wildcard *_$(OS_ARCH).s)
-PROG_CPPFILES = js.cpp
-
-ifdef USE_MSVC
-LIBRARY = $(OBJDIR)/js32.lib
-SHARED_LIBRARY = $(OBJDIR)/js32.dll
-PROGRAM = $(OBJDIR)/js.exe
-else
-LIBRARY = $(OBJDIR)/libjs.a
-SHARED_LIBRARY = $(OBJDIR)/libjs.$(SO_SUFFIX)
-PROGRAM = $(OBJDIR)/js
-endif
-
-include rules.mk
-
-MOZ_DEPTH = ../..
-include jsconfig.mk
-
-nsinstall-target:
- cd ../../config; $(MAKE) OBJDIR=$(OBJDIR) OBJDIR_NAME=$(OBJDIR)
-
-#
-# Automatic header generation
-#
-
-AUTO_HEADERS = \
- $(OBJDIR)/jsautokw.h \
- $(OBJDIR)/jsautooplen.h \
- $(NULL)
-
-$(OBJDIR)/jsautokw.h: jskeyword.tbl
-
-$(OBJDIR)/jsautooplen.h: jsopcode.tbl
-
-GARBAGE += $(AUTO_HEADERS)
-GARBAGE += $(AUTO_HEADERS:$(OBJDIR)/jsauto%.h=$(OBJDIR)/js%gen$(HOST_BIN_SUFFIX))
-
-ifdef USE_MSVC
-
-GARBAGE += $(AUTO_HEADERS:$(OBJDIR)/jsauto%.h=$(OBJDIR)/js%gen.obj)
-
-$(AUTO_HEADERS): $(OBJDIR)/jsauto%.h: js%gen.cpp
- @$(MAKE_OBJDIR)
- $(CXX) -Fo$(OBJDIR)/ -c $(CFLAGS) $(OPTIMIZER) $<
- link.exe -out:"$(OBJDIR)/js$*gen$(HOST_BIN_SUFFIX)" $(EXE_LINK_FLAGS) $(OBJDIR)/js$*gen.obj
- $(OBJDIR)/js$*gen$(HOST_BIN_SUFFIX) $@
-else
-
-GARBAGE += $(AUTO_HEADERS:$(OBJDIR)/jsauto%.h=$(OBJDIR)/js%gen.d)
-$(AUTO_HEADERS): $(OBJDIR)/jsauto%.h: js%gen.cpp
- @$(MAKE_OBJDIR)
- $(CXX) -o $(OBJDIR)/js$*gen$(HOST_BIN_SUFFIX) $(CFLAGS) $(OPTIMIZER) $(LDFLAGS) $<
- $(OBJDIR)/js$*gen$(HOST_BIN_SUFFIX) $@
-
-endif
-
-# force creation of autoheaders before compiling any source that may use them
-$(LIB_OBJS) : $(AUTO_HEADERS)
-
-#
-# An installed header file describing configuration options that affect
-# the API.
-#
-
-# Avoid rebuilding unless js-config.h's contents actually change. The
-# timestamp on js-config.h.stamp corresponds to the last time we
-# checked that js-config.h was up to date. If the stamp changes but
-# js-config.h does not, then make concludes that targets depending on
-# js-config.h don't need to be rebuilt. The dummy '@true' rule here
-# keeps make from concluding that js-config.h never changes.
-$(OBJDIR)/js-config.h: $(OBJDIR)/js-config.h.stamp
- @true
-
-js-config-switch=$(if $(value $($1)),-e 's/\#undef $1/\#define $1/')
-$(OBJDIR)/js-config.h.stamp: js-config.h.in Makefile.ref
- sed < $< > $(@:.stamp=.tmp) \
- $(call js-config-switch,JS_THREADSAFE) \
- $(call js-config-switch,JS_GC_ZEAL) \
- -e :dummy
- if ! [ -f $(@:.stamp=) ] || ! cmp $(@:.stamp=.tmp) $(@:.stamp=); then \
- mv $(@:.stamp=.tmp) $(@:.stamp=); \
- fi
- touch $@
-
-GARBAGE += $(OBJDIR)/js-config.h $(OBJDIR)/js-config.h.stamp
-
-# Force creation of js-config.h before compiling any source that may use it.
-$(LIB_OBJS) : $(OBJDIR)/js-config.h
-
-#
-# JS shell executable
-#
-
-ifdef USE_MSVC
-$(PROGRAM): $(PROG_OBJS) $(LIBRARY)
- link.exe -out:"$@" $(EXE_LINK_FLAGS) $^
-else
-$(PROGRAM): $(PROG_OBJS) $(LIBRARY)
- $(CXX) -o $@ $(CFLAGS) $(PROG_OBJS) $(LIBRARY) $(LDFLAGS) $(OTHER_LIBS) \
- $(PROG_LIBS)
-endif
-
-$(PROGRAM).pure: $(PROG_OBJS) $(LIBRARY)
- purify $(PUREFLAGS) \
- $(CXX) -o $@ $(PURE_OS_CFLAGS) $(PROG_OBJS) $(LIBRARY) $(LDFLAGS) \
- $(OTHER_LIBS) $(PROG_LIBS)
-
-ifndef PREBUILT_CPUCFG
-$(filter-out jscpucfg.h $(OBJDIR)/jsautocfg.h, $(HFILES)) $(CPPFILES): $(OBJDIR)/jsautocfg.h
-
-$(OBJDIR)/jsautocfg.h: $(OBJDIR)/jscpucfg
- rm -f $@
- $(OBJDIR)/jscpucfg > $@
-
-$(OBJDIR)/jscpucfg: $(OBJDIR)/jscpucfg.o
- $(CXX) $(OS_LDFLAGS) -o $@ $(OBJDIR)/jscpucfg.o
-
-GARBAGE += $(OBJDIR)/jsautocfg.h $(OBJDIR)/jscpucfg \
- $(OBJDIR)/jscpucfg.o $(OBJDIR)/jscpucfg.d
-endif
-
-# Automatic make dependencies files
-DEPENDENCIES = $(CPPFILES:%.cpp=$(OBJDIR)/%.d)
-
-#
-# Hardwire dependencies for some files
-#
-ifdef USE_MSVC
-OBJ=obj
-else
-OBJ=o
-endif
-
-$(OBJDIR)/jsinvoke.$(OBJ): jsinterp.h jsinterp.cpp
-$(OBJDIR)/jsinvoke.obj : jsinterp.h jsinterp.cpp
-
--include $(DEPENDENCIES)
-
-TARNAME = jsref.tar
-TARFILES = files `cat files`
-
-SUFFIXES: .i
-%.i: %.cpp
- $(CXX) -C -E $(CFLAGS) $< > $*.i
View
54 dependencies/js_src/README.html
@@ -1,54 +0,0 @@
-<!-- ***** BEGIN LICENSE BLOCK *****
- - Version: MPL 1.1/GPL 2.0/LGPL 2.1
- -
- - The contents of this file are subject to the Mozilla Public License Version
- - 1.1 (the "License"); you may not use this file except in compliance with
- - the License. You may obtain a copy of the License at
- - http://www.mozilla.org/MPL/
- -
- - Software distributed under the License is distributed on an "AS IS" basis,
- - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- - for the specific language governing rights and limitations under the
- - License.
- -
- - The Original Code is Mozilla Communicator client code, released
- - March 31, 1998.
- -
- - The Initial Developer of the Original Code is
- - Netscape Communications Corporation.
- - Portions created by the Initial Developer are Copyright (C) 1998-1999
- - the Initial Developer. All Rights Reserved.
- -
- - Contributor(s):
- -
- - Alternatively, the contents of this file may be used under the terms of
- - either of the GNU General Public License Version 2 or later (the "GPL"),
- - or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- - in which case the provisions of the GPL or the LGPL are applicable instead
- - of those above. If you wish to allow use of your version of this file only
- - under the terms of either the GPL or the LGPL, and not to allow others to
- - use your version of this file under the terms of the MPL, indicate your
- - decision by deleting the provisions above and replace them with the notice
- - and other provisions required by the GPL or the LGPL. If you do not delete
- - the provisions above, a recipient may use your version of this file under
- - the terms of any one of the MPL, the GPL or the LGPL.
- -
- - ***** END LICENSE BLOCK ***** -->
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta http-equiv="Refresh"
- content="0;URL=http://developer.mozilla.org/en/docs/SpiderMonkey">
- <title>SpiderMonkey README</title>
-</head>
-<body>
-
-<h1>SpiderMonkey README</h1>
-
-<p>See the
-<a href="http://developer.mozilla.org/en/docs/SpiderMonkey">SpiderMonkey
-pages</a> on the Mozilla Developer Center</a>.
-
-</body>
-</html>
View
3  dependencies/js_src/SpiderMonkey.rsp
@@ -1,3 +0,0 @@
-mozilla/js/src/*
-mozilla/js/src/config/*
-mozilla/js/src/macbuild/*
View
19 dependencies/js_src/Y.js
@@ -1,19 +0,0 @@
-// The Y combinator, applied to the factorial function
-
-function factorial(proc) {
- return function (n) {
- return (n <= 1) ? 1 : n * proc(n-1);
- }
-}
-
-function Y(outer) {
- function inner(proc) {
- function apply(arg) {
- return proc(proc)(arg);
- }
- return outer(apply);
- }
- return inner(inner);
-}
-
-print("5! is " + Y(factorial)(5));
View
13 dependencies/js_src/aclocal.m4
@@ -1,13 +0,0 @@
-dnl
-dnl Local autoconf macros used with mozilla
-dnl The contents of this file are under the Public Domain.
-dnl
-
-builtin(include, build/autoconf/pkg.m4)dnl
-builtin(include, build/autoconf/nspr.m4)dnl
-builtin(include, build/autoconf/altoptions.m4)dnl
-builtin(include, build/autoconf/moznbytetype.m4)dnl
-builtin(include, build/autoconf/mozprog.m4)dnl
-builtin(include, build/autoconf/acwinpaths.m4)dnl
-
-MOZ_PROG_CHECKMSYS()
View
110 dependencies/js_src/analysis-tests/Makefile.in
@@ -1,110 +0,0 @@
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is Mozilla 2.
-#
-# The Initial Developer of the Original Code is
-# the Mozilla Foundation <http://www.mozilla.org>.
-#
-# Portions created by the Initial Developer are Copyright (C) 2008
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-# Benjamin Smedberg <benjamin@smedbergs.us> (Author)
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-DEPTH = ..
-topsrcdir = @top_srcdir@
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-# we will do compilations that create dependency files.
-NEED_MDDEPDIR = 1
-
-include $(DEPTH)/config/autoconf.mk
-
-REDGREEN_FAILURE_TESTCASES = \
- green-callred.cpp \
- green-accessred.cpp \
- green-tored-badpath.cpp \
- misdeclared-red-funcptr.cpp \
- misdeclared-red-funcptr2.cpp \
- red-togreenptr.cpp \
- red-togreenptr-return.cpp \
- red-togreenptr-arg.cpp \
- red-togreenptr-field.cpp \
- red-togreenptr-initializer.cpp \
- red-togreenptr-initializer-struct.cpp \
- red-togreenptr-initializer-array.cpp \
- red-togreenptr-initializer-nested.cpp \
- red-togreenptr-initializer-cast.cpp \
- green-callredptr.cpp \
- $(NULL)
-
-REDGREEN_SUCCESS_TESTCASES = \
- red-callred.cpp \
- red-callgreen.cpp \
- red-accessred.cpp \
- green-tored.cpp \
- green-toredptr.cpp \
- $(NULL)
-
-STATIC_FAILURE_TESTCASES = \
- $(REDGREEN_FAILURE_TESTCASES) \
- $(NULL)
-
-STATIC_PASS_TESTCASES = \
- $(REDGREEN_SUCCESS_TESTCASES) \
- $(NULL)
-
-include $(topsrcdir)/config/rules.mk
-
-LOCAL_INCLUDES += -I$(srcdir)/.. -I..
-
-check:: \
- $(STATIC_FAILURE_TESTCASES:.cpp=.s-fail) \
- $(STATIC_PASS_TESTCASES:.cpp=.s-pass) \
- $(NULL)
-
-# We want to compile each file and invert the result to ensure that
-# compilation failed.
-%.s-fail: %.cpp $(GLOBAL_DEPS) $(DEHYDRA_SCRIPTS)
- @printf "Compiling $(<F) to check that the static-analysis script is checking properly..."
- @if $(CCC) $(OUTOPTION)/dev/null -S $(COMPILE_CXXFLAGS) $(_VPATH_SRCS) >$(*F).errlog 2>&1; then \
- printf "fail:\nerror: compilation of $(<F) succeeded. It shouldn't have!\n"; \
- exit 1; \
- else \
- printf "ok.\n"; \
- fi
-
-%.s-pass: %.cpp $(GLOBAL_DEPS) $(DEHYDRA_SCRIPTS)
- @printf "Compiling $(<F) to check that the static-analysis script is checking properly..."
- @if $(CCC) -Werror $(OUTOPTION)/dev/null -S $(COMPILE_CXXFLAGS) $(_VPATH_SRCS) >$(*F).errlog 2>&1; then \
- printf "ok.\n"; \
- else \
- printf "fail:\nerror: compilation of $(<F) failed. It shouldn't have!\n"; \
- exit 1; \
- fi
View
11 dependencies/js_src/analysis-tests/green-accessred.cpp
@@ -1,11 +0,0 @@
-#include "jstypes.h"
-
-struct Foo
-{
- JS_REQUIRES_STACK void *redmember;
-};
-
-void* GreenFunc(Foo *f)
-{
- return f->redmember;
-}
View
12 dependencies/js_src/analysis-tests/green-callred.cpp
@@ -1,12 +0,0 @@
-#include "jstypes.h"
-
-#ifndef NS_STATIC_CHECKING
-#error Running this without NS_STATIC_CHECKING is silly
-#endif
-
-JS_REQUIRES_STACK void RedFunc();
-
-void GreenFunc()
-{
- RedFunc();
-}
View
8 dependencies/js_src/analysis-tests/green-callredptr.cpp
@@ -1,8 +0,0 @@
-#include "jstypes.h"
-
-typedef void (JS_REQUIRES_STACK *RedFuncPtr)();
-
-void GreenFunc(RedFuncPtr f)
-{
- f();
-}
View
14 dependencies/js_src/analysis-tests/green-tored-badpath.cpp
@@ -1,14 +0,0 @@
-#include "jstypes.h"
-
-JS_REQUIRES_STACK void RedFunc();
-
-JS_FORCES_STACK void TurnRedFunc();
-
-void GreenPartlyRedFunc(int i)
-{
- if (i) {
- TurnRedFunc();
- }
-
- RedFunc();
-}
View
12 dependencies/js_src/analysis-tests/green-tored.cpp
@@ -1,12 +0,0 @@
-#include "jstypes.h"
-
-JS_REQUIRES_STACK void RedFunc();
-
-JS_FORCES_STACK void TurnRedFunc();
-
-void GreenToRedFunc()
-{
- TurnRedFunc();
-
- RedFunc();
-}
View
12 dependencies/js_src/analysis-tests/green-toredptr.cpp
@@ -1,12 +0,0 @@
-#include "jstypes.h"
-
-void GreenFunc();
-
-typedef void (JS_REQUIRES_STACK *RedFuncPtr)();
-
-RedFuncPtr Test()
-{
- // assigning a green function to a red function pointer is ok
- RedFuncPtr p = GreenFunc;
- return p;
-}
View
5 dependencies/js_src/analysis-tests/misdeclared-red-funcptr.cpp
@@ -1,5 +0,0 @@
-#include "jstypes.h"
-
-
-// JS_REQUIRES_STACK should come before the *
-typedef void (* JS_REQUIRES_STACK RedFuncPtr)();
View
5 dependencies/js_src/analysis-tests/misdeclared-red-funcptr2.cpp
@@ -1,5 +0,0 @@
-#include "jstypes.h"
-
-
-// JS_REQUIRES_STACK should come before the *
-typedef void (* RedFuncPtr)() JS_REQUIRES_STACK;
View
11 dependencies/js_src/analysis-tests/red-accessred.cpp
@@ -1,11 +0,0 @@
-#include "jstypes.h"
-
-struct Foo
-{
- JS_REQUIRES_STACK void *redmember;
-};
-
-JS_REQUIRES_STACK void * RedFunc(Foo *f)
-{
- return f->redmember;
-}
View
8 dependencies/js_src/analysis-tests/red-callgreen.cpp
@@ -1,8 +0,0 @@
-#include "jstypes.h"
-
-void GreenFunc();
-
-void JS_REQUIRES_STACK RedFunc()
-{
- GreenFunc();
-}
View
8 dependencies/js_src/analysis-tests/red-callred.cpp
@@ -1,8 +0,0 @@
-#include "jstypes.h"
-
-JS_REQUIRES_STACK void RedFunc1();
-
-JS_REQUIRES_STACK void RedFunc2()
-{
- RedFunc1();
-}
View
11 dependencies/js_src/analysis-tests/red-togreenptr-arg.cpp
@@ -1,11 +0,0 @@
-#include "jstypes.h"
-
-typedef void (*GreenFuncPtr)();
-typedef void (JS_REQUIRES_STACK *RedFuncPtr)();
-
-void TakesAsArgument(GreenFuncPtr g);
-
-void Test(RedFuncPtr p)
-{
- TakesAsArgument(p);
-}
View
15 dependencies/js_src/analysis-tests/red-togreenptr-field.cpp
@@ -1,15 +0,0 @@
-#include "jstypes.h"
-
-typedef void (*GreenFuncPtr)();
-typedef void (JS_REQUIRES_STACK *RedFuncPtr)();
-
-struct Foo
-{
- int i;
- GreenFuncPtr p;
-};
-
-void Test(Foo *foo, RedFuncPtr p)
-{
- foo->p = p;
-}
View
8 dependencies/js_src/analysis-tests/red-togreenptr-initializer-array.cpp
@@ -1,8 +0,0 @@
-#include "jstypes.h"
-
-void GreenFunc();
-JS_REQUIRES_STACK void RedFunc();
-
-typedef void (*GreenFuncPtr)();
-
-GreenFuncPtr fpa[2] = {GreenFunc, RedFunc};
View
7 dependencies/js_src/analysis-tests/red-togreenptr-initializer-cast.cpp
@@ -1,7 +0,0 @@
-#include "jstypes.h"
-
-JS_REQUIRES_STACK void RedFunc();
-
-typedef void (*GreenFuncPtr)(int);
-
-GreenFuncPtr gfpa = (GreenFuncPtr) RedFunc;
View
18 dependencies/js_src/analysis-tests/red-togreenptr-initializer-nested.cpp
@@ -1,18 +0,0 @@
-#include "jstypes.h"
-
-void GreenFunc();
-JS_REQUIRES_STACK void RedFunc();
-
-typedef void (*GreenFuncPtr)();
-
-struct S
-{
- int i;
- GreenFuncPtr p;
-};
-
-S sa[] = {
- { 2, GreenFunc },
- { 1, RedFunc },
-};
-
View
12 dependencies/js_src/analysis-tests/red-togreenptr-initializer-struct.cpp
@@ -1,12 +0,0 @@
-#include "jstypes.h"
-
-JS_REQUIRES_STACK void RedFunc();
-
-typedef void (*GreenFuncPtr)();
-
-struct GreenStruct
-{
- GreenFuncPtr func;
-};
-
-GreenStruct gs = { RedFunc };
View
7 dependencies/js_src/analysis-tests/red-togreenptr-initializer.cpp
@@ -1,7 +0,0 @@
-#include "jstypes.h"
-
-JS_REQUIRES_STACK void RedFunc();
-
-typedef void (*GreenFuncPtr)();
-
-GreenFuncPtr funcp = RedFunc;
View
9 dependencies/js_src/analysis-tests/red-togreenptr-return.cpp
@@ -1,9 +0,0 @@
-#include "jstypes.h"
-
-typedef void (*GreenFuncPtr)();
-typedef void (JS_REQUIRES_STACK *RedFuncPtr)();
-
-GreenFuncPtr Test(RedFuncPtr p)
-{
- return p;
-}
View
10 dependencies/js_src/analysis-tests/red-togreenptr.cpp
@@ -1,10 +0,0 @@
-#include "jstypes.h"
-
-JS_REQUIRES_STACK void RedFunc();
-
-typedef void (*GreenFuncPtr)();
-
-GreenFuncPtr Test()
-{
- return RedFunc;
-}
View
5 dependencies/js_src/bench.sh
@@ -1,5 +0,0 @@
-#!/bin/bash
-X="var d = Date.now();";
-for i in t/*.js; do X="$X load(\"$i\");"; done
-X="$X print(Date.now() - d);"
-echo $X | $1 -j
View
202 dependencies/js_src/build/autoconf/acoutput-fast.pl
@@ -1,202 +0,0 @@
-#! /usr/bin/env perl
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1999
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either of the GNU General Public License Version 2 or later (the "GPL"),
-# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-# acoutput-fast.pl - Quickly create makefiles that are in a common format.
-#
-# Most of the makefiles in mozilla only refer to two configure variables:
-# @srcdir@
-# @top_srcdir@
-# However, configure does not know any better and it runs sed on each file
-# with over 150 replacement rules (slow as molasses).
-#
-# This script takes a list of makefiles as input. For example,
-#
-# echo $MAKEFILES | acoutput-fast.pl
-#
-# The script creates each Makefile that only references @srcdir@ and
-# @top_srcdir@. For other files, it lists them in a shell command that is
-# printed to stdout:
-#
-# CONFIG_FILES="unhandled_files..."; export CONFIG_FILES
-#
-# This command can be used to have config.status create the unhandled
-# files. For example,
-#
-# eval "echo $MAKEFILES | acoutput-fast.pl"
-# AC_OUTPUT($MAKEFILES)
-#
-# Send comments, improvements, bugs to Steve Lamm (slamm@netscape.com).
-
-#use File::Basename;
-sub dirname {
- my $dir = $_[0];
- return '.' if not $dir =~ m%/%;
- $dir =~ s%/[^/][^/]*$%%;
- return $dir;
-}
-
-# Create one directory. Assumes it doesn't already exist.
-# Will create parent(s) if needed.
-sub create_directory {
- my $dir = $_[0];
- my $parent = dirname($dir);
- create_directory($parent) if not -d $parent;
- mkdir "$dir",0777;
-}
-
-# Create all the directories at once.
-# This can be much faster than calling mkdir() for each one.
-sub create_directories {
- my @makefiles = @_;
- my @dirs = ();
- my $ac_file;
- foreach $ac_file (@makefiles) {
- push @dirs, dirname($ac_file);
- }
- # Call mkdir with the directories sorted by subdir count (how many /'s)
- if (@dirs) {
- foreach $dir (@dirs) {
- if (not -d $dir) {
- print STDERR "Creating directory $dir\n";
- create_directory($dir);
- }
- }
- }
-}
-
-while($arg = shift) {
- if ($arg =~ /^--srcdir=/) {
- $ac_given_srcdir = (split /=/, $arg)[1];
- }
- if ($arg =~ /^--cygwin-srcdir/) {
- $ac_cygwin_srcdir = (split /=/, $arg)[1];
- }
-}
-
-if (!$ac_given_srcdir) {
- $ac_given_srcdir = $0;
- $ac_given_srcdir =~ s|/?build/autoconf/.*$||;
- $ac_given_srcdir = '.' if $ac_given_srcdir eq '';
-}
-
-if (!$ac_cygwin_srcdir) {
- $ac_cygwin_srcdir = $ac_given_srcdir;
-}
-
-# Read list of makefiles from the stdin or,
-# from files listed on the command-line.
-#
-@makefiles=();
-push @makefiles, split while (<STDIN>);
-
-# Create all the directories at once.
-# This can be much faster than calling mkdir() for each one.
-create_directories(@makefiles);
-
-# Output the makefiles.
-#
-@unhandled=();
-foreach $ac_file (@makefiles) {
- if (not $ac_file =~ /Makefile$/ or $ac_file =~ /:/) {
- push @unhandled, $ac_file;
- next;
- }
- $ac_file_in = "$ac_given_srcdir/$ac_file.in";
- $ac_dir = dirname($ac_file);
- if ($ac_dir eq '.') {
- $ac_dir_suffix = '';
- $ac_dots = '';
- } else {
- $ac_dir_suffix = "/$ac_dir";
- $ac_dir_suffix =~ s%^/\./%/%;
- $ac_dots = $ac_dir_suffix;
- $ac_dots =~ s%/[^/]*%../%g;
- }
- if ($ac_given_srcdir eq '.') {
- $srcdir = '.';
- if ($ac_dots eq '') {
- $top_srcdir = '.'
- } else {
- $top_srcdir = $ac_dots;
- $top_srcdir =~ s%/$%%;
- }
- } elsif ($ac_cygwin_srcdir =~ m%^/% or $ac_cygwin_srcdir =~ m%^.:/%) {
- $srcdir = "$ac_cygwin_srcdir$ac_dir_suffix";
- $top_srcdir = "$ac_cygwin_srcdir";
- } else {
- $srcdir = "$ac_dots$ac_cygwin_srcdir$ac_dir_suffix";
- $top_srcdir = "$ac_dots$ac_cygwin_srcdir";
- }
-
- if (-e $ac_file) {
- next if -M _ < -M $ac_file_in;
- print STDERR "updating $ac_file\n";
- } else {
- print STDERR "creating $ac_file\n";
- }
-
- open (INFILE, "<$ac_file_in")
- or ( warn "can't read $ac_file_in: No such file or directory\n" and next);
- open (OUTFILE, ">$ac_file")
- or ( warn "Unable to create $ac_file\n" and next);
-
- while (<INFILE>) {
- #if (/\@[_a-zA-Z]*\@.*\@[_a-zA-Z]*\@/) {
- # warn "Two defines on a line:$ac_file:$.:$_";
- # push @unhandled, $ac_file;
- # last;
- #}
-
- s/\@srcdir\@/$srcdir/g;
- s/\@top_srcdir\@/$top_srcdir/g;
-
- if (/\@[_a-zA-Z]*\@/) {
- warn "Unknown variable:$ac_file:$.:$_";
- push @unhandled, $ac_file;
- last;
- }
- print OUTFILE;
- }
- close INFILE;
- close OUTFILE;
-}
-
-# Print the shell command to be evaluated by configure.
-#
-print "CONFIG_FILES=\"".join(' ', @unhandled)."\"; export CONFIG_FILES\n";
-
View
65 dependencies/js_src/build/autoconf/acwinpaths.m4
@@ -1,65 +0,0 @@
-dnl ***** BEGIN LICENSE BLOCK *****
-dnl Version: MPL 1.1/GPL 2.0/LGPL 2.1
-dnl
-dnl The contents of this file are subject to the Mozilla Public License Version
-dnl 1.1 (the "License"); you may not use this file except in compliance with
-dnl the License. You may obtain a copy of the License at
-dnl http://www.mozilla.org/MPL/
-dnl
-dnl Software distributed under the License is distributed on an "AS IS" basis,
-dnl WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-dnl for the specific language governing rights and limitations under the
-dnl License.
-dnl
-dnl The Original Code is mozilla.org code.
-dnl
-dnl The Initial Developer of the Original Code is the
-dnl Mozilla Foundation <http://www.mozilla.org>
-dnl
-dnl Portions created by the Initial Developer are Copyright (C) 2009
-dnl the Initial Developer. All Rights Reserved.
-dnl
-dnl Contributor(s):
-dnl Benjamin Smedberg
-dnl
-dnl Alternatively, the contents of this file may be used under the terms of
-dnl either of the GNU General Public License Version 2 or later (the "GPL"),
-dnl or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-dnl in which case the provisions of the GPL or the LGPL are applicable instead
-dnl of those above. If you wish to allow use of your version of this file only
-dnl under the terms of either the GPL or the LGPL, and not to allow others to
-dnl use your version of this file under the terms of the MPL, indicate your
-dnl decision by deleting the provisions above and replace them with the notice
-dnl and other provisions required by the GPL or the LGPL. If you do not delete
-dnl the provisions above, a recipient may use your version of this file under
-dnl the terms of any one of the MPL, the GPL or the LGPL.
-dnl
-dnl ***** END LICENSE BLOCK *****
-
-define(GENERATE_SUB_ABS, [
-define([AC_OUTPUT_FILES_SUB1], [
-patsubst($@, [/\*)], [/* | ?:/*)])
-])
-])
-GENERATE_SUB_ABS(defn([AC_OUTPUT_FILES]))
-
-define(GENERATE_SUB_NOSPLIT, [
-define([AC_OUTPUT_FILES], [
-patsubst($@, [-e "s%:% \$ac_given_srcdir/%g"], [])
-])
-])
-GENERATE_SUB_NOSPLIT(defn([AC_OUTPUT_FILES_SUB1]))
-
-define(GENERATE_HEADER_NOSPLIT, [
-define([AC_OUTPUT_HEADER], [
-patsubst($@, [-e "s%:% \$ac_given_srcdir/%g"], [])
-])
-])
-GENERATE_HEADER_NOSPLIT(defn([AC_OUTPUT_HEADER]))
-
-define(GENERATE_SUBDIRS_ABS, [
-define([AC_OUTPUT_SUBDIRS], [
-patsubst($@, [/\*)], [/* | ?:/*)])
-])
-])
-GENERATE_SUBDIRS_ABS(defn([AC_OUTPUT_SUBDIRS]))
View
154 dependencies/js_src/build/autoconf/altoptions.m4
@@ -1,154 +0,0 @@
-dnl ***** BEGIN LICENSE BLOCK *****
-dnl Version: MPL 1.1/GPL 2.0/LGPL 2.1
-dnl
-dnl The contents of this file are subject to the Mozilla Public License Version
-dnl 1.1 (the "License"); you may not use this file except in compliance with
-dnl the License. You may obtain a copy of the License at
-dnl http://www.mozilla.org/MPL/
-dnl
-dnl Software distributed under the License is distributed on an "AS IS" basis,
-dnl WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-dnl for the specific language governing rights and limitations under the
-dnl License.
-dnl
-dnl The Original Code is mozilla.org code.
-dnl
-dnl The Initial Developer of the Original Code is
-dnl Netscape Communications Corporation.
-dnl Portions created by the Initial Developer are Copyright (C) 1999
-dnl the Initial Developer. All Rights Reserved.
-dnl
-dnl Contributor(s):
-dnl
-dnl Alternatively, the contents of this file may be used under the terms of
-dnl either of the GNU General Public License Version 2 or later (the "GPL"),
-dnl or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-dnl in which case the provisions of the GPL or the LGPL are applicable instead
-dnl of those above. If you wish to allow use of your version of this file only
-dnl under the terms of either the GPL or the LGPL, and not to allow others to
-dnl use your version of this file under the terms of the MPL, indicate your
-dnl decision by deleting the provisions above and replace them with the notice
-dnl and other provisions required by the GPL or the LGPL. If you do not delete
-dnl the provisions above, a recipient may use your version of this file under
-dnl the terms of any one of the MPL, the GPL or the LGPL.
-dnl
-dnl ***** END LICENSE BLOCK *****
-
-dnl altoptions.m4 - An alternative way of specifying command-line options.
-dnl These macros are needed to support a menu-based configurator.
-dnl This file also includes the macro, AM_READ_MYCONFIG, for reading
-dnl the 'myconfig.m4' file.
-
-dnl Send comments, improvements, bugs to Steve Lamm (slamm@netscape.com).
-
-
-dnl MOZ_ARG_ENABLE_BOOL( NAME, HELP, IF-YES [, IF-NO [, ELSE]])
-dnl MOZ_ARG_DISABLE_BOOL( NAME, HELP, IF-NO [, IF-YES [, ELSE]])
-dnl MOZ_ARG_ENABLE_STRING( NAME, HELP, IF-SET [, ELSE])
-dnl MOZ_ARG_ENABLE_BOOL_OR_STRING( NAME, HELP, IF-YES, IF-NO, IF-SET[, ELSE]]])
-dnl MOZ_ARG_WITH_BOOL( NAME, HELP, IF-YES [, IF-NO [, ELSE])
-dnl MOZ_ARG_WITHOUT_BOOL( NAME, HELP, IF-NO [, IF-YES [, ELSE])
-dnl MOZ_ARG_WITH_STRING( NAME, HELP, IF-SET [, ELSE])
-dnl MOZ_ARG_HEADER(Comment)
-dnl MOZ_CHECK_PTHREADS( NAME, IF-YES [, ELSE ])
-dnl MOZ_READ_MYCONFIG() - Read in 'myconfig.sh' file
-
-
-dnl MOZ_TWO_STRING_TEST(NAME, VAL, STR1, IF-STR1, STR2, IF-STR2 [, ELSE])
-AC_DEFUN([MOZ_TWO_STRING_TEST],
-[if test "[$2]" = "[$3]"; then
- ifelse([$4], , :, [$4])
- elif test "[$2]" = "[$5]"; then
- ifelse([$6], , :, [$6])
- else
- ifelse([$7], ,
- [AC_MSG_ERROR([Option, [$1], does not take an argument ([$2]).])],
- [$7])
- fi])
-
-dnl MOZ_ARG_ENABLE_BOOL(NAME, HELP, IF-YES [, IF-NO [, ELSE]])
-AC_DEFUN([MOZ_ARG_ENABLE_BOOL],
-[AC_ARG_ENABLE([$1], [$2],
- [MOZ_TWO_STRING_TEST([$1], [$enableval], yes, [$3], no, [$4])],
- [$5])])
-
-dnl MOZ_ARG_DISABLE_BOOL(NAME, HELP, IF-NO [, IF-YES [, ELSE]])
-AC_DEFUN([MOZ_ARG_DISABLE_BOOL],
-[AC_ARG_ENABLE([$1], [$2],
- [MOZ_TWO_STRING_TEST([$1], [$enableval], no, [$3], yes, [$4])],
- [$5])])
-
-dnl MOZ_ARG_ENABLE_STRING(NAME, HELP, IF-SET [, ELSE])
-AC_DEFUN([MOZ_ARG_ENABLE_STRING],
-[AC_ARG_ENABLE([$1], [$2], [$3], [$4])])
-
-dnl MOZ_ARG_ENABLE_BOOL_OR_STRING(NAME, HELP, IF-YES, IF-NO, IF-SET[, ELSE]]])
-AC_DEFUN([MOZ_ARG_ENABLE_BOOL_OR_STRING],
-[ifelse([$5], ,
- [errprint([Option, $1, needs an "IF-SET" argument.
-])
- m4exit(1)],
- [AC_ARG_ENABLE([$1], [$2],
- [MOZ_TWO_STRING_TEST([$1], [$enableval], yes, [$3], no, [$4], [$5])],
- [$6])])])
-
-dnl MOZ_ARG_WITH_BOOL(NAME, HELP, IF-YES [, IF-NO [, ELSE])
-AC_DEFUN([MOZ_ARG_WITH_BOOL],
-[AC_ARG_WITH([$1], [$2],
- [MOZ_TWO_STRING_TEST([$1], [$withval], yes, [$3], no, [$4])],
- [$5])])
-
-dnl MOZ_ARG_WITHOUT_BOOL(NAME, HELP, IF-NO [, IF-YES [, ELSE])
-AC_DEFUN([MOZ_ARG_WITHOUT_BOOL],
-[AC_ARG_WITH([$1], [$2],
- [MOZ_TWO_STRING_TEST([$1], [$withval], no, [$3], yes, [$4])],
- [$5])])
-
-dnl MOZ_ARG_WITH_STRING(NAME, HELP, IF-SET [, ELSE])
-AC_DEFUN([MOZ_ARG_WITH_STRING],
-[AC_ARG_WITH([$1], [$2], [$3], [$4])])
-
-dnl MOZ_ARG_HEADER(Comment)
-dnl This is used by webconfig to group options
-define(MOZ_ARG_HEADER, [# $1])
-
-dnl
-dnl Apparently, some systems cannot properly check for the pthread
-dnl library unless <pthread.h> is included so we need to test
-dnl using it
-dnl
-dnl MOZ_CHECK_PTHREADS(lib, success, failure)
-AC_DEFUN([MOZ_CHECK_PTHREADS],
-[
-AC_MSG_CHECKING([for pthread_create in -l$1])
-echo "
- #include <pthread.h>
- #include <stdlib.h>
- void *foo(void *v) { int a = 1; }
- int main() {
- pthread_t t;
- if (!pthread_create(&t, 0, &foo, 0)) {
- pthread_join(t, 0);
- }
- exit(0);
- }" > dummy.c ;
- echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -l[$1] $LDFLAGS $LIBS" 1>&5;
- ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -l[$1] $LDFLAGS $LIBS 2>&5;
- _res=$? ;
- rm -f dummy.c dummy${ac_exeext} ;
- if test "$_res" = "0"; then
- AC_MSG_RESULT([yes])
- [$2]
- else
- AC_MSG_RESULT([no])
- [$3]
- fi
-])
-
-dnl MOZ_READ_MYCONFIG() - Read in 'myconfig.sh' file
-AC_DEFUN([MOZ_READ_MOZCONFIG],
-[AC_REQUIRE([AC_INIT_BINSH])dnl
-# Read in '.mozconfig' script to set the initial options.
-# See the mozconfig2configure script for more details.
-_AUTOCONF_TOOLS_DIR=`dirname [$]0`/[$1]/build/autoconf
-. $_AUTOCONF_TOOLS_DIR/mozconfig2configure])
View
1,537 dependencies/js_src/build/autoconf/config.guess
@@ -1,1537 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
-# Free Software Foundation, Inc.
-
-timestamp='2009-08-19'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner. Please send patches (context
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
-# entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub. If it succeeds, it prints the system name on stdout, and
-# exits with 0. Otherwise, it exits with 1.
-#
-# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit ;;
- --version | -v )
- echo "$version" ; exit ;;
- --help | --h* | -h )
- echo "$usage"; exit ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help" >&2
- exit 1 ;;
- * )
- break ;;
- esac
-done
-
-if test $# != 0; then
- echo "$me: too many arguments$help" >&2
- exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int x;" > $dummy.c ;
- for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
- CC_FOR_BUILD="$c"; break ;
- fi ;
- done ;
- if test x"$CC_FOR_BUILD" = x ; then
- CC_FOR_BUILD=no_compiler_found ;
- fi
- ;;
- ,,*) CC_FOR_BUILD=$CC ;;
- ,*,*) CC_FOR_BUILD=$HOST_CC ;;