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,360 @@
|
|
1
|
+
// Copyright 2011 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#include "v8.h"
|
29
|
+
|
30
|
+
#include "rewriter.h"
|
31
|
+
|
32
|
+
#include "ast.h"
|
33
|
+
#include "compiler.h"
|
34
|
+
#include "scopes.h"
|
35
|
+
|
36
|
+
namespace v8 {
|
37
|
+
namespace internal {
|
38
|
+
|
39
|
+
class Processor: public AstVisitor {
|
40
|
+
public:
|
41
|
+
explicit Processor(Variable* result)
|
42
|
+
: result_(result),
|
43
|
+
result_assigned_(false),
|
44
|
+
is_set_(false),
|
45
|
+
in_try_(false) {
|
46
|
+
}
|
47
|
+
|
48
|
+
void Process(ZoneList<Statement*>* statements);
|
49
|
+
bool result_assigned() const { return result_assigned_; }
|
50
|
+
|
51
|
+
private:
|
52
|
+
Variable* result_;
|
53
|
+
|
54
|
+
// We are not tracking result usage via the result_'s use
|
55
|
+
// counts (we leave the accurate computation to the
|
56
|
+
// usage analyzer). Instead we simple remember if
|
57
|
+
// there was ever an assignment to result_.
|
58
|
+
bool result_assigned_;
|
59
|
+
|
60
|
+
// To avoid storing to .result all the time, we eliminate some of
|
61
|
+
// the stores by keeping track of whether or not we're sure .result
|
62
|
+
// will be overwritten anyway. This is a bit more tricky than what I
|
63
|
+
// was hoping for
|
64
|
+
bool is_set_;
|
65
|
+
bool in_try_;
|
66
|
+
|
67
|
+
Expression* SetResult(Expression* value) {
|
68
|
+
result_assigned_ = true;
|
69
|
+
VariableProxy* result_proxy = new VariableProxy(result_);
|
70
|
+
return new Assignment(Token::ASSIGN, result_proxy, value,
|
71
|
+
RelocInfo::kNoPosition);
|
72
|
+
}
|
73
|
+
|
74
|
+
// Node visitors.
|
75
|
+
#define DEF_VISIT(type) \
|
76
|
+
virtual void Visit##type(type* node);
|
77
|
+
AST_NODE_LIST(DEF_VISIT)
|
78
|
+
#undef DEF_VISIT
|
79
|
+
|
80
|
+
void VisitIterationStatement(IterationStatement* stmt);
|
81
|
+
};
|
82
|
+
|
83
|
+
|
84
|
+
void Processor::Process(ZoneList<Statement*>* statements) {
|
85
|
+
for (int i = statements->length() - 1; i >= 0; --i) {
|
86
|
+
Visit(statements->at(i));
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
void Processor::VisitBlock(Block* node) {
|
92
|
+
// An initializer block is the rewritten form of a variable declaration
|
93
|
+
// with initialization expressions. The initializer block contains the
|
94
|
+
// list of assignments corresponding to the initialization expressions.
|
95
|
+
// While unclear from the spec (ECMA-262, 3rd., 12.2), the value of
|
96
|
+
// a variable declaration with initialization expression is 'undefined'
|
97
|
+
// with some JS VMs: For instance, using smjs, print(eval('var x = 7'))
|
98
|
+
// returns 'undefined'. To obtain the same behavior with v8, we need
|
99
|
+
// to prevent rewriting in that case.
|
100
|
+
if (!node->is_initializer_block()) Process(node->statements());
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
void Processor::VisitExpressionStatement(ExpressionStatement* node) {
|
105
|
+
// Rewrite : <x>; -> .result = <x>;
|
106
|
+
if (!is_set_) {
|
107
|
+
node->set_expression(SetResult(node->expression()));
|
108
|
+
if (!in_try_) is_set_ = true;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
void Processor::VisitIfStatement(IfStatement* node) {
|
114
|
+
// Rewrite both then and else parts (reversed).
|
115
|
+
bool save = is_set_;
|
116
|
+
Visit(node->else_statement());
|
117
|
+
bool set_after_then = is_set_;
|
118
|
+
is_set_ = save;
|
119
|
+
Visit(node->then_statement());
|
120
|
+
is_set_ = is_set_ && set_after_then;
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
void Processor::VisitIterationStatement(IterationStatement* node) {
|
125
|
+
// Rewrite the body.
|
126
|
+
bool set_after_loop = is_set_;
|
127
|
+
Visit(node->body());
|
128
|
+
is_set_ = is_set_ && set_after_loop;
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
void Processor::VisitDoWhileStatement(DoWhileStatement* node) {
|
133
|
+
VisitIterationStatement(node);
|
134
|
+
}
|
135
|
+
|
136
|
+
|
137
|
+
void Processor::VisitWhileStatement(WhileStatement* node) {
|
138
|
+
VisitIterationStatement(node);
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
void Processor::VisitForStatement(ForStatement* node) {
|
143
|
+
VisitIterationStatement(node);
|
144
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
void Processor::VisitForInStatement(ForInStatement* node) {
|
148
|
+
VisitIterationStatement(node);
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
void Processor::VisitTryCatchStatement(TryCatchStatement* node) {
|
153
|
+
// Rewrite both try and catch blocks (reversed order).
|
154
|
+
bool set_after_catch = is_set_;
|
155
|
+
Visit(node->catch_block());
|
156
|
+
is_set_ = is_set_ && set_after_catch;
|
157
|
+
bool save = in_try_;
|
158
|
+
in_try_ = true;
|
159
|
+
Visit(node->try_block());
|
160
|
+
in_try_ = save;
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
void Processor::VisitTryFinallyStatement(TryFinallyStatement* node) {
|
165
|
+
// Rewrite both try and finally block (reversed order).
|
166
|
+
Visit(node->finally_block());
|
167
|
+
bool save = in_try_;
|
168
|
+
in_try_ = true;
|
169
|
+
Visit(node->try_block());
|
170
|
+
in_try_ = save;
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
void Processor::VisitSwitchStatement(SwitchStatement* node) {
|
175
|
+
// Rewrite statements in all case clauses in reversed order.
|
176
|
+
ZoneList<CaseClause*>* clauses = node->cases();
|
177
|
+
bool set_after_switch = is_set_;
|
178
|
+
for (int i = clauses->length() - 1; i >= 0; --i) {
|
179
|
+
CaseClause* clause = clauses->at(i);
|
180
|
+
Process(clause->statements());
|
181
|
+
}
|
182
|
+
is_set_ = is_set_ && set_after_switch;
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
void Processor::VisitContinueStatement(ContinueStatement* node) {
|
187
|
+
is_set_ = false;
|
188
|
+
}
|
189
|
+
|
190
|
+
|
191
|
+
void Processor::VisitBreakStatement(BreakStatement* node) {
|
192
|
+
is_set_ = false;
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
// Do nothing:
|
197
|
+
void Processor::VisitDeclaration(Declaration* node) {}
|
198
|
+
void Processor::VisitEmptyStatement(EmptyStatement* node) {}
|
199
|
+
void Processor::VisitReturnStatement(ReturnStatement* node) {}
|
200
|
+
void Processor::VisitWithEnterStatement(WithEnterStatement* node) {}
|
201
|
+
void Processor::VisitWithExitStatement(WithExitStatement* node) {}
|
202
|
+
void Processor::VisitDebuggerStatement(DebuggerStatement* node) {}
|
203
|
+
|
204
|
+
|
205
|
+
// Expressions are never visited yet.
|
206
|
+
void Processor::VisitFunctionLiteral(FunctionLiteral* node) {
|
207
|
+
USE(node);
|
208
|
+
UNREACHABLE();
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
void Processor::VisitSharedFunctionInfoLiteral(
|
213
|
+
SharedFunctionInfoLiteral* node) {
|
214
|
+
USE(node);
|
215
|
+
UNREACHABLE();
|
216
|
+
}
|
217
|
+
|
218
|
+
|
219
|
+
void Processor::VisitConditional(Conditional* node) {
|
220
|
+
USE(node);
|
221
|
+
UNREACHABLE();
|
222
|
+
}
|
223
|
+
|
224
|
+
|
225
|
+
void Processor::VisitVariableProxy(VariableProxy* node) {
|
226
|
+
USE(node);
|
227
|
+
UNREACHABLE();
|
228
|
+
}
|
229
|
+
|
230
|
+
|
231
|
+
void Processor::VisitLiteral(Literal* node) {
|
232
|
+
USE(node);
|
233
|
+
UNREACHABLE();
|
234
|
+
}
|
235
|
+
|
236
|
+
|
237
|
+
void Processor::VisitRegExpLiteral(RegExpLiteral* node) {
|
238
|
+
USE(node);
|
239
|
+
UNREACHABLE();
|
240
|
+
}
|
241
|
+
|
242
|
+
|
243
|
+
void Processor::VisitArrayLiteral(ArrayLiteral* node) {
|
244
|
+
USE(node);
|
245
|
+
UNREACHABLE();
|
246
|
+
}
|
247
|
+
|
248
|
+
|
249
|
+
void Processor::VisitObjectLiteral(ObjectLiteral* node) {
|
250
|
+
USE(node);
|
251
|
+
UNREACHABLE();
|
252
|
+
}
|
253
|
+
|
254
|
+
|
255
|
+
void Processor::VisitCatchExtensionObject(CatchExtensionObject* node) {
|
256
|
+
USE(node);
|
257
|
+
UNREACHABLE();
|
258
|
+
}
|
259
|
+
|
260
|
+
|
261
|
+
void Processor::VisitAssignment(Assignment* node) {
|
262
|
+
USE(node);
|
263
|
+
UNREACHABLE();
|
264
|
+
}
|
265
|
+
|
266
|
+
|
267
|
+
void Processor::VisitThrow(Throw* node) {
|
268
|
+
USE(node);
|
269
|
+
UNREACHABLE();
|
270
|
+
}
|
271
|
+
|
272
|
+
|
273
|
+
void Processor::VisitProperty(Property* node) {
|
274
|
+
USE(node);
|
275
|
+
UNREACHABLE();
|
276
|
+
}
|
277
|
+
|
278
|
+
|
279
|
+
void Processor::VisitCall(Call* node) {
|
280
|
+
USE(node);
|
281
|
+
UNREACHABLE();
|
282
|
+
}
|
283
|
+
|
284
|
+
|
285
|
+
void Processor::VisitCallNew(CallNew* node) {
|
286
|
+
USE(node);
|
287
|
+
UNREACHABLE();
|
288
|
+
}
|
289
|
+
|
290
|
+
|
291
|
+
void Processor::VisitCallRuntime(CallRuntime* node) {
|
292
|
+
USE(node);
|
293
|
+
UNREACHABLE();
|
294
|
+
}
|
295
|
+
|
296
|
+
|
297
|
+
void Processor::VisitUnaryOperation(UnaryOperation* node) {
|
298
|
+
USE(node);
|
299
|
+
UNREACHABLE();
|
300
|
+
}
|
301
|
+
|
302
|
+
|
303
|
+
void Processor::VisitCountOperation(CountOperation* node) {
|
304
|
+
USE(node);
|
305
|
+
UNREACHABLE();
|
306
|
+
}
|
307
|
+
|
308
|
+
|
309
|
+
void Processor::VisitBinaryOperation(BinaryOperation* node) {
|
310
|
+
USE(node);
|
311
|
+
UNREACHABLE();
|
312
|
+
}
|
313
|
+
|
314
|
+
|
315
|
+
void Processor::VisitCompareOperation(CompareOperation* node) {
|
316
|
+
USE(node);
|
317
|
+
UNREACHABLE();
|
318
|
+
}
|
319
|
+
|
320
|
+
|
321
|
+
void Processor::VisitCompareToNull(CompareToNull* node) {
|
322
|
+
USE(node);
|
323
|
+
UNREACHABLE();
|
324
|
+
}
|
325
|
+
|
326
|
+
|
327
|
+
void Processor::VisitThisFunction(ThisFunction* node) {
|
328
|
+
USE(node);
|
329
|
+
UNREACHABLE();
|
330
|
+
}
|
331
|
+
|
332
|
+
|
333
|
+
// Assumes code has been parsed and scopes have been analyzed. Mutates the
|
334
|
+
// AST, so the AST should not continue to be used in the case of failure.
|
335
|
+
bool Rewriter::Rewrite(CompilationInfo* info) {
|
336
|
+
FunctionLiteral* function = info->function();
|
337
|
+
ASSERT(function != NULL);
|
338
|
+
Scope* scope = function->scope();
|
339
|
+
ASSERT(scope != NULL);
|
340
|
+
if (scope->is_function_scope()) return true;
|
341
|
+
|
342
|
+
ZoneList<Statement*>* body = function->body();
|
343
|
+
if (!body->is_empty()) {
|
344
|
+
Variable* result = scope->NewTemporary(
|
345
|
+
info->isolate()->factory()->result_symbol());
|
346
|
+
Processor processor(result);
|
347
|
+
processor.Process(body);
|
348
|
+
if (processor.HasStackOverflow()) return false;
|
349
|
+
|
350
|
+
if (processor.result_assigned()) {
|
351
|
+
VariableProxy* result_proxy = new VariableProxy(result);
|
352
|
+
body->Add(new ReturnStatement(result_proxy));
|
353
|
+
}
|
354
|
+
}
|
355
|
+
|
356
|
+
return true;
|
357
|
+
}
|
358
|
+
|
359
|
+
|
360
|
+
} } // namespace v8::internal
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// Copyright 2011 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#ifndef V8_REWRITER_H_
|
29
|
+
#define V8_REWRITER_H_
|
30
|
+
|
31
|
+
namespace v8 {
|
32
|
+
namespace internal {
|
33
|
+
|
34
|
+
class CompilationInfo;
|
35
|
+
|
36
|
+
class Rewriter {
|
37
|
+
public:
|
38
|
+
// Rewrite top-level code (ECMA 262 "programs") so as to conservatively
|
39
|
+
// include an assignment of the value of the last statement in the code to
|
40
|
+
// a compiler-generated temporary variable wherever needed.
|
41
|
+
//
|
42
|
+
// Assumes code has been parsed and scopes have been analyzed. Mutates the
|
43
|
+
// AST, so the AST should not continue to be used in the case of failure.
|
44
|
+
static bool Rewrite(CompilationInfo* info);
|
45
|
+
};
|
46
|
+
|
47
|
+
|
48
|
+
} } // namespace v8::internal
|
49
|
+
|
50
|
+
#endif // V8_REWRITER_H_
|
@@ -0,0 +1,489 @@
|
|
1
|
+
// Copyright 2011 the V8 project authors. All rights reserved.
|
2
|
+
// Redistribution and use in source and binary forms, with or without
|
3
|
+
// modification, are permitted provided that the following conditions are
|
4
|
+
// met:
|
5
|
+
//
|
6
|
+
// * Redistributions of source code must retain the above copyright
|
7
|
+
// notice, this list of conditions and the following disclaimer.
|
8
|
+
// * Redistributions in binary form must reproduce the above
|
9
|
+
// copyright notice, this list of conditions and the following
|
10
|
+
// disclaimer in the documentation and/or other materials provided
|
11
|
+
// with the distribution.
|
12
|
+
// * Neither the name of Google Inc. nor the names of its
|
13
|
+
// contributors may be used to endorse or promote products derived
|
14
|
+
// from this software without specific prior written permission.
|
15
|
+
//
|
16
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
+
|
28
|
+
#include "v8.h"
|
29
|
+
|
30
|
+
#include "runtime-profiler.h"
|
31
|
+
|
32
|
+
#include "assembler.h"
|
33
|
+
#include "code-stubs.h"
|
34
|
+
#include "compilation-cache.h"
|
35
|
+
#include "deoptimizer.h"
|
36
|
+
#include "execution.h"
|
37
|
+
#include "global-handles.h"
|
38
|
+
#include "mark-compact.h"
|
39
|
+
#include "platform.h"
|
40
|
+
#include "scopeinfo.h"
|
41
|
+
|
42
|
+
namespace v8 {
|
43
|
+
namespace internal {
|
44
|
+
|
45
|
+
|
46
|
+
class PendingListNode : public Malloced {
|
47
|
+
public:
|
48
|
+
explicit PendingListNode(JSFunction* function);
|
49
|
+
~PendingListNode() { Destroy(); }
|
50
|
+
|
51
|
+
PendingListNode* next() const { return next_; }
|
52
|
+
void set_next(PendingListNode* node) { next_ = node; }
|
53
|
+
Handle<JSFunction> function() { return Handle<JSFunction>::cast(function_); }
|
54
|
+
|
55
|
+
// If the function is garbage collected before we've had the chance
|
56
|
+
// to optimize it the weak handle will be null.
|
57
|
+
bool IsValid() { return !function_.is_null(); }
|
58
|
+
|
59
|
+
// Returns the number of microseconds this node has been pending.
|
60
|
+
int Delay() const { return static_cast<int>(OS::Ticks() - start_); }
|
61
|
+
|
62
|
+
private:
|
63
|
+
void Destroy();
|
64
|
+
static void WeakCallback(v8::Persistent<v8::Value> object, void* data);
|
65
|
+
|
66
|
+
PendingListNode* next_;
|
67
|
+
Handle<Object> function_; // Weak handle.
|
68
|
+
int64_t start_;
|
69
|
+
};
|
70
|
+
|
71
|
+
|
72
|
+
// Optimization sampler constants.
|
73
|
+
static const int kSamplerFrameCount = 2;
|
74
|
+
static const int kSamplerFrameWeight[kSamplerFrameCount] = { 2, 1 };
|
75
|
+
|
76
|
+
static const int kSamplerTicksBetweenThresholdAdjustment = 32;
|
77
|
+
|
78
|
+
static const int kSamplerThresholdInit = 3;
|
79
|
+
static const int kSamplerThresholdMin = 1;
|
80
|
+
static const int kSamplerThresholdDelta = 1;
|
81
|
+
|
82
|
+
static const int kSamplerThresholdSizeFactorInit = 3;
|
83
|
+
static const int kSamplerThresholdSizeFactorMin = 1;
|
84
|
+
static const int kSamplerThresholdSizeFactorDelta = 1;
|
85
|
+
|
86
|
+
static const int kSizeLimit = 1500;
|
87
|
+
|
88
|
+
|
89
|
+
PendingListNode::PendingListNode(JSFunction* function) : next_(NULL) {
|
90
|
+
GlobalHandles* global_handles = Isolate::Current()->global_handles();
|
91
|
+
function_ = global_handles->Create(function);
|
92
|
+
start_ = OS::Ticks();
|
93
|
+
global_handles->MakeWeak(function_.location(), this, &WeakCallback);
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
void PendingListNode::Destroy() {
|
98
|
+
if (!IsValid()) return;
|
99
|
+
GlobalHandles* global_handles = Isolate::Current()->global_handles();
|
100
|
+
global_handles->Destroy(function_.location());
|
101
|
+
function_= Handle<Object>::null();
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
void PendingListNode::WeakCallback(v8::Persistent<v8::Value>, void* data) {
|
106
|
+
reinterpret_cast<PendingListNode*>(data)->Destroy();
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
Atomic32 RuntimeProfiler::state_ = 0;
|
111
|
+
// TODO(isolates): Create the semaphore lazily and clean it up when no
|
112
|
+
// longer required.
|
113
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
114
|
+
Semaphore* RuntimeProfiler::semaphore_ = OS::CreateSemaphore(0);
|
115
|
+
#endif
|
116
|
+
|
117
|
+
#ifdef DEBUG
|
118
|
+
bool RuntimeProfiler::has_been_globally_setup_ = false;
|
119
|
+
#endif
|
120
|
+
bool RuntimeProfiler::enabled_ = false;
|
121
|
+
|
122
|
+
|
123
|
+
RuntimeProfiler::RuntimeProfiler(Isolate* isolate)
|
124
|
+
: isolate_(isolate),
|
125
|
+
sampler_threshold_(kSamplerThresholdInit),
|
126
|
+
sampler_threshold_size_factor_(kSamplerThresholdSizeFactorInit),
|
127
|
+
sampler_ticks_until_threshold_adjustment_(
|
128
|
+
kSamplerTicksBetweenThresholdAdjustment),
|
129
|
+
js_ratio_(0),
|
130
|
+
sampler_window_position_(0),
|
131
|
+
optimize_soon_list_(NULL),
|
132
|
+
state_window_position_(0),
|
133
|
+
state_window_ticks_(0) {
|
134
|
+
state_counts_[IN_NON_JS_STATE] = kStateWindowSize;
|
135
|
+
state_counts_[IN_JS_STATE] = 0;
|
136
|
+
STATIC_ASSERT(IN_NON_JS_STATE == 0);
|
137
|
+
memset(state_window_, 0, sizeof(state_window_));
|
138
|
+
ClearSampleBuffer();
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
void RuntimeProfiler::GlobalSetup() {
|
143
|
+
ASSERT(!has_been_globally_setup_);
|
144
|
+
enabled_ = V8::UseCrankshaft() && FLAG_opt;
|
145
|
+
#ifdef DEBUG
|
146
|
+
has_been_globally_setup_ = true;
|
147
|
+
#endif
|
148
|
+
}
|
149
|
+
|
150
|
+
|
151
|
+
void RuntimeProfiler::Optimize(JSFunction* function, bool eager, int delay) {
|
152
|
+
ASSERT(function->IsOptimizable());
|
153
|
+
if (FLAG_trace_opt) {
|
154
|
+
PrintF("[marking (%s) ", eager ? "eagerly" : "lazily");
|
155
|
+
function->PrintName();
|
156
|
+
PrintF(" 0x%" V8PRIxPTR, reinterpret_cast<intptr_t>(function->address()));
|
157
|
+
PrintF(" for recompilation");
|
158
|
+
if (delay > 0) {
|
159
|
+
PrintF(" (delayed %0.3f ms)", static_cast<double>(delay) / 1000);
|
160
|
+
}
|
161
|
+
PrintF("]\n");
|
162
|
+
}
|
163
|
+
|
164
|
+
// The next call to the function will trigger optimization.
|
165
|
+
function->MarkForLazyRecompilation();
|
166
|
+
}
|
167
|
+
|
168
|
+
|
169
|
+
void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function) {
|
170
|
+
// See AlwaysFullCompiler (in compiler.cc) comment on why we need
|
171
|
+
// Debug::has_break_points().
|
172
|
+
ASSERT(function->IsMarkedForLazyRecompilation());
|
173
|
+
if (!FLAG_use_osr ||
|
174
|
+
isolate_->DebuggerHasBreakPoints() ||
|
175
|
+
function->IsBuiltin()) {
|
176
|
+
return;
|
177
|
+
}
|
178
|
+
|
179
|
+
SharedFunctionInfo* shared = function->shared();
|
180
|
+
// If the code is not optimizable or references context slots, don't try OSR.
|
181
|
+
if (!shared->code()->optimizable() || !shared->allows_lazy_compilation()) {
|
182
|
+
return;
|
183
|
+
}
|
184
|
+
|
185
|
+
// We are not prepared to do OSR for a function that already has an
|
186
|
+
// allocated arguments object. The optimized code would bypass it for
|
187
|
+
// arguments accesses, which is unsound. Don't try OSR.
|
188
|
+
if (shared->scope_info()->HasArgumentsShadow()) return;
|
189
|
+
|
190
|
+
// We're using on-stack replacement: patch the unoptimized code so that
|
191
|
+
// any back edge in any unoptimized frame will trigger on-stack
|
192
|
+
// replacement for that frame.
|
193
|
+
if (FLAG_trace_osr) {
|
194
|
+
PrintF("[patching stack checks in ");
|
195
|
+
function->PrintName();
|
196
|
+
PrintF(" for on-stack replacement]\n");
|
197
|
+
}
|
198
|
+
|
199
|
+
// Get the stack check stub code object to match against. We aren't
|
200
|
+
// prepared to generate it, but we don't expect to have to.
|
201
|
+
StackCheckStub check_stub;
|
202
|
+
Object* check_code;
|
203
|
+
MaybeObject* maybe_check_code = check_stub.TryGetCode();
|
204
|
+
if (maybe_check_code->ToObject(&check_code)) {
|
205
|
+
Code* replacement_code =
|
206
|
+
isolate_->builtins()->builtin(Builtins::kOnStackReplacement);
|
207
|
+
Code* unoptimized_code = shared->code();
|
208
|
+
Deoptimizer::PatchStackCheckCode(unoptimized_code,
|
209
|
+
Code::cast(check_code),
|
210
|
+
replacement_code);
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
|
215
|
+
void RuntimeProfiler::ClearSampleBuffer() {
|
216
|
+
memset(sampler_window_, 0, sizeof(sampler_window_));
|
217
|
+
memset(sampler_window_weight_, 0, sizeof(sampler_window_weight_));
|
218
|
+
}
|
219
|
+
|
220
|
+
|
221
|
+
int RuntimeProfiler::LookupSample(JSFunction* function) {
|
222
|
+
int weight = 0;
|
223
|
+
for (int i = 0; i < kSamplerWindowSize; i++) {
|
224
|
+
Object* sample = sampler_window_[i];
|
225
|
+
if (sample != NULL) {
|
226
|
+
if (function == sample) {
|
227
|
+
weight += sampler_window_weight_[i];
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
return weight;
|
232
|
+
}
|
233
|
+
|
234
|
+
|
235
|
+
void RuntimeProfiler::AddSample(JSFunction* function, int weight) {
|
236
|
+
ASSERT(IsPowerOf2(kSamplerWindowSize));
|
237
|
+
sampler_window_[sampler_window_position_] = function;
|
238
|
+
sampler_window_weight_[sampler_window_position_] = weight;
|
239
|
+
sampler_window_position_ = (sampler_window_position_ + 1) &
|
240
|
+
(kSamplerWindowSize - 1);
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
void RuntimeProfiler::OptimizeNow() {
|
245
|
+
HandleScope scope(isolate_);
|
246
|
+
PendingListNode* current = optimize_soon_list_;
|
247
|
+
while (current != NULL) {
|
248
|
+
PendingListNode* next = current->next();
|
249
|
+
if (current->IsValid()) {
|
250
|
+
Handle<JSFunction> function = current->function();
|
251
|
+
int delay = current->Delay();
|
252
|
+
if (function->IsOptimizable()) {
|
253
|
+
Optimize(*function, true, delay);
|
254
|
+
}
|
255
|
+
}
|
256
|
+
delete current;
|
257
|
+
current = next;
|
258
|
+
}
|
259
|
+
optimize_soon_list_ = NULL;
|
260
|
+
|
261
|
+
// Run through the JavaScript frames and collect them. If we already
|
262
|
+
// have a sample of the function, we mark it for optimizations
|
263
|
+
// (eagerly or lazily).
|
264
|
+
JSFunction* samples[kSamplerFrameCount];
|
265
|
+
int sample_count = 0;
|
266
|
+
int frame_count = 0;
|
267
|
+
for (JavaScriptFrameIterator it(isolate_);
|
268
|
+
frame_count++ < kSamplerFrameCount && !it.done();
|
269
|
+
it.Advance()) {
|
270
|
+
JavaScriptFrame* frame = it.frame();
|
271
|
+
JSFunction* function = JSFunction::cast(frame->function());
|
272
|
+
|
273
|
+
// Adjust threshold each time we have processed
|
274
|
+
// a certain number of ticks.
|
275
|
+
if (sampler_ticks_until_threshold_adjustment_ > 0) {
|
276
|
+
sampler_ticks_until_threshold_adjustment_--;
|
277
|
+
if (sampler_ticks_until_threshold_adjustment_ <= 0) {
|
278
|
+
// If the threshold is not already at the minimum
|
279
|
+
// modify and reset the ticks until next adjustment.
|
280
|
+
if (sampler_threshold_ > kSamplerThresholdMin) {
|
281
|
+
sampler_threshold_ -= kSamplerThresholdDelta;
|
282
|
+
sampler_ticks_until_threshold_adjustment_ =
|
283
|
+
kSamplerTicksBetweenThresholdAdjustment;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|
288
|
+
if (function->IsMarkedForLazyRecompilation()) {
|
289
|
+
Code* unoptimized = function->shared()->code();
|
290
|
+
int nesting = unoptimized->allow_osr_at_loop_nesting_level();
|
291
|
+
if (nesting == 0) AttemptOnStackReplacement(function);
|
292
|
+
int new_nesting = Min(nesting + 1, Code::kMaxLoopNestingMarker);
|
293
|
+
unoptimized->set_allow_osr_at_loop_nesting_level(new_nesting);
|
294
|
+
}
|
295
|
+
|
296
|
+
// Do not record non-optimizable functions.
|
297
|
+
if (!function->IsOptimizable()) continue;
|
298
|
+
samples[sample_count++] = function;
|
299
|
+
|
300
|
+
int function_size = function->shared()->SourceSize();
|
301
|
+
int threshold_size_factor = (function_size > kSizeLimit)
|
302
|
+
? sampler_threshold_size_factor_
|
303
|
+
: 1;
|
304
|
+
|
305
|
+
int threshold = sampler_threshold_ * threshold_size_factor;
|
306
|
+
int current_js_ratio = NoBarrier_Load(&js_ratio_);
|
307
|
+
|
308
|
+
// Adjust threshold depending on the ratio of time spent
|
309
|
+
// in JS code.
|
310
|
+
if (current_js_ratio < 20) {
|
311
|
+
// If we spend less than 20% of the time in JS code,
|
312
|
+
// do not optimize.
|
313
|
+
continue;
|
314
|
+
} else if (current_js_ratio < 75) {
|
315
|
+
// Below 75% of time spent in JS code, only optimize very
|
316
|
+
// frequently used functions.
|
317
|
+
threshold *= 3;
|
318
|
+
}
|
319
|
+
|
320
|
+
if (LookupSample(function) >= threshold) {
|
321
|
+
Optimize(function, false, 0);
|
322
|
+
isolate_->compilation_cache()->MarkForEagerOptimizing(
|
323
|
+
Handle<JSFunction>(function));
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
// Add the collected functions as samples. It's important not to do
|
328
|
+
// this as part of collecting them because this will interfere with
|
329
|
+
// the sample lookup in case of recursive functions.
|
330
|
+
for (int i = 0; i < sample_count; i++) {
|
331
|
+
AddSample(samples[i], kSamplerFrameWeight[i]);
|
332
|
+
}
|
333
|
+
}
|
334
|
+
|
335
|
+
|
336
|
+
void RuntimeProfiler::OptimizeSoon(JSFunction* function) {
|
337
|
+
if (!function->IsOptimizable()) return;
|
338
|
+
PendingListNode* node = new PendingListNode(function);
|
339
|
+
node->set_next(optimize_soon_list_);
|
340
|
+
optimize_soon_list_ = node;
|
341
|
+
}
|
342
|
+
|
343
|
+
|
344
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
345
|
+
void RuntimeProfiler::UpdateStateRatio(SamplerState current_state) {
|
346
|
+
SamplerState old_state = state_window_[state_window_position_];
|
347
|
+
state_counts_[old_state]--;
|
348
|
+
state_window_[state_window_position_] = current_state;
|
349
|
+
state_counts_[current_state]++;
|
350
|
+
ASSERT(IsPowerOf2(kStateWindowSize));
|
351
|
+
state_window_position_ = (state_window_position_ + 1) &
|
352
|
+
(kStateWindowSize - 1);
|
353
|
+
// Note: to calculate correct ratio we have to track how many valid
|
354
|
+
// ticks are actually in the state window, because on profiler
|
355
|
+
// startup this number can be less than the window size.
|
356
|
+
state_window_ticks_ = Min(kStateWindowSize, state_window_ticks_ + 1);
|
357
|
+
NoBarrier_Store(&js_ratio_, state_counts_[IN_JS_STATE] * 100 /
|
358
|
+
state_window_ticks_);
|
359
|
+
}
|
360
|
+
#endif
|
361
|
+
|
362
|
+
|
363
|
+
void RuntimeProfiler::NotifyTick() {
|
364
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
365
|
+
// Record state sample.
|
366
|
+
SamplerState state = IsSomeIsolateInJS()
|
367
|
+
? IN_JS_STATE
|
368
|
+
: IN_NON_JS_STATE;
|
369
|
+
UpdateStateRatio(state);
|
370
|
+
isolate_->stack_guard()->RequestRuntimeProfilerTick();
|
371
|
+
#endif
|
372
|
+
}
|
373
|
+
|
374
|
+
|
375
|
+
void RuntimeProfiler::Setup() {
|
376
|
+
ASSERT(has_been_globally_setup_);
|
377
|
+
ClearSampleBuffer();
|
378
|
+
// If the ticker hasn't already started, make sure to do so to get
|
379
|
+
// the ticks for the runtime profiler.
|
380
|
+
if (IsEnabled()) isolate_->logger()->EnsureTickerStarted();
|
381
|
+
}
|
382
|
+
|
383
|
+
|
384
|
+
void RuntimeProfiler::Reset() {
|
385
|
+
sampler_threshold_ = kSamplerThresholdInit;
|
386
|
+
sampler_threshold_size_factor_ = kSamplerThresholdSizeFactorInit;
|
387
|
+
sampler_ticks_until_threshold_adjustment_ =
|
388
|
+
kSamplerTicksBetweenThresholdAdjustment;
|
389
|
+
}
|
390
|
+
|
391
|
+
|
392
|
+
void RuntimeProfiler::TearDown() {
|
393
|
+
// Nothing to do.
|
394
|
+
}
|
395
|
+
|
396
|
+
|
397
|
+
int RuntimeProfiler::SamplerWindowSize() {
|
398
|
+
return kSamplerWindowSize;
|
399
|
+
}
|
400
|
+
|
401
|
+
|
402
|
+
// Update the pointers in the sampler window after a GC.
|
403
|
+
void RuntimeProfiler::UpdateSamplesAfterScavenge() {
|
404
|
+
for (int i = 0; i < kSamplerWindowSize; i++) {
|
405
|
+
Object* function = sampler_window_[i];
|
406
|
+
if (function != NULL && isolate_->heap()->InNewSpace(function)) {
|
407
|
+
MapWord map_word = HeapObject::cast(function)->map_word();
|
408
|
+
if (map_word.IsForwardingAddress()) {
|
409
|
+
sampler_window_[i] = map_word.ToForwardingAddress();
|
410
|
+
} else {
|
411
|
+
sampler_window_[i] = NULL;
|
412
|
+
}
|
413
|
+
}
|
414
|
+
}
|
415
|
+
}
|
416
|
+
|
417
|
+
|
418
|
+
void RuntimeProfiler::HandleWakeUp(Isolate* isolate) {
|
419
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
420
|
+
// The profiler thread must still be waiting.
|
421
|
+
ASSERT(NoBarrier_Load(&state_) >= 0);
|
422
|
+
// In IsolateEnteredJS we have already incremented the counter and
|
423
|
+
// undid the decrement done by the profiler thread. Increment again
|
424
|
+
// to get the right count of active isolates.
|
425
|
+
NoBarrier_AtomicIncrement(&state_, 1);
|
426
|
+
semaphore_->Signal();
|
427
|
+
isolate->ResetEagerOptimizingData();
|
428
|
+
#endif
|
429
|
+
}
|
430
|
+
|
431
|
+
|
432
|
+
bool RuntimeProfiler::IsSomeIsolateInJS() {
|
433
|
+
return NoBarrier_Load(&state_) > 0;
|
434
|
+
}
|
435
|
+
|
436
|
+
|
437
|
+
bool RuntimeProfiler::WaitForSomeIsolateToEnterJS() {
|
438
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
439
|
+
Atomic32 old_state = NoBarrier_CompareAndSwap(&state_, 0, -1);
|
440
|
+
ASSERT(old_state >= -1);
|
441
|
+
if (old_state != 0) return false;
|
442
|
+
semaphore_->Wait();
|
443
|
+
#endif
|
444
|
+
return true;
|
445
|
+
}
|
446
|
+
|
447
|
+
|
448
|
+
void RuntimeProfiler::WakeUpRuntimeProfilerThreadBeforeShutdown() {
|
449
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
450
|
+
semaphore_->Signal();
|
451
|
+
#endif
|
452
|
+
}
|
453
|
+
|
454
|
+
|
455
|
+
void RuntimeProfiler::RemoveDeadSamples() {
|
456
|
+
for (int i = 0; i < kSamplerWindowSize; i++) {
|
457
|
+
Object* function = sampler_window_[i];
|
458
|
+
if (function != NULL && !HeapObject::cast(function)->IsMarked()) {
|
459
|
+
sampler_window_[i] = NULL;
|
460
|
+
}
|
461
|
+
}
|
462
|
+
}
|
463
|
+
|
464
|
+
|
465
|
+
void RuntimeProfiler::UpdateSamplesAfterCompact(ObjectVisitor* visitor) {
|
466
|
+
for (int i = 0; i < kSamplerWindowSize; i++) {
|
467
|
+
visitor->VisitPointer(&sampler_window_[i]);
|
468
|
+
}
|
469
|
+
}
|
470
|
+
|
471
|
+
|
472
|
+
bool RuntimeProfilerRateLimiter::SuspendIfNecessary() {
|
473
|
+
#ifdef ENABLE_LOGGING_AND_PROFILING
|
474
|
+
static const int kNonJSTicksThreshold = 100;
|
475
|
+
if (RuntimeProfiler::IsSomeIsolateInJS()) {
|
476
|
+
non_js_ticks_ = 0;
|
477
|
+
} else {
|
478
|
+
if (non_js_ticks_ < kNonJSTicksThreshold) {
|
479
|
+
++non_js_ticks_;
|
480
|
+
} else {
|
481
|
+
return RuntimeProfiler::WaitForSomeIsolateToEnterJS();
|
482
|
+
}
|
483
|
+
}
|
484
|
+
#endif
|
485
|
+
return false;
|
486
|
+
}
|
487
|
+
|
488
|
+
|
489
|
+
} } // namespace v8::internal
|