libv8 3.3.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/.gitmodules +3 -0
- data/Gemfile +4 -0
- data/README.md +44 -0
- data/Rakefile +73 -0
- data/ext/libv8/extconf.rb +9 -0
- data/lib/libv8.rb +15 -0
- data/lib/libv8/Makefile +38 -0
- data/lib/libv8/detect_cpu.rb +27 -0
- data/lib/libv8/fpic-on-linux-amd64.patch +13 -0
- data/lib/libv8/scons/CHANGES.txt +5334 -0
- data/lib/libv8/scons/LICENSE.txt +20 -0
- data/lib/libv8/scons/MANIFEST +199 -0
- data/lib/libv8/scons/PKG-INFO +13 -0
- data/lib/libv8/scons/README.txt +243 -0
- data/lib/libv8/scons/RELEASE.txt +98 -0
- data/lib/libv8/scons/engine/SCons/Action.py +1241 -0
- data/lib/libv8/scons/engine/SCons/Builder.py +877 -0
- data/lib/libv8/scons/engine/SCons/CacheDir.py +216 -0
- data/lib/libv8/scons/engine/SCons/Conftest.py +793 -0
- data/lib/libv8/scons/engine/SCons/Debug.py +220 -0
- data/lib/libv8/scons/engine/SCons/Defaults.py +480 -0
- data/lib/libv8/scons/engine/SCons/Environment.py +2318 -0
- data/lib/libv8/scons/engine/SCons/Errors.py +205 -0
- data/lib/libv8/scons/engine/SCons/Executor.py +633 -0
- data/lib/libv8/scons/engine/SCons/Job.py +435 -0
- data/lib/libv8/scons/engine/SCons/Memoize.py +244 -0
- data/lib/libv8/scons/engine/SCons/Node/Alias.py +152 -0
- data/lib/libv8/scons/engine/SCons/Node/FS.py +3142 -0
- data/lib/libv8/scons/engine/SCons/Node/Python.py +128 -0
- data/lib/libv8/scons/engine/SCons/Node/__init__.py +1328 -0
- data/lib/libv8/scons/engine/SCons/Options/BoolOption.py +50 -0
- data/lib/libv8/scons/engine/SCons/Options/EnumOption.py +50 -0
- data/lib/libv8/scons/engine/SCons/Options/ListOption.py +50 -0
- data/lib/libv8/scons/engine/SCons/Options/PackageOption.py +50 -0
- data/lib/libv8/scons/engine/SCons/Options/PathOption.py +76 -0
- data/lib/libv8/scons/engine/SCons/Options/__init__.py +67 -0
- data/lib/libv8/scons/engine/SCons/PathList.py +231 -0
- data/lib/libv8/scons/engine/SCons/Platform/__init__.py +241 -0
- data/lib/libv8/scons/engine/SCons/Platform/aix.py +69 -0
- data/lib/libv8/scons/engine/SCons/Platform/cygwin.py +55 -0
- data/lib/libv8/scons/engine/SCons/Platform/darwin.py +46 -0
- data/lib/libv8/scons/engine/SCons/Platform/hpux.py +46 -0
- data/lib/libv8/scons/engine/SCons/Platform/irix.py +44 -0
- data/lib/libv8/scons/engine/SCons/Platform/os2.py +58 -0
- data/lib/libv8/scons/engine/SCons/Platform/posix.py +263 -0
- data/lib/libv8/scons/engine/SCons/Platform/sunos.py +50 -0
- data/lib/libv8/scons/engine/SCons/Platform/win32.py +385 -0
- data/lib/libv8/scons/engine/SCons/SConf.py +1030 -0
- data/lib/libv8/scons/engine/SCons/SConsign.py +383 -0
- data/lib/libv8/scons/engine/SCons/Scanner/C.py +132 -0
- data/lib/libv8/scons/engine/SCons/Scanner/D.py +73 -0
- data/lib/libv8/scons/engine/SCons/Scanner/Dir.py +109 -0
- data/lib/libv8/scons/engine/SCons/Scanner/Fortran.py +316 -0
- data/lib/libv8/scons/engine/SCons/Scanner/IDL.py +48 -0
- data/lib/libv8/scons/engine/SCons/Scanner/LaTeX.py +384 -0
- data/lib/libv8/scons/engine/SCons/Scanner/Prog.py +101 -0
- data/lib/libv8/scons/engine/SCons/Scanner/RC.py +55 -0
- data/lib/libv8/scons/engine/SCons/Scanner/__init__.py +413 -0
- data/lib/libv8/scons/engine/SCons/Script/Interactive.py +384 -0
- data/lib/libv8/scons/engine/SCons/Script/Main.py +1334 -0
- data/lib/libv8/scons/engine/SCons/Script/SConsOptions.py +939 -0
- data/lib/libv8/scons/engine/SCons/Script/SConscript.py +640 -0
- data/lib/libv8/scons/engine/SCons/Script/__init__.py +412 -0
- data/lib/libv8/scons/engine/SCons/Sig.py +63 -0
- data/lib/libv8/scons/engine/SCons/Subst.py +904 -0
- data/lib/libv8/scons/engine/SCons/Taskmaster.py +1017 -0
- data/lib/libv8/scons/engine/SCons/Tool/386asm.py +61 -0
- data/lib/libv8/scons/engine/SCons/Tool/BitKeeper.py +67 -0
- data/lib/libv8/scons/engine/SCons/Tool/CVS.py +73 -0
- data/lib/libv8/scons/engine/SCons/Tool/FortranCommon.py +246 -0
- data/lib/libv8/scons/engine/SCons/Tool/JavaCommon.py +323 -0
- data/lib/libv8/scons/engine/SCons/Tool/MSCommon/__init__.py +56 -0
- data/lib/libv8/scons/engine/SCons/Tool/MSCommon/arch.py +61 -0
- data/lib/libv8/scons/engine/SCons/Tool/MSCommon/common.py +240 -0
- data/lib/libv8/scons/engine/SCons/Tool/MSCommon/netframework.py +82 -0
- data/lib/libv8/scons/engine/SCons/Tool/MSCommon/sdk.py +391 -0
- data/lib/libv8/scons/engine/SCons/Tool/MSCommon/vc.py +456 -0
- data/lib/libv8/scons/engine/SCons/Tool/MSCommon/vs.py +499 -0
- data/lib/libv8/scons/engine/SCons/Tool/Perforce.py +103 -0
- data/lib/libv8/scons/engine/SCons/Tool/PharLapCommon.py +137 -0
- data/lib/libv8/scons/engine/SCons/Tool/RCS.py +64 -0
- data/lib/libv8/scons/engine/SCons/Tool/SCCS.py +64 -0
- data/lib/libv8/scons/engine/SCons/Tool/Subversion.py +71 -0
- data/lib/libv8/scons/engine/SCons/Tool/__init__.py +681 -0
- data/lib/libv8/scons/engine/SCons/Tool/aixc++.py +82 -0
- data/lib/libv8/scons/engine/SCons/Tool/aixcc.py +74 -0
- data/lib/libv8/scons/engine/SCons/Tool/aixf77.py +80 -0
- data/lib/libv8/scons/engine/SCons/Tool/aixlink.py +76 -0
- data/lib/libv8/scons/engine/SCons/Tool/applelink.py +71 -0
- data/lib/libv8/scons/engine/SCons/Tool/ar.py +63 -0
- data/lib/libv8/scons/engine/SCons/Tool/as.py +78 -0
- data/lib/libv8/scons/engine/SCons/Tool/bcc32.py +81 -0
- data/lib/libv8/scons/engine/SCons/Tool/c++.py +99 -0
- data/lib/libv8/scons/engine/SCons/Tool/cc.py +102 -0
- data/lib/libv8/scons/engine/SCons/Tool/cvf.py +58 -0
- data/lib/libv8/scons/engine/SCons/Tool/default.py +50 -0
- data/lib/libv8/scons/engine/SCons/Tool/dmd.py +223 -0
- data/lib/libv8/scons/engine/SCons/Tool/dvi.py +64 -0
- data/lib/libv8/scons/engine/SCons/Tool/dvipdf.py +124 -0
- data/lib/libv8/scons/engine/SCons/Tool/dvips.py +94 -0
- data/lib/libv8/scons/engine/SCons/Tool/f77.py +62 -0
- data/lib/libv8/scons/engine/SCons/Tool/f90.py +62 -0
- data/lib/libv8/scons/engine/SCons/Tool/f95.py +63 -0
- data/lib/libv8/scons/engine/SCons/Tool/filesystem.py +98 -0
- data/lib/libv8/scons/engine/SCons/Tool/fortran.py +62 -0
- data/lib/libv8/scons/engine/SCons/Tool/g++.py +90 -0
- data/lib/libv8/scons/engine/SCons/Tool/g77.py +73 -0
- data/lib/libv8/scons/engine/SCons/Tool/gas.py +53 -0
- data/lib/libv8/scons/engine/SCons/Tool/gcc.py +80 -0
- data/lib/libv8/scons/engine/SCons/Tool/gfortran.py +64 -0
- data/lib/libv8/scons/engine/SCons/Tool/gnulink.py +63 -0
- data/lib/libv8/scons/engine/SCons/Tool/gs.py +81 -0
- data/lib/libv8/scons/engine/SCons/Tool/hpc++.py +84 -0
- data/lib/libv8/scons/engine/SCons/Tool/hpcc.py +53 -0
- data/lib/libv8/scons/engine/SCons/Tool/hplink.py +77 -0
- data/lib/libv8/scons/engine/SCons/Tool/icc.py +59 -0
- data/lib/libv8/scons/engine/SCons/Tool/icl.py +52 -0
- data/lib/libv8/scons/engine/SCons/Tool/ifl.py +72 -0
- data/lib/libv8/scons/engine/SCons/Tool/ifort.py +88 -0
- data/lib/libv8/scons/engine/SCons/Tool/ilink.py +59 -0
- data/lib/libv8/scons/engine/SCons/Tool/ilink32.py +60 -0
- data/lib/libv8/scons/engine/SCons/Tool/install.py +229 -0
- data/lib/libv8/scons/engine/SCons/Tool/intelc.py +482 -0
- data/lib/libv8/scons/engine/SCons/Tool/ipkg.py +67 -0
- data/lib/libv8/scons/engine/SCons/Tool/jar.py +110 -0
- data/lib/libv8/scons/engine/SCons/Tool/javac.py +230 -0
- data/lib/libv8/scons/engine/SCons/Tool/javah.py +137 -0
- data/lib/libv8/scons/engine/SCons/Tool/latex.py +79 -0
- data/lib/libv8/scons/engine/SCons/Tool/lex.py +97 -0
- data/lib/libv8/scons/engine/SCons/Tool/link.py +121 -0
- data/lib/libv8/scons/engine/SCons/Tool/linkloc.py +112 -0
- data/lib/libv8/scons/engine/SCons/Tool/m4.py +63 -0
- data/lib/libv8/scons/engine/SCons/Tool/masm.py +77 -0
- data/lib/libv8/scons/engine/SCons/Tool/midl.py +88 -0
- data/lib/libv8/scons/engine/SCons/Tool/mingw.py +158 -0
- data/lib/libv8/scons/engine/SCons/Tool/mslib.py +64 -0
- data/lib/libv8/scons/engine/SCons/Tool/mslink.py +266 -0
- data/lib/libv8/scons/engine/SCons/Tool/mssdk.py +50 -0
- data/lib/libv8/scons/engine/SCons/Tool/msvc.py +268 -0
- data/lib/libv8/scons/engine/SCons/Tool/msvs.py +1388 -0
- data/lib/libv8/scons/engine/SCons/Tool/mwcc.py +207 -0
- data/lib/libv8/scons/engine/SCons/Tool/mwld.py +107 -0
- data/lib/libv8/scons/engine/SCons/Tool/nasm.py +72 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/__init__.py +312 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/ipk.py +185 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/msi.py +527 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/rpm.py +365 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/src_tarbz2.py +43 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/src_targz.py +43 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/src_zip.py +43 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/tarbz2.py +44 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/targz.py +44 -0
- data/lib/libv8/scons/engine/SCons/Tool/packaging/zip.py +44 -0
- data/lib/libv8/scons/engine/SCons/Tool/pdf.py +78 -0
- data/lib/libv8/scons/engine/SCons/Tool/pdflatex.py +83 -0
- data/lib/libv8/scons/engine/SCons/Tool/pdftex.py +108 -0
- data/lib/libv8/scons/engine/SCons/Tool/qt.py +336 -0
- data/lib/libv8/scons/engine/SCons/Tool/rmic.py +120 -0
- data/lib/libv8/scons/engine/SCons/Tool/rpcgen.py +70 -0
- data/lib/libv8/scons/engine/SCons/Tool/rpm.py +132 -0
- data/lib/libv8/scons/engine/SCons/Tool/sgiar.py +68 -0
- data/lib/libv8/scons/engine/SCons/Tool/sgic++.py +58 -0
- data/lib/libv8/scons/engine/SCons/Tool/sgicc.py +53 -0
- data/lib/libv8/scons/engine/SCons/Tool/sgilink.py +63 -0
- data/lib/libv8/scons/engine/SCons/Tool/sunar.py +67 -0
- data/lib/libv8/scons/engine/SCons/Tool/sunc++.py +142 -0
- data/lib/libv8/scons/engine/SCons/Tool/suncc.py +58 -0
- data/lib/libv8/scons/engine/SCons/Tool/sunf77.py +63 -0
- data/lib/libv8/scons/engine/SCons/Tool/sunf90.py +64 -0
- data/lib/libv8/scons/engine/SCons/Tool/sunf95.py +64 -0
- data/lib/libv8/scons/engine/SCons/Tool/sunlink.py +77 -0
- data/lib/libv8/scons/engine/SCons/Tool/swig.py +182 -0
- data/lib/libv8/scons/engine/SCons/Tool/tar.py +73 -0
- data/lib/libv8/scons/engine/SCons/Tool/tex.py +813 -0
- data/lib/libv8/scons/engine/SCons/Tool/textfile.py +175 -0
- data/lib/libv8/scons/engine/SCons/Tool/tlib.py +53 -0
- data/lib/libv8/scons/engine/SCons/Tool/wix.py +99 -0
- data/lib/libv8/scons/engine/SCons/Tool/yacc.py +130 -0
- data/lib/libv8/scons/engine/SCons/Tool/zip.py +99 -0
- data/lib/libv8/scons/engine/SCons/Util.py +1492 -0
- data/lib/libv8/scons/engine/SCons/Variables/BoolVariable.py +89 -0
- data/lib/libv8/scons/engine/SCons/Variables/EnumVariable.py +103 -0
- data/lib/libv8/scons/engine/SCons/Variables/ListVariable.py +135 -0
- data/lib/libv8/scons/engine/SCons/Variables/PackageVariable.py +106 -0
- data/lib/libv8/scons/engine/SCons/Variables/PathVariable.py +147 -0
- data/lib/libv8/scons/engine/SCons/Variables/__init__.py +312 -0
- data/lib/libv8/scons/engine/SCons/Warnings.py +246 -0
- data/lib/libv8/scons/engine/SCons/__init__.py +49 -0
- data/lib/libv8/scons/engine/SCons/compat/__init__.py +237 -0
- data/lib/libv8/scons/engine/SCons/compat/_scons_builtins.py +150 -0
- data/lib/libv8/scons/engine/SCons/compat/_scons_collections.py +45 -0
- data/lib/libv8/scons/engine/SCons/compat/_scons_dbm.py +45 -0
- data/lib/libv8/scons/engine/SCons/compat/_scons_hashlib.py +76 -0
- data/lib/libv8/scons/engine/SCons/compat/_scons_io.py +45 -0
- data/lib/libv8/scons/engine/SCons/compat/_scons_sets.py +563 -0
- data/lib/libv8/scons/engine/SCons/compat/_scons_subprocess.py +1281 -0
- data/lib/libv8/scons/engine/SCons/cpp.py +589 -0
- data/lib/libv8/scons/engine/SCons/dblite.py +251 -0
- data/lib/libv8/scons/engine/SCons/exitfuncs.py +77 -0
- data/lib/libv8/scons/os_spawnv_fix.diff +83 -0
- data/lib/libv8/scons/scons-time.1 +1017 -0
- data/lib/libv8/scons/scons.1 +15219 -0
- data/lib/libv8/scons/sconsign.1 +208 -0
- data/lib/libv8/scons/script/scons +196 -0
- data/lib/libv8/scons/script/scons-time +1544 -0
- data/lib/libv8/scons/script/scons.bat +31 -0
- data/lib/libv8/scons/script/sconsign +513 -0
- data/lib/libv8/scons/setup.cfg +6 -0
- data/lib/libv8/scons/setup.py +425 -0
- data/lib/libv8/v8/.gitignore +35 -0
- data/lib/libv8/v8/AUTHORS +44 -0
- data/lib/libv8/v8/ChangeLog +2839 -0
- data/lib/libv8/v8/LICENSE +52 -0
- data/lib/libv8/v8/LICENSE.strongtalk +29 -0
- data/lib/libv8/v8/LICENSE.v8 +26 -0
- data/lib/libv8/v8/LICENSE.valgrind +45 -0
- data/lib/libv8/v8/SConstruct +1478 -0
- data/lib/libv8/v8/build/README.txt +49 -0
- data/lib/libv8/v8/build/all.gyp +18 -0
- data/lib/libv8/v8/build/armu.gypi +32 -0
- data/lib/libv8/v8/build/common.gypi +144 -0
- data/lib/libv8/v8/build/gyp_v8 +145 -0
- data/lib/libv8/v8/include/v8-debug.h +395 -0
- data/lib/libv8/v8/include/v8-preparser.h +117 -0
- data/lib/libv8/v8/include/v8-profiler.h +505 -0
- data/lib/libv8/v8/include/v8-testing.h +104 -0
- data/lib/libv8/v8/include/v8.h +4124 -0
- data/lib/libv8/v8/include/v8stdint.h +53 -0
- data/lib/libv8/v8/preparser/SConscript +38 -0
- data/lib/libv8/v8/preparser/preparser-process.cc +379 -0
- data/lib/libv8/v8/src/SConscript +368 -0
- data/lib/libv8/v8/src/accessors.cc +767 -0
- data/lib/libv8/v8/src/accessors.h +123 -0
- data/lib/libv8/v8/src/allocation-inl.h +49 -0
- data/lib/libv8/v8/src/allocation.cc +122 -0
- data/lib/libv8/v8/src/allocation.h +143 -0
- data/lib/libv8/v8/src/api.cc +5845 -0
- data/lib/libv8/v8/src/api.h +574 -0
- data/lib/libv8/v8/src/apinatives.js +110 -0
- data/lib/libv8/v8/src/apiutils.h +73 -0
- data/lib/libv8/v8/src/arguments.h +118 -0
- data/lib/libv8/v8/src/arm/assembler-arm-inl.h +353 -0
- data/lib/libv8/v8/src/arm/assembler-arm.cc +2661 -0
- data/lib/libv8/v8/src/arm/assembler-arm.h +1375 -0
- data/lib/libv8/v8/src/arm/builtins-arm.cc +1658 -0
- data/lib/libv8/v8/src/arm/code-stubs-arm.cc +6398 -0
- data/lib/libv8/v8/src/arm/code-stubs-arm.h +673 -0
- data/lib/libv8/v8/src/arm/codegen-arm.cc +52 -0
- data/lib/libv8/v8/src/arm/codegen-arm.h +91 -0
- data/lib/libv8/v8/src/arm/constants-arm.cc +152 -0
- data/lib/libv8/v8/src/arm/constants-arm.h +775 -0
- data/lib/libv8/v8/src/arm/cpu-arm.cc +120 -0
- data/lib/libv8/v8/src/arm/debug-arm.cc +317 -0
- data/lib/libv8/v8/src/arm/deoptimizer-arm.cc +754 -0
- data/lib/libv8/v8/src/arm/disasm-arm.cc +1506 -0
- data/lib/libv8/v8/src/arm/frames-arm.cc +45 -0
- data/lib/libv8/v8/src/arm/frames-arm.h +168 -0
- data/lib/libv8/v8/src/arm/full-codegen-arm.cc +4375 -0
- data/lib/libv8/v8/src/arm/ic-arm.cc +1562 -0
- data/lib/libv8/v8/src/arm/lithium-arm.cc +2206 -0
- data/lib/libv8/v8/src/arm/lithium-arm.h +2348 -0
- data/lib/libv8/v8/src/arm/lithium-codegen-arm.cc +4526 -0
- data/lib/libv8/v8/src/arm/lithium-codegen-arm.h +403 -0
- data/lib/libv8/v8/src/arm/lithium-gap-resolver-arm.cc +305 -0
- data/lib/libv8/v8/src/arm/lithium-gap-resolver-arm.h +84 -0
- data/lib/libv8/v8/src/arm/macro-assembler-arm.cc +3163 -0
- data/lib/libv8/v8/src/arm/macro-assembler-arm.h +1126 -0
- data/lib/libv8/v8/src/arm/regexp-macro-assembler-arm.cc +1287 -0
- data/lib/libv8/v8/src/arm/regexp-macro-assembler-arm.h +253 -0
- data/lib/libv8/v8/src/arm/simulator-arm.cc +3424 -0
- data/lib/libv8/v8/src/arm/simulator-arm.h +431 -0
- data/lib/libv8/v8/src/arm/stub-cache-arm.cc +4243 -0
- data/lib/libv8/v8/src/array.js +1366 -0
- data/lib/libv8/v8/src/assembler.cc +1207 -0
- data/lib/libv8/v8/src/assembler.h +858 -0
- data/lib/libv8/v8/src/ast-inl.h +112 -0
- data/lib/libv8/v8/src/ast.cc +1146 -0
- data/lib/libv8/v8/src/ast.h +2188 -0
- data/lib/libv8/v8/src/atomicops.h +167 -0
- data/lib/libv8/v8/src/atomicops_internals_arm_gcc.h +145 -0
- data/lib/libv8/v8/src/atomicops_internals_mips_gcc.h +169 -0
- data/lib/libv8/v8/src/atomicops_internals_x86_gcc.cc +133 -0
- data/lib/libv8/v8/src/atomicops_internals_x86_gcc.h +287 -0
- data/lib/libv8/v8/src/atomicops_internals_x86_macosx.h +301 -0
- data/lib/libv8/v8/src/atomicops_internals_x86_msvc.h +203 -0
- data/lib/libv8/v8/src/bignum-dtoa.cc +655 -0
- data/lib/libv8/v8/src/bignum-dtoa.h +81 -0
- data/lib/libv8/v8/src/bignum.cc +768 -0
- data/lib/libv8/v8/src/bignum.h +140 -0
- data/lib/libv8/v8/src/bootstrapper.cc +2184 -0
- data/lib/libv8/v8/src/bootstrapper.h +188 -0
- data/lib/libv8/v8/src/builtins.cc +1707 -0
- data/lib/libv8/v8/src/builtins.h +371 -0
- data/lib/libv8/v8/src/bytecodes-irregexp.h +105 -0
- data/lib/libv8/v8/src/cached-powers.cc +177 -0
- data/lib/libv8/v8/src/cached-powers.h +65 -0
- data/lib/libv8/v8/src/char-predicates-inl.h +94 -0
- data/lib/libv8/v8/src/char-predicates.h +67 -0
- data/lib/libv8/v8/src/checks.cc +110 -0
- data/lib/libv8/v8/src/checks.h +296 -0
- data/lib/libv8/v8/src/circular-queue-inl.h +53 -0
- data/lib/libv8/v8/src/circular-queue.cc +122 -0
- data/lib/libv8/v8/src/circular-queue.h +103 -0
- data/lib/libv8/v8/src/code-stubs.cc +267 -0
- data/lib/libv8/v8/src/code-stubs.h +1011 -0
- data/lib/libv8/v8/src/code.h +70 -0
- data/lib/libv8/v8/src/codegen.cc +231 -0
- data/lib/libv8/v8/src/codegen.h +84 -0
- data/lib/libv8/v8/src/compilation-cache.cc +540 -0
- data/lib/libv8/v8/src/compilation-cache.h +287 -0
- data/lib/libv8/v8/src/compiler.cc +786 -0
- data/lib/libv8/v8/src/compiler.h +312 -0
- data/lib/libv8/v8/src/contexts.cc +347 -0
- data/lib/libv8/v8/src/contexts.h +391 -0
- data/lib/libv8/v8/src/conversions-inl.h +106 -0
- data/lib/libv8/v8/src/conversions.cc +1131 -0
- data/lib/libv8/v8/src/conversions.h +135 -0
- data/lib/libv8/v8/src/counters.cc +93 -0
- data/lib/libv8/v8/src/counters.h +254 -0
- data/lib/libv8/v8/src/cpu-profiler-inl.h +101 -0
- data/lib/libv8/v8/src/cpu-profiler.cc +609 -0
- data/lib/libv8/v8/src/cpu-profiler.h +302 -0
- data/lib/libv8/v8/src/cpu.h +69 -0
- data/lib/libv8/v8/src/d8-debug.cc +367 -0
- data/lib/libv8/v8/src/d8-debug.h +158 -0
- data/lib/libv8/v8/src/d8-posix.cc +695 -0
- data/lib/libv8/v8/src/d8-readline.cc +130 -0
- data/lib/libv8/v8/src/d8-windows.cc +42 -0
- data/lib/libv8/v8/src/d8.cc +803 -0
- data/lib/libv8/v8/src/d8.gyp +91 -0
- data/lib/libv8/v8/src/d8.h +235 -0
- data/lib/libv8/v8/src/d8.js +2798 -0
- data/lib/libv8/v8/src/data-flow.cc +66 -0
- data/lib/libv8/v8/src/data-flow.h +205 -0
- data/lib/libv8/v8/src/date.js +1103 -0
- data/lib/libv8/v8/src/dateparser-inl.h +127 -0
- data/lib/libv8/v8/src/dateparser.cc +178 -0
- data/lib/libv8/v8/src/dateparser.h +266 -0
- data/lib/libv8/v8/src/debug-agent.cc +447 -0
- data/lib/libv8/v8/src/debug-agent.h +129 -0
- data/lib/libv8/v8/src/debug-debugger.js +2569 -0
- data/lib/libv8/v8/src/debug.cc +3165 -0
- data/lib/libv8/v8/src/debug.h +1057 -0
- data/lib/libv8/v8/src/deoptimizer.cc +1256 -0
- data/lib/libv8/v8/src/deoptimizer.h +602 -0
- data/lib/libv8/v8/src/disasm.h +80 -0
- data/lib/libv8/v8/src/disassembler.cc +343 -0
- data/lib/libv8/v8/src/disassembler.h +58 -0
- data/lib/libv8/v8/src/diy-fp.cc +58 -0
- data/lib/libv8/v8/src/diy-fp.h +117 -0
- data/lib/libv8/v8/src/double.h +238 -0
- data/lib/libv8/v8/src/dtoa.cc +103 -0
- data/lib/libv8/v8/src/dtoa.h +85 -0
- data/lib/libv8/v8/src/execution.cc +849 -0
- data/lib/libv8/v8/src/execution.h +297 -0
- data/lib/libv8/v8/src/extensions/experimental/break-iterator.cc +250 -0
- data/lib/libv8/v8/src/extensions/experimental/break-iterator.h +89 -0
- data/lib/libv8/v8/src/extensions/experimental/collator.cc +218 -0
- data/lib/libv8/v8/src/extensions/experimental/collator.h +69 -0
- data/lib/libv8/v8/src/extensions/experimental/experimental.gyp +94 -0
- data/lib/libv8/v8/src/extensions/experimental/i18n-extension.cc +78 -0
- data/lib/libv8/v8/src/extensions/experimental/i18n-extension.h +54 -0
- data/lib/libv8/v8/src/extensions/experimental/i18n-locale.cc +112 -0
- data/lib/libv8/v8/src/extensions/experimental/i18n-locale.h +60 -0
- data/lib/libv8/v8/src/extensions/experimental/i18n-utils.cc +43 -0
- data/lib/libv8/v8/src/extensions/experimental/i18n-utils.h +49 -0
- data/lib/libv8/v8/src/extensions/experimental/i18n.js +180 -0
- data/lib/libv8/v8/src/extensions/experimental/language-matcher.cc +251 -0
- data/lib/libv8/v8/src/extensions/experimental/language-matcher.h +95 -0
- data/lib/libv8/v8/src/extensions/externalize-string-extension.cc +141 -0
- data/lib/libv8/v8/src/extensions/externalize-string-extension.h +50 -0
- data/lib/libv8/v8/src/extensions/gc-extension.cc +58 -0
- data/lib/libv8/v8/src/extensions/gc-extension.h +49 -0
- data/lib/libv8/v8/src/factory.cc +1222 -0
- data/lib/libv8/v8/src/factory.h +442 -0
- data/lib/libv8/v8/src/fast-dtoa.cc +736 -0
- data/lib/libv8/v8/src/fast-dtoa.h +83 -0
- data/lib/libv8/v8/src/fixed-dtoa.cc +405 -0
- data/lib/libv8/v8/src/fixed-dtoa.h +55 -0
- data/lib/libv8/v8/src/flag-definitions.h +560 -0
- data/lib/libv8/v8/src/flags.cc +551 -0
- data/lib/libv8/v8/src/flags.h +79 -0
- data/lib/libv8/v8/src/frames-inl.h +247 -0
- data/lib/libv8/v8/src/frames.cc +1243 -0
- data/lib/libv8/v8/src/frames.h +870 -0
- data/lib/libv8/v8/src/full-codegen.cc +1374 -0
- data/lib/libv8/v8/src/full-codegen.h +771 -0
- data/lib/libv8/v8/src/func-name-inferrer.cc +92 -0
- data/lib/libv8/v8/src/func-name-inferrer.h +111 -0
- data/lib/libv8/v8/src/gdb-jit.cc +1555 -0
- data/lib/libv8/v8/src/gdb-jit.h +143 -0
- data/lib/libv8/v8/src/global-handles.cc +665 -0
- data/lib/libv8/v8/src/global-handles.h +284 -0
- data/lib/libv8/v8/src/globals.h +325 -0
- data/lib/libv8/v8/src/handles-inl.h +177 -0
- data/lib/libv8/v8/src/handles.cc +987 -0
- data/lib/libv8/v8/src/handles.h +382 -0
- data/lib/libv8/v8/src/hashmap.cc +230 -0
- data/lib/libv8/v8/src/hashmap.h +123 -0
- data/lib/libv8/v8/src/heap-inl.h +704 -0
- data/lib/libv8/v8/src/heap-profiler.cc +1173 -0
- data/lib/libv8/v8/src/heap-profiler.h +397 -0
- data/lib/libv8/v8/src/heap.cc +5930 -0
- data/lib/libv8/v8/src/heap.h +2268 -0
- data/lib/libv8/v8/src/hydrogen-instructions.cc +1769 -0
- data/lib/libv8/v8/src/hydrogen-instructions.h +3971 -0
- data/lib/libv8/v8/src/hydrogen.cc +6239 -0
- data/lib/libv8/v8/src/hydrogen.h +1202 -0
- data/lib/libv8/v8/src/ia32/assembler-ia32-inl.h +446 -0
- data/lib/libv8/v8/src/ia32/assembler-ia32.cc +2487 -0
- data/lib/libv8/v8/src/ia32/assembler-ia32.h +1144 -0
- data/lib/libv8/v8/src/ia32/builtins-ia32.cc +1621 -0
- data/lib/libv8/v8/src/ia32/code-stubs-ia32.cc +6198 -0
- data/lib/libv8/v8/src/ia32/code-stubs-ia32.h +517 -0
- data/lib/libv8/v8/src/ia32/codegen-ia32.cc +265 -0
- data/lib/libv8/v8/src/ia32/codegen-ia32.h +79 -0
- data/lib/libv8/v8/src/ia32/cpu-ia32.cc +88 -0
- data/lib/libv8/v8/src/ia32/debug-ia32.cc +312 -0
- data/lib/libv8/v8/src/ia32/deoptimizer-ia32.cc +774 -0
- data/lib/libv8/v8/src/ia32/disasm-ia32.cc +1628 -0
- data/lib/libv8/v8/src/ia32/frames-ia32.cc +45 -0
- data/lib/libv8/v8/src/ia32/frames-ia32.h +142 -0
- data/lib/libv8/v8/src/ia32/full-codegen-ia32.cc +4338 -0
- data/lib/libv8/v8/src/ia32/ic-ia32.cc +1597 -0
- data/lib/libv8/v8/src/ia32/lithium-codegen-ia32.cc +4461 -0
- data/lib/libv8/v8/src/ia32/lithium-codegen-ia32.h +375 -0
- data/lib/libv8/v8/src/ia32/lithium-gap-resolver-ia32.cc +475 -0
- data/lib/libv8/v8/src/ia32/lithium-gap-resolver-ia32.h +110 -0
- data/lib/libv8/v8/src/ia32/lithium-ia32.cc +2261 -0
- data/lib/libv8/v8/src/ia32/lithium-ia32.h +2396 -0
- data/lib/libv8/v8/src/ia32/macro-assembler-ia32.cc +2136 -0
- data/lib/libv8/v8/src/ia32/macro-assembler-ia32.h +775 -0
- data/lib/libv8/v8/src/ia32/regexp-macro-assembler-ia32.cc +1263 -0
- data/lib/libv8/v8/src/ia32/regexp-macro-assembler-ia32.h +216 -0
- data/lib/libv8/v8/src/ia32/simulator-ia32.cc +30 -0
- data/lib/libv8/v8/src/ia32/simulator-ia32.h +74 -0
- data/lib/libv8/v8/src/ia32/stub-cache-ia32.cc +3847 -0
- data/lib/libv8/v8/src/ic-inl.h +130 -0
- data/lib/libv8/v8/src/ic.cc +2577 -0
- data/lib/libv8/v8/src/ic.h +736 -0
- data/lib/libv8/v8/src/inspector.cc +63 -0
- data/lib/libv8/v8/src/inspector.h +62 -0
- data/lib/libv8/v8/src/interpreter-irregexp.cc +659 -0
- data/lib/libv8/v8/src/interpreter-irregexp.h +49 -0
- data/lib/libv8/v8/src/isolate-inl.h +50 -0
- data/lib/libv8/v8/src/isolate.cc +1869 -0
- data/lib/libv8/v8/src/isolate.h +1382 -0
- data/lib/libv8/v8/src/json-parser.cc +504 -0
- data/lib/libv8/v8/src/json-parser.h +161 -0
- data/lib/libv8/v8/src/json.js +342 -0
- data/lib/libv8/v8/src/jsregexp.cc +5385 -0
- data/lib/libv8/v8/src/jsregexp.h +1492 -0
- data/lib/libv8/v8/src/list-inl.h +212 -0
- data/lib/libv8/v8/src/list.h +174 -0
- data/lib/libv8/v8/src/lithium-allocator-inl.h +142 -0
- data/lib/libv8/v8/src/lithium-allocator.cc +2123 -0
- data/lib/libv8/v8/src/lithium-allocator.h +630 -0
- data/lib/libv8/v8/src/lithium.cc +190 -0
- data/lib/libv8/v8/src/lithium.h +597 -0
- data/lib/libv8/v8/src/liveedit-debugger.js +1082 -0
- data/lib/libv8/v8/src/liveedit.cc +1691 -0
- data/lib/libv8/v8/src/liveedit.h +180 -0
- data/lib/libv8/v8/src/liveobjectlist-inl.h +126 -0
- data/lib/libv8/v8/src/liveobjectlist.cc +2589 -0
- data/lib/libv8/v8/src/liveobjectlist.h +322 -0
- data/lib/libv8/v8/src/log-inl.h +59 -0
- data/lib/libv8/v8/src/log-utils.cc +428 -0
- data/lib/libv8/v8/src/log-utils.h +231 -0
- data/lib/libv8/v8/src/log.cc +1993 -0
- data/lib/libv8/v8/src/log.h +476 -0
- data/lib/libv8/v8/src/macro-assembler.h +120 -0
- data/lib/libv8/v8/src/macros.py +178 -0
- data/lib/libv8/v8/src/mark-compact.cc +3143 -0
- data/lib/libv8/v8/src/mark-compact.h +506 -0
- data/lib/libv8/v8/src/math.js +264 -0
- data/lib/libv8/v8/src/messages.cc +179 -0
- data/lib/libv8/v8/src/messages.h +113 -0
- data/lib/libv8/v8/src/messages.js +1096 -0
- data/lib/libv8/v8/src/mips/assembler-mips-inl.h +312 -0
- data/lib/libv8/v8/src/mips/assembler-mips.cc +1960 -0
- data/lib/libv8/v8/src/mips/assembler-mips.h +1138 -0
- data/lib/libv8/v8/src/mips/builtins-mips.cc +1628 -0
- data/lib/libv8/v8/src/mips/code-stubs-mips.cc +6656 -0
- data/lib/libv8/v8/src/mips/code-stubs-mips.h +682 -0
- data/lib/libv8/v8/src/mips/codegen-mips.cc +52 -0
- data/lib/libv8/v8/src/mips/codegen-mips.h +98 -0
- data/lib/libv8/v8/src/mips/constants-mips.cc +352 -0
- data/lib/libv8/v8/src/mips/constants-mips.h +739 -0
- data/lib/libv8/v8/src/mips/cpu-mips.cc +96 -0
- data/lib/libv8/v8/src/mips/debug-mips.cc +308 -0
- data/lib/libv8/v8/src/mips/deoptimizer-mips.cc +91 -0
- data/lib/libv8/v8/src/mips/disasm-mips.cc +1050 -0
- data/lib/libv8/v8/src/mips/frames-mips.cc +47 -0
- data/lib/libv8/v8/src/mips/frames-mips.h +219 -0
- data/lib/libv8/v8/src/mips/full-codegen-mips.cc +4388 -0
- data/lib/libv8/v8/src/mips/ic-mips.cc +1580 -0
- data/lib/libv8/v8/src/mips/lithium-codegen-mips.h +65 -0
- data/lib/libv8/v8/src/mips/lithium-mips.h +307 -0
- data/lib/libv8/v8/src/mips/macro-assembler-mips.cc +4056 -0
- data/lib/libv8/v8/src/mips/macro-assembler-mips.h +1214 -0
- data/lib/libv8/v8/src/mips/regexp-macro-assembler-mips.cc +1251 -0
- data/lib/libv8/v8/src/mips/regexp-macro-assembler-mips.h +252 -0
- data/lib/libv8/v8/src/mips/simulator-mips.cc +2621 -0
- data/lib/libv8/v8/src/mips/simulator-mips.h +401 -0
- data/lib/libv8/v8/src/mips/stub-cache-mips.cc +4285 -0
- data/lib/libv8/v8/src/mirror-debugger.js +2382 -0
- data/lib/libv8/v8/src/mksnapshot.cc +328 -0
- data/lib/libv8/v8/src/natives.h +64 -0
- data/lib/libv8/v8/src/objects-debug.cc +738 -0
- data/lib/libv8/v8/src/objects-inl.h +4323 -0
- data/lib/libv8/v8/src/objects-printer.cc +829 -0
- data/lib/libv8/v8/src/objects-visiting.cc +148 -0
- data/lib/libv8/v8/src/objects-visiting.h +424 -0
- data/lib/libv8/v8/src/objects.cc +10585 -0
- data/lib/libv8/v8/src/objects.h +6838 -0
- data/lib/libv8/v8/src/parser.cc +4997 -0
- data/lib/libv8/v8/src/parser.h +765 -0
- data/lib/libv8/v8/src/platform-cygwin.cc +779 -0
- data/lib/libv8/v8/src/platform-freebsd.cc +826 -0
- data/lib/libv8/v8/src/platform-linux.cc +1149 -0
- data/lib/libv8/v8/src/platform-macos.cc +830 -0
- data/lib/libv8/v8/src/platform-nullos.cc +479 -0
- data/lib/libv8/v8/src/platform-openbsd.cc +640 -0
- data/lib/libv8/v8/src/platform-posix.cc +424 -0
- data/lib/libv8/v8/src/platform-solaris.cc +762 -0
- data/lib/libv8/v8/src/platform-tls-mac.h +62 -0
- data/lib/libv8/v8/src/platform-tls-win32.h +62 -0
- data/lib/libv8/v8/src/platform-tls.h +50 -0
- data/lib/libv8/v8/src/platform-win32.cc +2021 -0
- data/lib/libv8/v8/src/platform.h +667 -0
- data/lib/libv8/v8/src/preparse-data-format.h +62 -0
- data/lib/libv8/v8/src/preparse-data.cc +183 -0
- data/lib/libv8/v8/src/preparse-data.h +225 -0
- data/lib/libv8/v8/src/preparser-api.cc +220 -0
- data/lib/libv8/v8/src/preparser.cc +1450 -0
- data/lib/libv8/v8/src/preparser.h +493 -0
- data/lib/libv8/v8/src/prettyprinter.cc +1493 -0
- data/lib/libv8/v8/src/prettyprinter.h +223 -0
- data/lib/libv8/v8/src/profile-generator-inl.h +128 -0
- data/lib/libv8/v8/src/profile-generator.cc +3098 -0
- data/lib/libv8/v8/src/profile-generator.h +1126 -0
- data/lib/libv8/v8/src/property.cc +105 -0
- data/lib/libv8/v8/src/property.h +365 -0
- data/lib/libv8/v8/src/proxy.js +83 -0
- data/lib/libv8/v8/src/regexp-macro-assembler-irregexp-inl.h +78 -0
- data/lib/libv8/v8/src/regexp-macro-assembler-irregexp.cc +471 -0
- data/lib/libv8/v8/src/regexp-macro-assembler-irregexp.h +142 -0
- data/lib/libv8/v8/src/regexp-macro-assembler-tracer.cc +373 -0
- data/lib/libv8/v8/src/regexp-macro-assembler-tracer.h +104 -0
- data/lib/libv8/v8/src/regexp-macro-assembler.cc +267 -0
- data/lib/libv8/v8/src/regexp-macro-assembler.h +243 -0
- data/lib/libv8/v8/src/regexp-stack.cc +111 -0
- data/lib/libv8/v8/src/regexp-stack.h +147 -0
- data/lib/libv8/v8/src/regexp.js +483 -0
- data/lib/libv8/v8/src/rewriter.cc +360 -0
- data/lib/libv8/v8/src/rewriter.h +50 -0
- data/lib/libv8/v8/src/runtime-profiler.cc +489 -0
- data/lib/libv8/v8/src/runtime-profiler.h +201 -0
- data/lib/libv8/v8/src/runtime.cc +12227 -0
- data/lib/libv8/v8/src/runtime.h +652 -0
- data/lib/libv8/v8/src/runtime.js +649 -0
- data/lib/libv8/v8/src/safepoint-table.cc +256 -0
- data/lib/libv8/v8/src/safepoint-table.h +270 -0
- data/lib/libv8/v8/src/scanner-base.cc +952 -0
- data/lib/libv8/v8/src/scanner-base.h +670 -0
- data/lib/libv8/v8/src/scanner.cc +345 -0
- data/lib/libv8/v8/src/scanner.h +146 -0
- data/lib/libv8/v8/src/scopeinfo.cc +646 -0
- data/lib/libv8/v8/src/scopeinfo.h +254 -0
- data/lib/libv8/v8/src/scopes.cc +1150 -0
- data/lib/libv8/v8/src/scopes.h +507 -0
- data/lib/libv8/v8/src/serialize.cc +1574 -0
- data/lib/libv8/v8/src/serialize.h +589 -0
- data/lib/libv8/v8/src/shell.h +55 -0
- data/lib/libv8/v8/src/simulator.h +43 -0
- data/lib/libv8/v8/src/small-pointer-list.h +163 -0
- data/lib/libv8/v8/src/smart-pointer.h +109 -0
- data/lib/libv8/v8/src/snapshot-common.cc +83 -0
- data/lib/libv8/v8/src/snapshot-empty.cc +54 -0
- data/lib/libv8/v8/src/snapshot.h +91 -0
- data/lib/libv8/v8/src/spaces-inl.h +529 -0
- data/lib/libv8/v8/src/spaces.cc +3145 -0
- data/lib/libv8/v8/src/spaces.h +2369 -0
- data/lib/libv8/v8/src/splay-tree-inl.h +310 -0
- data/lib/libv8/v8/src/splay-tree.h +205 -0
- data/lib/libv8/v8/src/string-search.cc +41 -0
- data/lib/libv8/v8/src/string-search.h +568 -0
- data/lib/libv8/v8/src/string-stream.cc +592 -0
- data/lib/libv8/v8/src/string-stream.h +191 -0
- data/lib/libv8/v8/src/string.js +994 -0
- data/lib/libv8/v8/src/strtod.cc +440 -0
- data/lib/libv8/v8/src/strtod.h +40 -0
- data/lib/libv8/v8/src/stub-cache.cc +1965 -0
- data/lib/libv8/v8/src/stub-cache.h +924 -0
- data/lib/libv8/v8/src/third_party/valgrind/valgrind.h +3925 -0
- data/lib/libv8/v8/src/token.cc +63 -0
- data/lib/libv8/v8/src/token.h +288 -0
- data/lib/libv8/v8/src/type-info.cc +507 -0
- data/lib/libv8/v8/src/type-info.h +272 -0
- data/lib/libv8/v8/src/unbound-queue-inl.h +95 -0
- data/lib/libv8/v8/src/unbound-queue.h +69 -0
- data/lib/libv8/v8/src/unicode-inl.h +238 -0
- data/lib/libv8/v8/src/unicode.cc +1624 -0
- data/lib/libv8/v8/src/unicode.h +280 -0
- data/lib/libv8/v8/src/uri.js +408 -0
- data/lib/libv8/v8/src/utils-inl.h +48 -0
- data/lib/libv8/v8/src/utils.cc +371 -0
- data/lib/libv8/v8/src/utils.h +800 -0
- data/lib/libv8/v8/src/v8-counters.cc +62 -0
- data/lib/libv8/v8/src/v8-counters.h +314 -0
- data/lib/libv8/v8/src/v8.cc +213 -0
- data/lib/libv8/v8/src/v8.h +131 -0
- data/lib/libv8/v8/src/v8checks.h +64 -0
- data/lib/libv8/v8/src/v8dll-main.cc +44 -0
- data/lib/libv8/v8/src/v8globals.h +512 -0
- data/lib/libv8/v8/src/v8memory.h +82 -0
- data/lib/libv8/v8/src/v8natives.js +1310 -0
- data/lib/libv8/v8/src/v8preparserdll-main.cc +39 -0
- data/lib/libv8/v8/src/v8threads.cc +464 -0
- data/lib/libv8/v8/src/v8threads.h +165 -0
- data/lib/libv8/v8/src/v8utils.h +319 -0
- data/lib/libv8/v8/src/variables.cc +114 -0
- data/lib/libv8/v8/src/variables.h +167 -0
- data/lib/libv8/v8/src/version.cc +116 -0
- data/lib/libv8/v8/src/version.h +68 -0
- data/lib/libv8/v8/src/vm-state-inl.h +138 -0
- data/lib/libv8/v8/src/vm-state.h +71 -0
- data/lib/libv8/v8/src/win32-headers.h +96 -0
- data/lib/libv8/v8/src/x64/assembler-x64-inl.h +462 -0
- data/lib/libv8/v8/src/x64/assembler-x64.cc +3027 -0
- data/lib/libv8/v8/src/x64/assembler-x64.h +1633 -0
- data/lib/libv8/v8/src/x64/builtins-x64.cc +1520 -0
- data/lib/libv8/v8/src/x64/code-stubs-x64.cc +5132 -0
- data/lib/libv8/v8/src/x64/code-stubs-x64.h +514 -0
- data/lib/libv8/v8/src/x64/codegen-x64.cc +146 -0
- data/lib/libv8/v8/src/x64/codegen-x64.h +76 -0
- data/lib/libv8/v8/src/x64/cpu-x64.cc +88 -0
- data/lib/libv8/v8/src/x64/debug-x64.cc +319 -0
- data/lib/libv8/v8/src/x64/deoptimizer-x64.cc +815 -0
- data/lib/libv8/v8/src/x64/disasm-x64.cc +1832 -0
- data/lib/libv8/v8/src/x64/frames-x64.cc +45 -0
- data/lib/libv8/v8/src/x64/frames-x64.h +130 -0
- data/lib/libv8/v8/src/x64/full-codegen-x64.cc +4318 -0
- data/lib/libv8/v8/src/x64/ic-x64.cc +1608 -0
- data/lib/libv8/v8/src/x64/lithium-codegen-x64.cc +4267 -0
- data/lib/libv8/v8/src/x64/lithium-codegen-x64.h +367 -0
- data/lib/libv8/v8/src/x64/lithium-gap-resolver-x64.cc +320 -0
- data/lib/libv8/v8/src/x64/lithium-gap-resolver-x64.h +74 -0
- data/lib/libv8/v8/src/x64/lithium-x64.cc +2202 -0
- data/lib/libv8/v8/src/x64/lithium-x64.h +2333 -0
- data/lib/libv8/v8/src/x64/macro-assembler-x64.cc +3745 -0
- data/lib/libv8/v8/src/x64/macro-assembler-x64.h +1290 -0
- data/lib/libv8/v8/src/x64/regexp-macro-assembler-x64.cc +1398 -0
- data/lib/libv8/v8/src/x64/regexp-macro-assembler-x64.h +282 -0
- data/lib/libv8/v8/src/x64/simulator-x64.cc +27 -0
- data/lib/libv8/v8/src/x64/simulator-x64.h +72 -0
- data/lib/libv8/v8/src/x64/stub-cache-x64.cc +3610 -0
- data/lib/libv8/v8/src/zone-inl.h +140 -0
- data/lib/libv8/v8/src/zone.cc +196 -0
- data/lib/libv8/v8/src/zone.h +240 -0
- data/lib/libv8/v8/tools/codemap.js +265 -0
- data/lib/libv8/v8/tools/consarray.js +93 -0
- data/lib/libv8/v8/tools/csvparser.js +78 -0
- data/lib/libv8/v8/tools/disasm.py +92 -0
- data/lib/libv8/v8/tools/freebsd-tick-processor +10 -0
- data/lib/libv8/v8/tools/gc-nvp-trace-processor.py +342 -0
- data/lib/libv8/v8/tools/gcmole/README +62 -0
- data/lib/libv8/v8/tools/gcmole/gccause.lua +60 -0
- data/lib/libv8/v8/tools/gcmole/gcmole.cc +1261 -0
- data/lib/libv8/v8/tools/gcmole/gcmole.lua +378 -0
- data/lib/libv8/v8/tools/generate-ten-powers.scm +286 -0
- data/lib/libv8/v8/tools/grokdump.py +841 -0
- data/lib/libv8/v8/tools/gyp/v8.gyp +995 -0
- data/lib/libv8/v8/tools/js2c.py +364 -0
- data/lib/libv8/v8/tools/jsmin.py +280 -0
- data/lib/libv8/v8/tools/linux-tick-processor +35 -0
- data/lib/libv8/v8/tools/ll_prof.py +942 -0
- data/lib/libv8/v8/tools/logreader.js +185 -0
- data/lib/libv8/v8/tools/mac-nm +18 -0
- data/lib/libv8/v8/tools/mac-tick-processor +6 -0
- data/lib/libv8/v8/tools/oom_dump/README +31 -0
- data/lib/libv8/v8/tools/oom_dump/SConstruct +42 -0
- data/lib/libv8/v8/tools/oom_dump/oom_dump.cc +288 -0
- data/lib/libv8/v8/tools/presubmit.py +305 -0
- data/lib/libv8/v8/tools/process-heap-prof.py +120 -0
- data/lib/libv8/v8/tools/profile.js +751 -0
- data/lib/libv8/v8/tools/profile_view.js +219 -0
- data/lib/libv8/v8/tools/run-valgrind.py +77 -0
- data/lib/libv8/v8/tools/splaytree.js +316 -0
- data/lib/libv8/v8/tools/stats-viewer.py +468 -0
- data/lib/libv8/v8/tools/test.py +1510 -0
- data/lib/libv8/v8/tools/tickprocessor-driver.js +59 -0
- data/lib/libv8/v8/tools/tickprocessor.js +877 -0
- data/lib/libv8/v8/tools/utils.py +96 -0
- data/lib/libv8/v8/tools/visual_studio/README.txt +12 -0
- data/lib/libv8/v8/tools/windows-tick-processor.bat +30 -0
- data/lib/libv8/version.rb +4 -0
- data/libv8.gemspec +31 -0
- metadata +800 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
"""SCons.Tool.Perforce.py
|
2
|
+
|
3
|
+
Tool-specific initialization for Perforce Source Code Management system.
|
4
|
+
|
5
|
+
There normally shouldn't be any need to import this module directly.
|
6
|
+
It will usually be imported through the generic SCons.Tool.Tool()
|
7
|
+
selection method.
|
8
|
+
|
9
|
+
"""
|
10
|
+
|
11
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
12
|
+
#
|
13
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
14
|
+
# a copy of this software and associated documentation files (the
|
15
|
+
# "Software"), to deal in the Software without restriction, including
|
16
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
17
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
18
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
19
|
+
# the following conditions:
|
20
|
+
#
|
21
|
+
# The above copyright notice and this permission notice shall be included
|
22
|
+
# in all copies or substantial portions of the Software.
|
23
|
+
#
|
24
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
25
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
26
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
27
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
28
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
29
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
30
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
31
|
+
|
32
|
+
__revision__ = "src/engine/SCons/Tool/Perforce.py 5134 2010/08/16 23:02:40 bdeegan"
|
33
|
+
|
34
|
+
import os
|
35
|
+
|
36
|
+
import SCons.Action
|
37
|
+
import SCons.Builder
|
38
|
+
import SCons.Node.FS
|
39
|
+
import SCons.Util
|
40
|
+
|
41
|
+
# This function should maybe be moved to SCons.Util?
|
42
|
+
from SCons.Tool.PharLapCommon import addPathIfNotExists
|
43
|
+
|
44
|
+
|
45
|
+
# Variables that we want to import from the base OS environment.
|
46
|
+
_import_env = [ 'P4PORT', 'P4CLIENT', 'P4USER', 'USER', 'USERNAME', 'P4PASSWD',
|
47
|
+
'P4CHARSET', 'P4LANGUAGE', 'SystemRoot' ]
|
48
|
+
|
49
|
+
PerforceAction = SCons.Action.Action('$P4COM', '$P4COMSTR')
|
50
|
+
|
51
|
+
def generate(env):
|
52
|
+
"""Add a Builder factory function and construction variables for
|
53
|
+
Perforce to an Environment."""
|
54
|
+
|
55
|
+
def PerforceFactory(env=env):
|
56
|
+
""" """
|
57
|
+
import SCons.Warnings as W
|
58
|
+
W.warn(W.DeprecatedSourceCodeWarning, """The Perforce() factory is deprecated and there is no replacement.""")
|
59
|
+
return SCons.Builder.Builder(action = PerforceAction, env = env)
|
60
|
+
|
61
|
+
#setattr(env, 'Perforce', PerforceFactory)
|
62
|
+
env.Perforce = PerforceFactory
|
63
|
+
|
64
|
+
env['P4'] = 'p4'
|
65
|
+
env['P4FLAGS'] = SCons.Util.CLVar('')
|
66
|
+
env['P4COM'] = '$P4 $P4FLAGS sync $TARGET'
|
67
|
+
try:
|
68
|
+
environ = env['ENV']
|
69
|
+
except KeyError:
|
70
|
+
environ = {}
|
71
|
+
env['ENV'] = environ
|
72
|
+
|
73
|
+
# Perforce seems to use the PWD environment variable rather than
|
74
|
+
# calling getcwd() for itself, which is odd. If no PWD variable
|
75
|
+
# is present, p4 WILL call getcwd, but this seems to cause problems
|
76
|
+
# with good ol' Windows's tilde-mangling for long file names.
|
77
|
+
environ['PWD'] = env.Dir('#').get_abspath()
|
78
|
+
|
79
|
+
for var in _import_env:
|
80
|
+
v = os.environ.get(var)
|
81
|
+
if v:
|
82
|
+
environ[var] = v
|
83
|
+
|
84
|
+
if SCons.Util.can_read_reg:
|
85
|
+
# If we can read the registry, add the path to Perforce to our environment.
|
86
|
+
try:
|
87
|
+
k=SCons.Util.RegOpenKeyEx(SCons.Util.hkey_mod.HKEY_LOCAL_MACHINE,
|
88
|
+
'Software\\Perforce\\environment')
|
89
|
+
val, tok = SCons.Util.RegQueryValueEx(k, 'P4INSTROOT')
|
90
|
+
addPathIfNotExists(environ, 'PATH', val)
|
91
|
+
except SCons.Util.RegError:
|
92
|
+
# Can't detect where Perforce is, hope the user has it set in the
|
93
|
+
# PATH.
|
94
|
+
pass
|
95
|
+
|
96
|
+
def exists(env):
|
97
|
+
return env.Detect('p4')
|
98
|
+
|
99
|
+
# Local Variables:
|
100
|
+
# tab-width:4
|
101
|
+
# indent-tabs-mode:nil
|
102
|
+
# End:
|
103
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|
@@ -0,0 +1,137 @@
|
|
1
|
+
"""SCons.Tool.PharLapCommon
|
2
|
+
|
3
|
+
This module contains common code used by all Tools for the
|
4
|
+
Phar Lap ETS tool chain. Right now, this is linkloc and
|
5
|
+
386asm.
|
6
|
+
|
7
|
+
"""
|
8
|
+
|
9
|
+
#
|
10
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
11
|
+
#
|
12
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
13
|
+
# a copy of this software and associated documentation files (the
|
14
|
+
# "Software"), to deal in the Software without restriction, including
|
15
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
16
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
17
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
18
|
+
# the following conditions:
|
19
|
+
#
|
20
|
+
# The above copyright notice and this permission notice shall be included
|
21
|
+
# in all copies or substantial portions of the Software.
|
22
|
+
#
|
23
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
24
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
25
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
26
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
27
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
28
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
29
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
|
+
#
|
31
|
+
|
32
|
+
__revision__ = "src/engine/SCons/Tool/PharLapCommon.py 5134 2010/08/16 23:02:40 bdeegan"
|
33
|
+
|
34
|
+
import os
|
35
|
+
import os.path
|
36
|
+
import SCons.Errors
|
37
|
+
import SCons.Util
|
38
|
+
import re
|
39
|
+
|
40
|
+
def getPharLapPath():
|
41
|
+
"""Reads the registry to find the installed path of the Phar Lap ETS
|
42
|
+
development kit.
|
43
|
+
|
44
|
+
Raises UserError if no installed version of Phar Lap can
|
45
|
+
be found."""
|
46
|
+
|
47
|
+
if not SCons.Util.can_read_reg:
|
48
|
+
raise SCons.Errors.InternalError("No Windows registry module was found")
|
49
|
+
try:
|
50
|
+
k=SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE,
|
51
|
+
'SOFTWARE\\Pharlap\\ETS')
|
52
|
+
val, type = SCons.Util.RegQueryValueEx(k, 'BaseDir')
|
53
|
+
|
54
|
+
# The following is a hack...there is (not surprisingly)
|
55
|
+
# an odd issue in the Phar Lap plug in that inserts
|
56
|
+
# a bunch of junk data after the phar lap path in the
|
57
|
+
# registry. We must trim it.
|
58
|
+
idx=val.find('\0')
|
59
|
+
if idx >= 0:
|
60
|
+
val = val[:idx]
|
61
|
+
|
62
|
+
return os.path.normpath(val)
|
63
|
+
except SCons.Util.RegError:
|
64
|
+
raise SCons.Errors.UserError("Cannot find Phar Lap ETS path in the registry. Is it installed properly?")
|
65
|
+
|
66
|
+
REGEX_ETS_VER = re.compile(r'#define\s+ETS_VER\s+([0-9]+)')
|
67
|
+
|
68
|
+
def getPharLapVersion():
|
69
|
+
"""Returns the version of the installed ETS Tool Suite as a
|
70
|
+
decimal number. This version comes from the ETS_VER #define in
|
71
|
+
the embkern.h header. For example, '#define ETS_VER 1010' (which
|
72
|
+
is what Phar Lap 10.1 defines) would cause this method to return
|
73
|
+
1010. Phar Lap 9.1 does not have such a #define, but this method
|
74
|
+
will return 910 as a default.
|
75
|
+
|
76
|
+
Raises UserError if no installed version of Phar Lap can
|
77
|
+
be found."""
|
78
|
+
|
79
|
+
include_path = os.path.join(getPharLapPath(), os.path.normpath("include/embkern.h"))
|
80
|
+
if not os.path.exists(include_path):
|
81
|
+
raise SCons.Errors.UserError("Cannot find embkern.h in ETS include directory.\nIs Phar Lap ETS installed properly?")
|
82
|
+
mo = REGEX_ETS_VER.search(open(include_path, 'r').read())
|
83
|
+
if mo:
|
84
|
+
return int(mo.group(1))
|
85
|
+
# Default return for Phar Lap 9.1
|
86
|
+
return 910
|
87
|
+
|
88
|
+
def addPathIfNotExists(env_dict, key, path, sep=os.pathsep):
|
89
|
+
"""This function will take 'key' out of the dictionary
|
90
|
+
'env_dict', then add the path 'path' to that key if it is not
|
91
|
+
already there. This treats the value of env_dict[key] as if it
|
92
|
+
has a similar format to the PATH variable...a list of paths
|
93
|
+
separated by tokens. The 'path' will get added to the list if it
|
94
|
+
is not already there."""
|
95
|
+
try:
|
96
|
+
is_list = 1
|
97
|
+
paths = env_dict[key]
|
98
|
+
if not SCons.Util.is_List(env_dict[key]):
|
99
|
+
paths = paths.split(sep)
|
100
|
+
is_list = 0
|
101
|
+
if os.path.normcase(path) not in list(map(os.path.normcase, paths)):
|
102
|
+
paths = [ path ] + paths
|
103
|
+
if is_list:
|
104
|
+
env_dict[key] = paths
|
105
|
+
else:
|
106
|
+
env_dict[key] = sep.join(paths)
|
107
|
+
except KeyError:
|
108
|
+
env_dict[key] = path
|
109
|
+
|
110
|
+
def addPharLapPaths(env):
|
111
|
+
"""This function adds the path to the Phar Lap binaries, includes,
|
112
|
+
and libraries, if they are not already there."""
|
113
|
+
ph_path = getPharLapPath()
|
114
|
+
|
115
|
+
try:
|
116
|
+
env_dict = env['ENV']
|
117
|
+
except KeyError:
|
118
|
+
env_dict = {}
|
119
|
+
env['ENV'] = env_dict
|
120
|
+
addPathIfNotExists(env_dict, 'PATH',
|
121
|
+
os.path.join(ph_path, 'bin'))
|
122
|
+
addPathIfNotExists(env_dict, 'INCLUDE',
|
123
|
+
os.path.join(ph_path, 'include'))
|
124
|
+
addPathIfNotExists(env_dict, 'LIB',
|
125
|
+
os.path.join(ph_path, 'lib'))
|
126
|
+
addPathIfNotExists(env_dict, 'LIB',
|
127
|
+
os.path.join(ph_path, os.path.normpath('lib/vclib')))
|
128
|
+
|
129
|
+
env['PHARLAP_PATH'] = getPharLapPath()
|
130
|
+
env['PHARLAP_VERSION'] = str(getPharLapVersion())
|
131
|
+
|
132
|
+
|
133
|
+
# Local Variables:
|
134
|
+
# tab-width:4
|
135
|
+
# indent-tabs-mode:nil
|
136
|
+
# End:
|
137
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"""SCons.Tool.RCS.py
|
2
|
+
|
3
|
+
Tool-specific initialization for RCS.
|
4
|
+
|
5
|
+
There normally shouldn't be any need to import this module directly.
|
6
|
+
It will usually be imported through the generic SCons.Tool.Tool()
|
7
|
+
selection method.
|
8
|
+
|
9
|
+
"""
|
10
|
+
|
11
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
12
|
+
#
|
13
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
14
|
+
# a copy of this software and associated documentation files (the
|
15
|
+
# "Software"), to deal in the Software without restriction, including
|
16
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
17
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
18
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
19
|
+
# the following conditions:
|
20
|
+
#
|
21
|
+
# The above copyright notice and this permission notice shall be included
|
22
|
+
# in all copies or substantial portions of the Software.
|
23
|
+
#
|
24
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
25
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
26
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
27
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
28
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
29
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
30
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
31
|
+
|
32
|
+
__revision__ = "src/engine/SCons/Tool/RCS.py 5134 2010/08/16 23:02:40 bdeegan"
|
33
|
+
|
34
|
+
import SCons.Action
|
35
|
+
import SCons.Builder
|
36
|
+
import SCons.Util
|
37
|
+
|
38
|
+
def generate(env):
|
39
|
+
"""Add a Builder factory function and construction variables for
|
40
|
+
RCS to an Environment."""
|
41
|
+
|
42
|
+
def RCSFactory(env=env):
|
43
|
+
""" """
|
44
|
+
import SCons.Warnings as W
|
45
|
+
W.warn(W.DeprecatedSourceCodeWarning, """The RCS() factory is deprecated and there is no replacement.""")
|
46
|
+
act = SCons.Action.Action('$RCS_COCOM', '$RCS_COCOMSTR')
|
47
|
+
return SCons.Builder.Builder(action = act, env = env)
|
48
|
+
|
49
|
+
#setattr(env, 'RCS', RCSFactory)
|
50
|
+
env.RCS = RCSFactory
|
51
|
+
|
52
|
+
env['RCS'] = 'rcs'
|
53
|
+
env['RCS_CO'] = 'co'
|
54
|
+
env['RCS_COFLAGS'] = SCons.Util.CLVar('')
|
55
|
+
env['RCS_COCOM'] = '$RCS_CO $RCS_COFLAGS $TARGET'
|
56
|
+
|
57
|
+
def exists(env):
|
58
|
+
return env.Detect('rcs')
|
59
|
+
|
60
|
+
# Local Variables:
|
61
|
+
# tab-width:4
|
62
|
+
# indent-tabs-mode:nil
|
63
|
+
# End:
|
64
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"""SCons.Tool.SCCS.py
|
2
|
+
|
3
|
+
Tool-specific initialization for SCCS.
|
4
|
+
|
5
|
+
There normally shouldn't be any need to import this module directly.
|
6
|
+
It will usually be imported through the generic SCons.Tool.Tool()
|
7
|
+
selection method.
|
8
|
+
|
9
|
+
"""
|
10
|
+
|
11
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
12
|
+
#
|
13
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
14
|
+
# a copy of this software and associated documentation files (the
|
15
|
+
# "Software"), to deal in the Software without restriction, including
|
16
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
17
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
18
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
19
|
+
# the following conditions:
|
20
|
+
#
|
21
|
+
# The above copyright notice and this permission notice shall be included
|
22
|
+
# in all copies or substantial portions of the Software.
|
23
|
+
#
|
24
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
25
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
26
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
27
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
28
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
29
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
30
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
31
|
+
|
32
|
+
__revision__ = "src/engine/SCons/Tool/SCCS.py 5134 2010/08/16 23:02:40 bdeegan"
|
33
|
+
|
34
|
+
import SCons.Action
|
35
|
+
import SCons.Builder
|
36
|
+
import SCons.Util
|
37
|
+
|
38
|
+
def generate(env):
|
39
|
+
"""Add a Builder factory function and construction variables for
|
40
|
+
SCCS to an Environment."""
|
41
|
+
|
42
|
+
def SCCSFactory(env=env):
|
43
|
+
""" """
|
44
|
+
import SCons.Warnings as W
|
45
|
+
W.warn(W.DeprecatedSourceCodeWarning, """The SCCS() factory is deprecated and there is no replacement.""")
|
46
|
+
act = SCons.Action.Action('$SCCSCOM', '$SCCSCOMSTR')
|
47
|
+
return SCons.Builder.Builder(action = act, env = env)
|
48
|
+
|
49
|
+
#setattr(env, 'SCCS', SCCSFactory)
|
50
|
+
env.SCCS = SCCSFactory
|
51
|
+
|
52
|
+
env['SCCS'] = 'sccs'
|
53
|
+
env['SCCSFLAGS'] = SCons.Util.CLVar('')
|
54
|
+
env['SCCSGETFLAGS'] = SCons.Util.CLVar('')
|
55
|
+
env['SCCSCOM'] = '$SCCS $SCCSFLAGS get $SCCSGETFLAGS $TARGET'
|
56
|
+
|
57
|
+
def exists(env):
|
58
|
+
return env.Detect('sccs')
|
59
|
+
|
60
|
+
# Local Variables:
|
61
|
+
# tab-width:4
|
62
|
+
# indent-tabs-mode:nil
|
63
|
+
# End:
|
64
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|
@@ -0,0 +1,71 @@
|
|
1
|
+
"""SCons.Tool.Subversion.py
|
2
|
+
|
3
|
+
Tool-specific initialization for Subversion.
|
4
|
+
|
5
|
+
There normally shouldn't be any need to import this module directly.
|
6
|
+
It will usually be imported through the generic SCons.Tool.Tool()
|
7
|
+
selection method.
|
8
|
+
|
9
|
+
"""
|
10
|
+
|
11
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
12
|
+
#
|
13
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
14
|
+
# a copy of this software and associated documentation files (the
|
15
|
+
# "Software"), to deal in the Software without restriction, including
|
16
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
17
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
18
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
19
|
+
# the following conditions:
|
20
|
+
#
|
21
|
+
# The above copyright notice and this permission notice shall be included
|
22
|
+
# in all copies or substantial portions of the Software.
|
23
|
+
#
|
24
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
25
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
26
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
27
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
28
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
29
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
30
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
31
|
+
|
32
|
+
__revision__ = "src/engine/SCons/Tool/Subversion.py 5134 2010/08/16 23:02:40 bdeegan"
|
33
|
+
|
34
|
+
import os.path
|
35
|
+
|
36
|
+
import SCons.Action
|
37
|
+
import SCons.Builder
|
38
|
+
import SCons.Util
|
39
|
+
|
40
|
+
def generate(env):
|
41
|
+
"""Add a Builder factory function and construction variables for
|
42
|
+
Subversion to an Environment."""
|
43
|
+
|
44
|
+
def SubversionFactory(repos, module='', env=env):
|
45
|
+
""" """
|
46
|
+
# fail if repos is not an absolute path name?
|
47
|
+
import SCons.Warnings as W
|
48
|
+
W.warn(W.DeprecatedSourceCodeWarning, """The Subversion() factory is deprecated and there is no replacement.""")
|
49
|
+
if module != '':
|
50
|
+
module = os.path.join(module, '')
|
51
|
+
act = SCons.Action.Action('$SVNCOM', '$SVNCOMSTR')
|
52
|
+
return SCons.Builder.Builder(action = act,
|
53
|
+
env = env,
|
54
|
+
SVNREPOSITORY = repos,
|
55
|
+
SVNMODULE = module)
|
56
|
+
|
57
|
+
#setattr(env, 'Subversion', SubversionFactory)
|
58
|
+
env.Subversion = SubversionFactory
|
59
|
+
|
60
|
+
env['SVN'] = 'svn'
|
61
|
+
env['SVNFLAGS'] = SCons.Util.CLVar('')
|
62
|
+
env['SVNCOM'] = '$SVN $SVNFLAGS cat $SVNREPOSITORY/$SVNMODULE$TARGET > $TARGET'
|
63
|
+
|
64
|
+
def exists(env):
|
65
|
+
return env.Detect('svn')
|
66
|
+
|
67
|
+
# Local Variables:
|
68
|
+
# tab-width:4
|
69
|
+
# indent-tabs-mode:nil
|
70
|
+
# End:
|
71
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|
@@ -0,0 +1,681 @@
|
|
1
|
+
"""SCons.Tool
|
2
|
+
|
3
|
+
SCons tool selection.
|
4
|
+
|
5
|
+
This looks for modules that define a callable object that can modify
|
6
|
+
a construction environment as appropriate for a given tool (or tool
|
7
|
+
chain).
|
8
|
+
|
9
|
+
Note that because this subsystem just *selects* a callable that can
|
10
|
+
modify a construction environment, it's possible for people to define
|
11
|
+
their own "tool specification" in an arbitrary callable function. No
|
12
|
+
one needs to use or tie in to this subsystem in order to roll their own
|
13
|
+
tool definition.
|
14
|
+
"""
|
15
|
+
|
16
|
+
#
|
17
|
+
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
|
18
|
+
#
|
19
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
20
|
+
# a copy of this software and associated documentation files (the
|
21
|
+
# "Software"), to deal in the Software without restriction, including
|
22
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
23
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
24
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
25
|
+
# the following conditions:
|
26
|
+
#
|
27
|
+
# The above copyright notice and this permission notice shall be included
|
28
|
+
# in all copies or substantial portions of the Software.
|
29
|
+
#
|
30
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
31
|
+
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
32
|
+
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
33
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
34
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
35
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
36
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
37
|
+
|
38
|
+
__revision__ = "src/engine/SCons/Tool/__init__.py 5134 2010/08/16 23:02:40 bdeegan"
|
39
|
+
|
40
|
+
import imp
|
41
|
+
import sys
|
42
|
+
|
43
|
+
import SCons.Builder
|
44
|
+
import SCons.Errors
|
45
|
+
import SCons.Node.FS
|
46
|
+
import SCons.Scanner
|
47
|
+
import SCons.Scanner.C
|
48
|
+
import SCons.Scanner.D
|
49
|
+
import SCons.Scanner.LaTeX
|
50
|
+
import SCons.Scanner.Prog
|
51
|
+
|
52
|
+
DefaultToolpath=[]
|
53
|
+
|
54
|
+
CScanner = SCons.Scanner.C.CScanner()
|
55
|
+
DScanner = SCons.Scanner.D.DScanner()
|
56
|
+
LaTeXScanner = SCons.Scanner.LaTeX.LaTeXScanner()
|
57
|
+
PDFLaTeXScanner = SCons.Scanner.LaTeX.PDFLaTeXScanner()
|
58
|
+
ProgramScanner = SCons.Scanner.Prog.ProgramScanner()
|
59
|
+
SourceFileScanner = SCons.Scanner.Base({}, name='SourceFileScanner')
|
60
|
+
|
61
|
+
CSuffixes = [".c", ".C", ".cxx", ".cpp", ".c++", ".cc",
|
62
|
+
".h", ".H", ".hxx", ".hpp", ".hh",
|
63
|
+
".F", ".fpp", ".FPP",
|
64
|
+
".m", ".mm",
|
65
|
+
".S", ".spp", ".SPP"]
|
66
|
+
|
67
|
+
DSuffixes = ['.d']
|
68
|
+
|
69
|
+
IDLSuffixes = [".idl", ".IDL"]
|
70
|
+
|
71
|
+
LaTeXSuffixes = [".tex", ".ltx", ".latex"]
|
72
|
+
|
73
|
+
for suffix in CSuffixes:
|
74
|
+
SourceFileScanner.add_scanner(suffix, CScanner)
|
75
|
+
|
76
|
+
for suffix in DSuffixes:
|
77
|
+
SourceFileScanner.add_scanner(suffix, DScanner)
|
78
|
+
|
79
|
+
# FIXME: what should be done here? Two scanners scan the same extensions,
|
80
|
+
# but look for different files, e.g., "picture.eps" vs. "picture.pdf".
|
81
|
+
# The builders for DVI and PDF explicitly reference their scanners
|
82
|
+
# I think that means this is not needed???
|
83
|
+
for suffix in LaTeXSuffixes:
|
84
|
+
SourceFileScanner.add_scanner(suffix, LaTeXScanner)
|
85
|
+
SourceFileScanner.add_scanner(suffix, PDFLaTeXScanner)
|
86
|
+
|
87
|
+
class Tool(object):
|
88
|
+
def __init__(self, name, toolpath=[], **kw):
|
89
|
+
self.name = name
|
90
|
+
self.toolpath = toolpath + DefaultToolpath
|
91
|
+
# remember these so we can merge them into the call
|
92
|
+
self.init_kw = kw
|
93
|
+
|
94
|
+
module = self._tool_module()
|
95
|
+
self.generate = module.generate
|
96
|
+
self.exists = module.exists
|
97
|
+
if hasattr(module, 'options'):
|
98
|
+
self.options = module.options
|
99
|
+
|
100
|
+
def _tool_module(self):
|
101
|
+
# TODO: Interchange zipimport with normal initilization for better error reporting
|
102
|
+
oldpythonpath = sys.path
|
103
|
+
sys.path = self.toolpath + sys.path
|
104
|
+
|
105
|
+
try:
|
106
|
+
try:
|
107
|
+
file, path, desc = imp.find_module(self.name, self.toolpath)
|
108
|
+
try:
|
109
|
+
return imp.load_module(self.name, file, path, desc)
|
110
|
+
finally:
|
111
|
+
if file:
|
112
|
+
file.close()
|
113
|
+
except ImportError, e:
|
114
|
+
if str(e)!="No module named %s"%self.name:
|
115
|
+
raise SCons.Errors.EnvironmentError(e)
|
116
|
+
try:
|
117
|
+
import zipimport
|
118
|
+
except ImportError:
|
119
|
+
pass
|
120
|
+
else:
|
121
|
+
for aPath in self.toolpath:
|
122
|
+
try:
|
123
|
+
importer = zipimport.zipimporter(aPath)
|
124
|
+
return importer.load_module(self.name)
|
125
|
+
except ImportError, e:
|
126
|
+
pass
|
127
|
+
finally:
|
128
|
+
sys.path = oldpythonpath
|
129
|
+
|
130
|
+
full_name = 'SCons.Tool.' + self.name
|
131
|
+
try:
|
132
|
+
return sys.modules[full_name]
|
133
|
+
except KeyError:
|
134
|
+
try:
|
135
|
+
smpath = sys.modules['SCons.Tool'].__path__
|
136
|
+
try:
|
137
|
+
file, path, desc = imp.find_module(self.name, smpath)
|
138
|
+
module = imp.load_module(full_name, file, path, desc)
|
139
|
+
setattr(SCons.Tool, self.name, module)
|
140
|
+
if file:
|
141
|
+
file.close()
|
142
|
+
return module
|
143
|
+
except ImportError, e:
|
144
|
+
if str(e)!="No module named %s"%self.name:
|
145
|
+
raise SCons.Errors.EnvironmentError(e)
|
146
|
+
try:
|
147
|
+
import zipimport
|
148
|
+
importer = zipimport.zipimporter( sys.modules['SCons.Tool'].__path__[0] )
|
149
|
+
module = importer.load_module(full_name)
|
150
|
+
setattr(SCons.Tool, self.name, module)
|
151
|
+
return module
|
152
|
+
except ImportError, e:
|
153
|
+
m = "No tool named '%s': %s" % (self.name, e)
|
154
|
+
raise SCons.Errors.EnvironmentError(m)
|
155
|
+
except ImportError, e:
|
156
|
+
m = "No tool named '%s': %s" % (self.name, e)
|
157
|
+
raise SCons.Errors.EnvironmentError(m)
|
158
|
+
|
159
|
+
def __call__(self, env, *args, **kw):
|
160
|
+
if self.init_kw is not None:
|
161
|
+
# Merge call kws into init kws;
|
162
|
+
# but don't bash self.init_kw.
|
163
|
+
if kw is not None:
|
164
|
+
call_kw = kw
|
165
|
+
kw = self.init_kw.copy()
|
166
|
+
kw.update(call_kw)
|
167
|
+
else:
|
168
|
+
kw = self.init_kw
|
169
|
+
env.Append(TOOLS = [ self.name ])
|
170
|
+
if hasattr(self, 'options'):
|
171
|
+
import SCons.Variables
|
172
|
+
if 'options' not in env:
|
173
|
+
from SCons.Script import ARGUMENTS
|
174
|
+
env['options']=SCons.Variables.Variables(args=ARGUMENTS)
|
175
|
+
opts=env['options']
|
176
|
+
|
177
|
+
self.options(opts)
|
178
|
+
opts.Update(env)
|
179
|
+
|
180
|
+
self.generate(env, *args, **kw)
|
181
|
+
|
182
|
+
def __str__(self):
|
183
|
+
return self.name
|
184
|
+
|
185
|
+
##########################################################################
|
186
|
+
# Create common executable program / library / object builders
|
187
|
+
|
188
|
+
def createProgBuilder(env):
|
189
|
+
"""This is a utility function that creates the Program
|
190
|
+
Builder in an Environment if it is not there already.
|
191
|
+
|
192
|
+
If it is already there, we return the existing one.
|
193
|
+
"""
|
194
|
+
|
195
|
+
try:
|
196
|
+
program = env['BUILDERS']['Program']
|
197
|
+
except KeyError:
|
198
|
+
import SCons.Defaults
|
199
|
+
program = SCons.Builder.Builder(action = SCons.Defaults.LinkAction,
|
200
|
+
emitter = '$PROGEMITTER',
|
201
|
+
prefix = '$PROGPREFIX',
|
202
|
+
suffix = '$PROGSUFFIX',
|
203
|
+
src_suffix = '$OBJSUFFIX',
|
204
|
+
src_builder = 'Object',
|
205
|
+
target_scanner = ProgramScanner)
|
206
|
+
env['BUILDERS']['Program'] = program
|
207
|
+
|
208
|
+
return program
|
209
|
+
|
210
|
+
def createStaticLibBuilder(env):
|
211
|
+
"""This is a utility function that creates the StaticLibrary
|
212
|
+
Builder in an Environment if it is not there already.
|
213
|
+
|
214
|
+
If it is already there, we return the existing one.
|
215
|
+
"""
|
216
|
+
|
217
|
+
try:
|
218
|
+
static_lib = env['BUILDERS']['StaticLibrary']
|
219
|
+
except KeyError:
|
220
|
+
action_list = [ SCons.Action.Action("$ARCOM", "$ARCOMSTR") ]
|
221
|
+
if env.Detect('ranlib'):
|
222
|
+
ranlib_action = SCons.Action.Action("$RANLIBCOM", "$RANLIBCOMSTR")
|
223
|
+
action_list.append(ranlib_action)
|
224
|
+
|
225
|
+
static_lib = SCons.Builder.Builder(action = action_list,
|
226
|
+
emitter = '$LIBEMITTER',
|
227
|
+
prefix = '$LIBPREFIX',
|
228
|
+
suffix = '$LIBSUFFIX',
|
229
|
+
src_suffix = '$OBJSUFFIX',
|
230
|
+
src_builder = 'StaticObject')
|
231
|
+
env['BUILDERS']['StaticLibrary'] = static_lib
|
232
|
+
env['BUILDERS']['Library'] = static_lib
|
233
|
+
|
234
|
+
return static_lib
|
235
|
+
|
236
|
+
def createSharedLibBuilder(env):
|
237
|
+
"""This is a utility function that creates the SharedLibrary
|
238
|
+
Builder in an Environment if it is not there already.
|
239
|
+
|
240
|
+
If it is already there, we return the existing one.
|
241
|
+
"""
|
242
|
+
|
243
|
+
try:
|
244
|
+
shared_lib = env['BUILDERS']['SharedLibrary']
|
245
|
+
except KeyError:
|
246
|
+
import SCons.Defaults
|
247
|
+
action_list = [ SCons.Defaults.SharedCheck,
|
248
|
+
SCons.Defaults.ShLinkAction ]
|
249
|
+
shared_lib = SCons.Builder.Builder(action = action_list,
|
250
|
+
emitter = "$SHLIBEMITTER",
|
251
|
+
prefix = '$SHLIBPREFIX',
|
252
|
+
suffix = '$SHLIBSUFFIX',
|
253
|
+
target_scanner = ProgramScanner,
|
254
|
+
src_suffix = '$SHOBJSUFFIX',
|
255
|
+
src_builder = 'SharedObject')
|
256
|
+
env['BUILDERS']['SharedLibrary'] = shared_lib
|
257
|
+
|
258
|
+
return shared_lib
|
259
|
+
|
260
|
+
def createLoadableModuleBuilder(env):
|
261
|
+
"""This is a utility function that creates the LoadableModule
|
262
|
+
Builder in an Environment if it is not there already.
|
263
|
+
|
264
|
+
If it is already there, we return the existing one.
|
265
|
+
"""
|
266
|
+
|
267
|
+
try:
|
268
|
+
ld_module = env['BUILDERS']['LoadableModule']
|
269
|
+
except KeyError:
|
270
|
+
import SCons.Defaults
|
271
|
+
action_list = [ SCons.Defaults.SharedCheck,
|
272
|
+
SCons.Defaults.LdModuleLinkAction ]
|
273
|
+
ld_module = SCons.Builder.Builder(action = action_list,
|
274
|
+
emitter = "$LDMODULEEMITTER",
|
275
|
+
prefix = '$LDMODULEPREFIX',
|
276
|
+
suffix = '$LDMODULESUFFIX',
|
277
|
+
target_scanner = ProgramScanner,
|
278
|
+
src_suffix = '$SHOBJSUFFIX',
|
279
|
+
src_builder = 'SharedObject')
|
280
|
+
env['BUILDERS']['LoadableModule'] = ld_module
|
281
|
+
|
282
|
+
return ld_module
|
283
|
+
|
284
|
+
def createObjBuilders(env):
|
285
|
+
"""This is a utility function that creates the StaticObject
|
286
|
+
and SharedObject Builders in an Environment if they
|
287
|
+
are not there already.
|
288
|
+
|
289
|
+
If they are there already, we return the existing ones.
|
290
|
+
|
291
|
+
This is a separate function because soooo many Tools
|
292
|
+
use this functionality.
|
293
|
+
|
294
|
+
The return is a 2-tuple of (StaticObject, SharedObject)
|
295
|
+
"""
|
296
|
+
|
297
|
+
|
298
|
+
try:
|
299
|
+
static_obj = env['BUILDERS']['StaticObject']
|
300
|
+
except KeyError:
|
301
|
+
static_obj = SCons.Builder.Builder(action = {},
|
302
|
+
emitter = {},
|
303
|
+
prefix = '$OBJPREFIX',
|
304
|
+
suffix = '$OBJSUFFIX',
|
305
|
+
src_builder = ['CFile', 'CXXFile'],
|
306
|
+
source_scanner = SourceFileScanner,
|
307
|
+
single_source = 1)
|
308
|
+
env['BUILDERS']['StaticObject'] = static_obj
|
309
|
+
env['BUILDERS']['Object'] = static_obj
|
310
|
+
|
311
|
+
try:
|
312
|
+
shared_obj = env['BUILDERS']['SharedObject']
|
313
|
+
except KeyError:
|
314
|
+
shared_obj = SCons.Builder.Builder(action = {},
|
315
|
+
emitter = {},
|
316
|
+
prefix = '$SHOBJPREFIX',
|
317
|
+
suffix = '$SHOBJSUFFIX',
|
318
|
+
src_builder = ['CFile', 'CXXFile'],
|
319
|
+
source_scanner = SourceFileScanner,
|
320
|
+
single_source = 1)
|
321
|
+
env['BUILDERS']['SharedObject'] = shared_obj
|
322
|
+
|
323
|
+
return (static_obj, shared_obj)
|
324
|
+
|
325
|
+
def createCFileBuilders(env):
|
326
|
+
"""This is a utility function that creates the CFile/CXXFile
|
327
|
+
Builders in an Environment if they
|
328
|
+
are not there already.
|
329
|
+
|
330
|
+
If they are there already, we return the existing ones.
|
331
|
+
|
332
|
+
This is a separate function because soooo many Tools
|
333
|
+
use this functionality.
|
334
|
+
|
335
|
+
The return is a 2-tuple of (CFile, CXXFile)
|
336
|
+
"""
|
337
|
+
|
338
|
+
try:
|
339
|
+
c_file = env['BUILDERS']['CFile']
|
340
|
+
except KeyError:
|
341
|
+
c_file = SCons.Builder.Builder(action = {},
|
342
|
+
emitter = {},
|
343
|
+
suffix = {None:'$CFILESUFFIX'})
|
344
|
+
env['BUILDERS']['CFile'] = c_file
|
345
|
+
|
346
|
+
env.SetDefault(CFILESUFFIX = '.c')
|
347
|
+
|
348
|
+
try:
|
349
|
+
cxx_file = env['BUILDERS']['CXXFile']
|
350
|
+
except KeyError:
|
351
|
+
cxx_file = SCons.Builder.Builder(action = {},
|
352
|
+
emitter = {},
|
353
|
+
suffix = {None:'$CXXFILESUFFIX'})
|
354
|
+
env['BUILDERS']['CXXFile'] = cxx_file
|
355
|
+
env.SetDefault(CXXFILESUFFIX = '.cc')
|
356
|
+
|
357
|
+
return (c_file, cxx_file)
|
358
|
+
|
359
|
+
##########################################################################
|
360
|
+
# Create common Java builders
|
361
|
+
|
362
|
+
def CreateJarBuilder(env):
|
363
|
+
try:
|
364
|
+
java_jar = env['BUILDERS']['Jar']
|
365
|
+
except KeyError:
|
366
|
+
fs = SCons.Node.FS.get_default_fs()
|
367
|
+
jar_com = SCons.Action.Action('$JARCOM', '$JARCOMSTR')
|
368
|
+
java_jar = SCons.Builder.Builder(action = jar_com,
|
369
|
+
suffix = '$JARSUFFIX',
|
370
|
+
src_suffix = '$JAVACLASSSUFIX',
|
371
|
+
src_builder = 'JavaClassFile',
|
372
|
+
source_factory = fs.Entry)
|
373
|
+
env['BUILDERS']['Jar'] = java_jar
|
374
|
+
return java_jar
|
375
|
+
|
376
|
+
def CreateJavaHBuilder(env):
|
377
|
+
try:
|
378
|
+
java_javah = env['BUILDERS']['JavaH']
|
379
|
+
except KeyError:
|
380
|
+
fs = SCons.Node.FS.get_default_fs()
|
381
|
+
java_javah_com = SCons.Action.Action('$JAVAHCOM', '$JAVAHCOMSTR')
|
382
|
+
java_javah = SCons.Builder.Builder(action = java_javah_com,
|
383
|
+
src_suffix = '$JAVACLASSSUFFIX',
|
384
|
+
target_factory = fs.Entry,
|
385
|
+
source_factory = fs.File,
|
386
|
+
src_builder = 'JavaClassFile')
|
387
|
+
env['BUILDERS']['JavaH'] = java_javah
|
388
|
+
return java_javah
|
389
|
+
|
390
|
+
def CreateJavaClassFileBuilder(env):
|
391
|
+
try:
|
392
|
+
java_class_file = env['BUILDERS']['JavaClassFile']
|
393
|
+
except KeyError:
|
394
|
+
fs = SCons.Node.FS.get_default_fs()
|
395
|
+
javac_com = SCons.Action.Action('$JAVACCOM', '$JAVACCOMSTR')
|
396
|
+
java_class_file = SCons.Builder.Builder(action = javac_com,
|
397
|
+
emitter = {},
|
398
|
+
#suffix = '$JAVACLASSSUFFIX',
|
399
|
+
src_suffix = '$JAVASUFFIX',
|
400
|
+
src_builder = ['JavaFile'],
|
401
|
+
target_factory = fs.Entry,
|
402
|
+
source_factory = fs.File)
|
403
|
+
env['BUILDERS']['JavaClassFile'] = java_class_file
|
404
|
+
return java_class_file
|
405
|
+
|
406
|
+
def CreateJavaClassDirBuilder(env):
|
407
|
+
try:
|
408
|
+
java_class_dir = env['BUILDERS']['JavaClassDir']
|
409
|
+
except KeyError:
|
410
|
+
fs = SCons.Node.FS.get_default_fs()
|
411
|
+
javac_com = SCons.Action.Action('$JAVACCOM', '$JAVACCOMSTR')
|
412
|
+
java_class_dir = SCons.Builder.Builder(action = javac_com,
|
413
|
+
emitter = {},
|
414
|
+
target_factory = fs.Dir,
|
415
|
+
source_factory = fs.Dir)
|
416
|
+
env['BUILDERS']['JavaClassDir'] = java_class_dir
|
417
|
+
return java_class_dir
|
418
|
+
|
419
|
+
def CreateJavaFileBuilder(env):
|
420
|
+
try:
|
421
|
+
java_file = env['BUILDERS']['JavaFile']
|
422
|
+
except KeyError:
|
423
|
+
java_file = SCons.Builder.Builder(action = {},
|
424
|
+
emitter = {},
|
425
|
+
suffix = {None:'$JAVASUFFIX'})
|
426
|
+
env['BUILDERS']['JavaFile'] = java_file
|
427
|
+
env['JAVASUFFIX'] = '.java'
|
428
|
+
return java_file
|
429
|
+
|
430
|
+
class ToolInitializerMethod(object):
|
431
|
+
"""
|
432
|
+
This is added to a construction environment in place of a
|
433
|
+
method(s) normally called for a Builder (env.Object, env.StaticObject,
|
434
|
+
etc.). When called, it has its associated ToolInitializer
|
435
|
+
object search the specified list of tools and apply the first
|
436
|
+
one that exists to the construction environment. It then calls
|
437
|
+
whatever builder was (presumably) added to the construction
|
438
|
+
environment in place of this particular instance.
|
439
|
+
"""
|
440
|
+
def __init__(self, name, initializer):
|
441
|
+
"""
|
442
|
+
Note: we store the tool name as __name__ so it can be used by
|
443
|
+
the class that attaches this to a construction environment.
|
444
|
+
"""
|
445
|
+
self.__name__ = name
|
446
|
+
self.initializer = initializer
|
447
|
+
|
448
|
+
def get_builder(self, env):
|
449
|
+
"""
|
450
|
+
Returns the appropriate real Builder for this method name
|
451
|
+
after having the associated ToolInitializer object apply
|
452
|
+
the appropriate Tool module.
|
453
|
+
"""
|
454
|
+
builder = getattr(env, self.__name__)
|
455
|
+
|
456
|
+
self.initializer.apply_tools(env)
|
457
|
+
|
458
|
+
builder = getattr(env, self.__name__)
|
459
|
+
if builder is self:
|
460
|
+
# There was no Builder added, which means no valid Tool
|
461
|
+
# for this name was found (or possibly there's a mismatch
|
462
|
+
# between the name we were called by and the Builder name
|
463
|
+
# added by the Tool module).
|
464
|
+
return None
|
465
|
+
|
466
|
+
self.initializer.remove_methods(env)
|
467
|
+
|
468
|
+
return builder
|
469
|
+
|
470
|
+
def __call__(self, env, *args, **kw):
|
471
|
+
"""
|
472
|
+
"""
|
473
|
+
builder = self.get_builder(env)
|
474
|
+
if builder is None:
|
475
|
+
return [], []
|
476
|
+
return builder(*args, **kw)
|
477
|
+
|
478
|
+
class ToolInitializer(object):
|
479
|
+
"""
|
480
|
+
A class for delayed initialization of Tools modules.
|
481
|
+
|
482
|
+
Instances of this class associate a list of Tool modules with
|
483
|
+
a list of Builder method names that will be added by those Tool
|
484
|
+
modules. As part of instantiating this object for a particular
|
485
|
+
construction environment, we also add the appropriate
|
486
|
+
ToolInitializerMethod objects for the various Builder methods
|
487
|
+
that we want to use to delay Tool searches until necessary.
|
488
|
+
"""
|
489
|
+
def __init__(self, env, tools, names):
|
490
|
+
if not SCons.Util.is_List(tools):
|
491
|
+
tools = [tools]
|
492
|
+
if not SCons.Util.is_List(names):
|
493
|
+
names = [names]
|
494
|
+
self.env = env
|
495
|
+
self.tools = tools
|
496
|
+
self.names = names
|
497
|
+
self.methods = {}
|
498
|
+
for name in names:
|
499
|
+
method = ToolInitializerMethod(name, self)
|
500
|
+
self.methods[name] = method
|
501
|
+
env.AddMethod(method)
|
502
|
+
|
503
|
+
def remove_methods(self, env):
|
504
|
+
"""
|
505
|
+
Removes the methods that were added by the tool initialization
|
506
|
+
so we no longer copy and re-bind them when the construction
|
507
|
+
environment gets cloned.
|
508
|
+
"""
|
509
|
+
for method in self.methods.values():
|
510
|
+
env.RemoveMethod(method)
|
511
|
+
|
512
|
+
def apply_tools(self, env):
|
513
|
+
"""
|
514
|
+
Searches the list of associated Tool modules for one that
|
515
|
+
exists, and applies that to the construction environment.
|
516
|
+
"""
|
517
|
+
for t in self.tools:
|
518
|
+
tool = SCons.Tool.Tool(t)
|
519
|
+
if tool.exists(env):
|
520
|
+
env.Tool(tool)
|
521
|
+
return
|
522
|
+
|
523
|
+
# If we fall through here, there was no tool module found.
|
524
|
+
# This is where we can put an informative error message
|
525
|
+
# about the inability to find the tool. We'll start doing
|
526
|
+
# this as we cut over more pre-defined Builder+Tools to use
|
527
|
+
# the ToolInitializer class.
|
528
|
+
|
529
|
+
def Initializers(env):
|
530
|
+
ToolInitializer(env, ['install'], ['_InternalInstall', '_InternalInstallAs'])
|
531
|
+
def Install(self, *args, **kw):
|
532
|
+
return self._InternalInstall(*args, **kw)
|
533
|
+
def InstallAs(self, *args, **kw):
|
534
|
+
return self._InternalInstallAs(*args, **kw)
|
535
|
+
env.AddMethod(Install)
|
536
|
+
env.AddMethod(InstallAs)
|
537
|
+
|
538
|
+
def FindTool(tools, env):
|
539
|
+
for tool in tools:
|
540
|
+
t = Tool(tool)
|
541
|
+
if t.exists(env):
|
542
|
+
return tool
|
543
|
+
return None
|
544
|
+
|
545
|
+
def FindAllTools(tools, env):
|
546
|
+
def ToolExists(tool, env=env):
|
547
|
+
return Tool(tool).exists(env)
|
548
|
+
return list(filter (ToolExists, tools))
|
549
|
+
|
550
|
+
def tool_list(platform, env):
|
551
|
+
|
552
|
+
other_plat_tools=[]
|
553
|
+
# XXX this logic about what tool to prefer on which platform
|
554
|
+
# should be moved into either the platform files or
|
555
|
+
# the tool files themselves.
|
556
|
+
# The search orders here are described in the man page. If you
|
557
|
+
# change these search orders, update the man page as well.
|
558
|
+
if str(platform) == 'win32':
|
559
|
+
"prefer Microsoft tools on Windows"
|
560
|
+
linkers = ['mslink', 'gnulink', 'ilink', 'linkloc', 'ilink32' ]
|
561
|
+
c_compilers = ['msvc', 'mingw', 'gcc', 'intelc', 'icl', 'icc', 'cc', 'bcc32' ]
|
562
|
+
cxx_compilers = ['msvc', 'intelc', 'icc', 'g++', 'c++', 'bcc32' ]
|
563
|
+
assemblers = ['masm', 'nasm', 'gas', '386asm' ]
|
564
|
+
fortran_compilers = ['gfortran', 'g77', 'ifl', 'cvf', 'f95', 'f90', 'fortran']
|
565
|
+
ars = ['mslib', 'ar', 'tlib']
|
566
|
+
other_plat_tools=['msvs','midl']
|
567
|
+
elif str(platform) == 'os2':
|
568
|
+
"prefer IBM tools on OS/2"
|
569
|
+
linkers = ['ilink', 'gnulink', ]#'mslink']
|
570
|
+
c_compilers = ['icc', 'gcc',]# 'msvc', 'cc']
|
571
|
+
cxx_compilers = ['icc', 'g++',]# 'msvc', 'c++']
|
572
|
+
assemblers = ['nasm',]# 'masm', 'gas']
|
573
|
+
fortran_compilers = ['ifl', 'g77']
|
574
|
+
ars = ['ar',]# 'mslib']
|
575
|
+
elif str(platform) == 'irix':
|
576
|
+
"prefer MIPSPro on IRIX"
|
577
|
+
linkers = ['sgilink', 'gnulink']
|
578
|
+
c_compilers = ['sgicc', 'gcc', 'cc']
|
579
|
+
cxx_compilers = ['sgic++', 'g++', 'c++']
|
580
|
+
assemblers = ['as', 'gas']
|
581
|
+
fortran_compilers = ['f95', 'f90', 'f77', 'g77', 'fortran']
|
582
|
+
ars = ['sgiar']
|
583
|
+
elif str(platform) == 'sunos':
|
584
|
+
"prefer Forte tools on SunOS"
|
585
|
+
linkers = ['sunlink', 'gnulink']
|
586
|
+
c_compilers = ['suncc', 'gcc', 'cc']
|
587
|
+
cxx_compilers = ['sunc++', 'g++', 'c++']
|
588
|
+
assemblers = ['as', 'gas']
|
589
|
+
fortran_compilers = ['sunf95', 'sunf90', 'sunf77', 'f95', 'f90', 'f77',
|
590
|
+
'gfortran', 'g77', 'fortran']
|
591
|
+
ars = ['sunar']
|
592
|
+
elif str(platform) == 'hpux':
|
593
|
+
"prefer aCC tools on HP-UX"
|
594
|
+
linkers = ['hplink', 'gnulink']
|
595
|
+
c_compilers = ['hpcc', 'gcc', 'cc']
|
596
|
+
cxx_compilers = ['hpc++', 'g++', 'c++']
|
597
|
+
assemblers = ['as', 'gas']
|
598
|
+
fortran_compilers = ['f95', 'f90', 'f77', 'g77', 'fortran']
|
599
|
+
ars = ['ar']
|
600
|
+
elif str(platform) == 'aix':
|
601
|
+
"prefer AIX Visual Age tools on AIX"
|
602
|
+
linkers = ['aixlink', 'gnulink']
|
603
|
+
c_compilers = ['aixcc', 'gcc', 'cc']
|
604
|
+
cxx_compilers = ['aixc++', 'g++', 'c++']
|
605
|
+
assemblers = ['as', 'gas']
|
606
|
+
fortran_compilers = ['f95', 'f90', 'aixf77', 'g77', 'fortran']
|
607
|
+
ars = ['ar']
|
608
|
+
elif str(platform) == 'darwin':
|
609
|
+
"prefer GNU tools on Mac OS X, except for some linkers and IBM tools"
|
610
|
+
linkers = ['applelink', 'gnulink']
|
611
|
+
c_compilers = ['gcc', 'cc']
|
612
|
+
cxx_compilers = ['g++', 'c++']
|
613
|
+
assemblers = ['as']
|
614
|
+
fortran_compilers = ['gfortran', 'f95', 'f90', 'g77']
|
615
|
+
ars = ['ar']
|
616
|
+
else:
|
617
|
+
"prefer GNU tools on all other platforms"
|
618
|
+
linkers = ['gnulink', 'mslink', 'ilink']
|
619
|
+
c_compilers = ['gcc', 'msvc', 'intelc', 'icc', 'cc']
|
620
|
+
cxx_compilers = ['g++', 'msvc', 'intelc', 'icc', 'c++']
|
621
|
+
assemblers = ['gas', 'nasm', 'masm']
|
622
|
+
fortran_compilers = ['gfortran', 'g77', 'ifort', 'ifl', 'f95', 'f90', 'f77']
|
623
|
+
ars = ['ar', 'mslib']
|
624
|
+
|
625
|
+
c_compiler = FindTool(c_compilers, env) or c_compilers[0]
|
626
|
+
|
627
|
+
# XXX this logic about what tool provides what should somehow be
|
628
|
+
# moved into the tool files themselves.
|
629
|
+
if c_compiler and c_compiler == 'mingw':
|
630
|
+
# MinGW contains a linker, C compiler, C++ compiler,
|
631
|
+
# Fortran compiler, archiver and assembler:
|
632
|
+
cxx_compiler = None
|
633
|
+
linker = None
|
634
|
+
assembler = None
|
635
|
+
fortran_compiler = None
|
636
|
+
ar = None
|
637
|
+
else:
|
638
|
+
# Don't use g++ if the C compiler has built-in C++ support:
|
639
|
+
if c_compiler in ('msvc', 'intelc', 'icc'):
|
640
|
+
cxx_compiler = None
|
641
|
+
else:
|
642
|
+
cxx_compiler = FindTool(cxx_compilers, env) or cxx_compilers[0]
|
643
|
+
linker = FindTool(linkers, env) or linkers[0]
|
644
|
+
assembler = FindTool(assemblers, env) or assemblers[0]
|
645
|
+
fortran_compiler = FindTool(fortran_compilers, env) or fortran_compilers[0]
|
646
|
+
ar = FindTool(ars, env) or ars[0]
|
647
|
+
|
648
|
+
other_tools = FindAllTools(other_plat_tools + [
|
649
|
+
'dmd',
|
650
|
+
#TODO: merge 'install' into 'filesystem' and
|
651
|
+
# make 'filesystem' the default
|
652
|
+
'filesystem',
|
653
|
+
'm4',
|
654
|
+
'wix', #'midl', 'msvs',
|
655
|
+
# Parser generators
|
656
|
+
'lex', 'yacc',
|
657
|
+
# Foreign function interface
|
658
|
+
'rpcgen', 'swig',
|
659
|
+
# Java
|
660
|
+
'jar', 'javac', 'javah', 'rmic',
|
661
|
+
# TeX
|
662
|
+
'dvipdf', 'dvips', 'gs',
|
663
|
+
'tex', 'latex', 'pdflatex', 'pdftex',
|
664
|
+
# Archivers
|
665
|
+
'tar', 'zip', 'rpm',
|
666
|
+
# SourceCode factories
|
667
|
+
'BitKeeper', 'CVS', 'Perforce',
|
668
|
+
'RCS', 'SCCS', # 'Subversion',
|
669
|
+
], env)
|
670
|
+
|
671
|
+
tools = ([linker, c_compiler, cxx_compiler,
|
672
|
+
fortran_compiler, assembler, ar]
|
673
|
+
+ other_tools)
|
674
|
+
|
675
|
+
return [x for x in tools if x]
|
676
|
+
|
677
|
+
# Local Variables:
|
678
|
+
# tab-width:4
|
679
|
+
# indent-tabs-mode:nil
|
680
|
+
# End:
|
681
|
+
# vim: set expandtab tabstop=4 shiftwidth=4:
|