therubyracer 0.9.0beta4 → 0.9.0beta5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/.gitignore +1 -0
- data/Rakefile +0 -11
- data/ext/v8/extconf.rb +9 -9
- data/ext/v8/v8_external.cpp +40 -10
- data/lib/v8/cli.rb +2 -1
- data/lib/v8/version.rb +1 -1
- data/spec/redjs/.gitignore +1 -0
- data/therubyracer.gemspec +2 -3
- metadata +33 -779
- data/ext/v8/upstream/Makefile +0 -38
- data/ext/v8/upstream/detect_cpu.rb +0 -27
- data/ext/v8/upstream/fpic-on-linux-amd64.patch +0 -13
- data/ext/v8/upstream/scons/CHANGES.txt +0 -5183
- data/ext/v8/upstream/scons/LICENSE.txt +0 -20
- data/ext/v8/upstream/scons/MANIFEST +0 -202
- data/ext/v8/upstream/scons/PKG-INFO +0 -13
- data/ext/v8/upstream/scons/README.txt +0 -273
- data/ext/v8/upstream/scons/RELEASE.txt +0 -1040
- data/ext/v8/upstream/scons/engine/SCons/Action.py +0 -1256
- data/ext/v8/upstream/scons/engine/SCons/Builder.py +0 -868
- data/ext/v8/upstream/scons/engine/SCons/CacheDir.py +0 -217
- data/ext/v8/upstream/scons/engine/SCons/Conftest.py +0 -794
- data/ext/v8/upstream/scons/engine/SCons/Debug.py +0 -237
- data/ext/v8/upstream/scons/engine/SCons/Defaults.py +0 -485
- data/ext/v8/upstream/scons/engine/SCons/Environment.py +0 -2327
- data/ext/v8/upstream/scons/engine/SCons/Errors.py +0 -207
- data/ext/v8/upstream/scons/engine/SCons/Executor.py +0 -636
- data/ext/v8/upstream/scons/engine/SCons/Job.py +0 -435
- data/ext/v8/upstream/scons/engine/SCons/Memoize.py +0 -292
- data/ext/v8/upstream/scons/engine/SCons/Node/Alias.py +0 -153
- data/ext/v8/upstream/scons/engine/SCons/Node/FS.py +0 -3220
- data/ext/v8/upstream/scons/engine/SCons/Node/Python.py +0 -128
- data/ext/v8/upstream/scons/engine/SCons/Node/__init__.py +0 -1341
- data/ext/v8/upstream/scons/engine/SCons/Options/BoolOption.py +0 -50
- data/ext/v8/upstream/scons/engine/SCons/Options/EnumOption.py +0 -50
- data/ext/v8/upstream/scons/engine/SCons/Options/ListOption.py +0 -50
- data/ext/v8/upstream/scons/engine/SCons/Options/PackageOption.py +0 -50
- data/ext/v8/upstream/scons/engine/SCons/Options/PathOption.py +0 -76
- data/ext/v8/upstream/scons/engine/SCons/Options/__init__.py +0 -74
- data/ext/v8/upstream/scons/engine/SCons/PathList.py +0 -232
- data/ext/v8/upstream/scons/engine/SCons/Platform/__init__.py +0 -236
- data/ext/v8/upstream/scons/engine/SCons/Platform/aix.py +0 -70
- data/ext/v8/upstream/scons/engine/SCons/Platform/cygwin.py +0 -55
- data/ext/v8/upstream/scons/engine/SCons/Platform/darwin.py +0 -46
- data/ext/v8/upstream/scons/engine/SCons/Platform/hpux.py +0 -46
- data/ext/v8/upstream/scons/engine/SCons/Platform/irix.py +0 -44
- data/ext/v8/upstream/scons/engine/SCons/Platform/os2.py +0 -58
- data/ext/v8/upstream/scons/engine/SCons/Platform/posix.py +0 -264
- data/ext/v8/upstream/scons/engine/SCons/Platform/sunos.py +0 -50
- data/ext/v8/upstream/scons/engine/SCons/Platform/win32.py +0 -386
- data/ext/v8/upstream/scons/engine/SCons/SConf.py +0 -1038
- data/ext/v8/upstream/scons/engine/SCons/SConsign.py +0 -381
- data/ext/v8/upstream/scons/engine/SCons/Scanner/C.py +0 -132
- data/ext/v8/upstream/scons/engine/SCons/Scanner/D.py +0 -74
- data/ext/v8/upstream/scons/engine/SCons/Scanner/Dir.py +0 -111
- data/ext/v8/upstream/scons/engine/SCons/Scanner/Fortran.py +0 -320
- data/ext/v8/upstream/scons/engine/SCons/Scanner/IDL.py +0 -48
- data/ext/v8/upstream/scons/engine/SCons/Scanner/LaTeX.py +0 -378
- data/ext/v8/upstream/scons/engine/SCons/Scanner/Prog.py +0 -103
- data/ext/v8/upstream/scons/engine/SCons/Scanner/RC.py +0 -55
- data/ext/v8/upstream/scons/engine/SCons/Scanner/__init__.py +0 -415
- data/ext/v8/upstream/scons/engine/SCons/Script/Interactive.py +0 -386
- data/ext/v8/upstream/scons/engine/SCons/Script/Main.py +0 -1360
- data/ext/v8/upstream/scons/engine/SCons/Script/SConsOptions.py +0 -944
- data/ext/v8/upstream/scons/engine/SCons/Script/SConscript.py +0 -642
- data/ext/v8/upstream/scons/engine/SCons/Script/__init__.py +0 -414
- data/ext/v8/upstream/scons/engine/SCons/Sig.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Subst.py +0 -911
- data/ext/v8/upstream/scons/engine/SCons/Taskmaster.py +0 -1030
- data/ext/v8/upstream/scons/engine/SCons/Tool/386asm.py +0 -61
- data/ext/v8/upstream/scons/engine/SCons/Tool/BitKeeper.py +0 -65
- data/ext/v8/upstream/scons/engine/SCons/Tool/CVS.py +0 -73
- data/ext/v8/upstream/scons/engine/SCons/Tool/FortranCommon.py +0 -247
- data/ext/v8/upstream/scons/engine/SCons/Tool/JavaCommon.py +0 -324
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/__init__.py +0 -56
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/arch.py +0 -61
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/common.py +0 -210
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/netframework.py +0 -84
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/sdk.py +0 -321
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vc.py +0 -367
- data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vs.py +0 -497
- data/ext/v8/upstream/scons/engine/SCons/Tool/Perforce.py +0 -104
- data/ext/v8/upstream/scons/engine/SCons/Tool/PharLapCommon.py +0 -138
- data/ext/v8/upstream/scons/engine/SCons/Tool/RCS.py +0 -64
- data/ext/v8/upstream/scons/engine/SCons/Tool/SCCS.py +0 -64
- data/ext/v8/upstream/scons/engine/SCons/Tool/Subversion.py +0 -71
- data/ext/v8/upstream/scons/engine/SCons/Tool/__init__.py +0 -675
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixc++.py +0 -82
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixcc.py +0 -74
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixf77.py +0 -80
- data/ext/v8/upstream/scons/engine/SCons/Tool/aixlink.py +0 -76
- data/ext/v8/upstream/scons/engine/SCons/Tool/applelink.py +0 -71
- data/ext/v8/upstream/scons/engine/SCons/Tool/ar.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Tool/as.py +0 -78
- data/ext/v8/upstream/scons/engine/SCons/Tool/bcc32.py +0 -82
- data/ext/v8/upstream/scons/engine/SCons/Tool/c++.py +0 -99
- data/ext/v8/upstream/scons/engine/SCons/Tool/cc.py +0 -114
- data/ext/v8/upstream/scons/engine/SCons/Tool/cvf.py +0 -58
- data/ext/v8/upstream/scons/engine/SCons/Tool/default.py +0 -50
- data/ext/v8/upstream/scons/engine/SCons/Tool/dmd.py +0 -224
- data/ext/v8/upstream/scons/engine/SCons/Tool/dvi.py +0 -64
- data/ext/v8/upstream/scons/engine/SCons/Tool/dvipdf.py +0 -125
- data/ext/v8/upstream/scons/engine/SCons/Tool/dvips.py +0 -94
- data/ext/v8/upstream/scons/engine/SCons/Tool/f77.py +0 -62
- data/ext/v8/upstream/scons/engine/SCons/Tool/f90.py +0 -62
- data/ext/v8/upstream/scons/engine/SCons/Tool/f95.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Tool/filesystem.py +0 -98
- data/ext/v8/upstream/scons/engine/SCons/Tool/fortran.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Tool/g++.py +0 -90
- data/ext/v8/upstream/scons/engine/SCons/Tool/g77.py +0 -73
- data/ext/v8/upstream/scons/engine/SCons/Tool/gas.py +0 -53
- data/ext/v8/upstream/scons/engine/SCons/Tool/gcc.py +0 -80
- data/ext/v8/upstream/scons/engine/SCons/Tool/gfortran.py +0 -64
- data/ext/v8/upstream/scons/engine/SCons/Tool/gnulink.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Tool/gs.py +0 -81
- data/ext/v8/upstream/scons/engine/SCons/Tool/hpc++.py +0 -85
- data/ext/v8/upstream/scons/engine/SCons/Tool/hpcc.py +0 -53
- data/ext/v8/upstream/scons/engine/SCons/Tool/hplink.py +0 -77
- data/ext/v8/upstream/scons/engine/SCons/Tool/icc.py +0 -59
- data/ext/v8/upstream/scons/engine/SCons/Tool/icl.py +0 -52
- data/ext/v8/upstream/scons/engine/SCons/Tool/ifl.py +0 -72
- data/ext/v8/upstream/scons/engine/SCons/Tool/ifort.py +0 -90
- data/ext/v8/upstream/scons/engine/SCons/Tool/ilink.py +0 -59
- data/ext/v8/upstream/scons/engine/SCons/Tool/ilink32.py +0 -60
- data/ext/v8/upstream/scons/engine/SCons/Tool/install.py +0 -229
- data/ext/v8/upstream/scons/engine/SCons/Tool/intelc.py +0 -490
- data/ext/v8/upstream/scons/engine/SCons/Tool/ipkg.py +0 -71
- data/ext/v8/upstream/scons/engine/SCons/Tool/jar.py +0 -110
- data/ext/v8/upstream/scons/engine/SCons/Tool/javac.py +0 -234
- data/ext/v8/upstream/scons/engine/SCons/Tool/javah.py +0 -138
- data/ext/v8/upstream/scons/engine/SCons/Tool/latex.py +0 -79
- data/ext/v8/upstream/scons/engine/SCons/Tool/lex.py +0 -99
- data/ext/v8/upstream/scons/engine/SCons/Tool/link.py +0 -121
- data/ext/v8/upstream/scons/engine/SCons/Tool/linkloc.py +0 -112
- data/ext/v8/upstream/scons/engine/SCons/Tool/m4.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Tool/masm.py +0 -77
- data/ext/v8/upstream/scons/engine/SCons/Tool/midl.py +0 -90
- data/ext/v8/upstream/scons/engine/SCons/Tool/mingw.py +0 -159
- data/ext/v8/upstream/scons/engine/SCons/Tool/mslib.py +0 -64
- data/ext/v8/upstream/scons/engine/SCons/Tool/mslink.py +0 -266
- data/ext/v8/upstream/scons/engine/SCons/Tool/mssdk.py +0 -50
- data/ext/v8/upstream/scons/engine/SCons/Tool/msvc.py +0 -269
- data/ext/v8/upstream/scons/engine/SCons/Tool/msvs.py +0 -1439
- data/ext/v8/upstream/scons/engine/SCons/Tool/mwcc.py +0 -208
- data/ext/v8/upstream/scons/engine/SCons/Tool/mwld.py +0 -107
- data/ext/v8/upstream/scons/engine/SCons/Tool/nasm.py +0 -72
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/__init__.py +0 -314
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/ipk.py +0 -185
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/msi.py +0 -526
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/rpm.py +0 -367
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_tarbz2.py +0 -43
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_targz.py +0 -43
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_zip.py +0 -43
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/tarbz2.py +0 -44
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/targz.py +0 -44
- data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/zip.py +0 -44
- data/ext/v8/upstream/scons/engine/SCons/Tool/pdf.py +0 -78
- data/ext/v8/upstream/scons/engine/SCons/Tool/pdflatex.py +0 -83
- data/ext/v8/upstream/scons/engine/SCons/Tool/pdftex.py +0 -108
- data/ext/v8/upstream/scons/engine/SCons/Tool/qt.py +0 -336
- data/ext/v8/upstream/scons/engine/SCons/Tool/rmic.py +0 -121
- data/ext/v8/upstream/scons/engine/SCons/Tool/rpcgen.py +0 -70
- data/ext/v8/upstream/scons/engine/SCons/Tool/rpm.py +0 -132
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgiar.py +0 -68
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgic++.py +0 -58
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgicc.py +0 -53
- data/ext/v8/upstream/scons/engine/SCons/Tool/sgilink.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunar.py +0 -67
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunc++.py +0 -142
- data/ext/v8/upstream/scons/engine/SCons/Tool/suncc.py +0 -58
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunf77.py +0 -63
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunf90.py +0 -64
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunf95.py +0 -64
- data/ext/v8/upstream/scons/engine/SCons/Tool/sunlink.py +0 -77
- data/ext/v8/upstream/scons/engine/SCons/Tool/swig.py +0 -186
- data/ext/v8/upstream/scons/engine/SCons/Tool/tar.py +0 -73
- data/ext/v8/upstream/scons/engine/SCons/Tool/tex.py +0 -805
- data/ext/v8/upstream/scons/engine/SCons/Tool/textfile.py +0 -175
- data/ext/v8/upstream/scons/engine/SCons/Tool/tlib.py +0 -53
- data/ext/v8/upstream/scons/engine/SCons/Tool/wix.py +0 -100
- data/ext/v8/upstream/scons/engine/SCons/Tool/yacc.py +0 -131
- data/ext/v8/upstream/scons/engine/SCons/Tool/zip.py +0 -100
- data/ext/v8/upstream/scons/engine/SCons/Util.py +0 -1645
- data/ext/v8/upstream/scons/engine/SCons/Variables/BoolVariable.py +0 -91
- data/ext/v8/upstream/scons/engine/SCons/Variables/EnumVariable.py +0 -107
- data/ext/v8/upstream/scons/engine/SCons/Variables/ListVariable.py +0 -139
- data/ext/v8/upstream/scons/engine/SCons/Variables/PackageVariable.py +0 -109
- data/ext/v8/upstream/scons/engine/SCons/Variables/PathVariable.py +0 -147
- data/ext/v8/upstream/scons/engine/SCons/Variables/__init__.py +0 -317
- data/ext/v8/upstream/scons/engine/SCons/Warnings.py +0 -228
- data/ext/v8/upstream/scons/engine/SCons/__init__.py +0 -49
- data/ext/v8/upstream/scons/engine/SCons/compat/__init__.py +0 -302
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_UserString.py +0 -98
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_hashlib.py +0 -91
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_itertools.py +0 -124
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_optparse.py +0 -1725
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets.py +0 -583
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets15.py +0 -176
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_shlex.py +0 -325
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_subprocess.py +0 -1296
- data/ext/v8/upstream/scons/engine/SCons/compat/_scons_textwrap.py +0 -382
- data/ext/v8/upstream/scons/engine/SCons/compat/builtins.py +0 -187
- data/ext/v8/upstream/scons/engine/SCons/cpp.py +0 -598
- data/ext/v8/upstream/scons/engine/SCons/dblite.py +0 -248
- data/ext/v8/upstream/scons/engine/SCons/exitfuncs.py +0 -77
- data/ext/v8/upstream/scons/os_spawnv_fix.diff +0 -83
- data/ext/v8/upstream/scons/scons-time.1 +0 -1017
- data/ext/v8/upstream/scons/scons.1 +0 -15179
- data/ext/v8/upstream/scons/sconsign.1 +0 -208
- data/ext/v8/upstream/scons/script/scons +0 -184
- data/ext/v8/upstream/scons/script/scons-time +0 -1529
- data/ext/v8/upstream/scons/script/scons.bat +0 -31
- data/ext/v8/upstream/scons/script/sconsign +0 -508
- data/ext/v8/upstream/scons/setup.cfg +0 -6
- data/ext/v8/upstream/scons/setup.py +0 -427
- data/ext/v8/upstream/v8/.gitignore +0 -33
- data/ext/v8/upstream/v8/AUTHORS +0 -42
- data/ext/v8/upstream/v8/ChangeLog +0 -2663
- data/ext/v8/upstream/v8/LICENSE +0 -52
- data/ext/v8/upstream/v8/LICENSE.strongtalk +0 -29
- data/ext/v8/upstream/v8/LICENSE.v8 +0 -26
- data/ext/v8/upstream/v8/LICENSE.valgrind +0 -45
- data/ext/v8/upstream/v8/SConstruct +0 -1473
- data/ext/v8/upstream/v8/build/README.txt +0 -25
- data/ext/v8/upstream/v8/build/all.gyp +0 -18
- data/ext/v8/upstream/v8/build/armu.gypi +0 -32
- data/ext/v8/upstream/v8/build/common.gypi +0 -82
- data/ext/v8/upstream/v8/build/gyp_v8 +0 -145
- data/ext/v8/upstream/v8/include/v8-debug.h +0 -394
- data/ext/v8/upstream/v8/include/v8-preparser.h +0 -116
- data/ext/v8/upstream/v8/include/v8-profiler.h +0 -505
- data/ext/v8/upstream/v8/include/v8-testing.h +0 -104
- data/ext/v8/upstream/v8/include/v8.h +0 -4000
- data/ext/v8/upstream/v8/include/v8stdint.h +0 -53
- data/ext/v8/upstream/v8/preparser/SConscript +0 -38
- data/ext/v8/upstream/v8/preparser/preparser-process.cc +0 -169
- data/ext/v8/upstream/v8/src/SConscript +0 -380
- data/ext/v8/upstream/v8/src/accessors.cc +0 -766
- data/ext/v8/upstream/v8/src/accessors.h +0 -121
- data/ext/v8/upstream/v8/src/allocation-inl.h +0 -49
- data/ext/v8/upstream/v8/src/allocation.cc +0 -122
- data/ext/v8/upstream/v8/src/allocation.h +0 -143
- data/ext/v8/upstream/v8/src/api.cc +0 -5678
- data/ext/v8/upstream/v8/src/api.h +0 -572
- data/ext/v8/upstream/v8/src/apinatives.js +0 -110
- data/ext/v8/upstream/v8/src/apiutils.h +0 -73
- data/ext/v8/upstream/v8/src/arguments.h +0 -116
- data/ext/v8/upstream/v8/src/arm/assembler-arm-inl.h +0 -353
- data/ext/v8/upstream/v8/src/arm/assembler-arm.cc +0 -2877
- data/ext/v8/upstream/v8/src/arm/assembler-arm.h +0 -1382
- data/ext/v8/upstream/v8/src/arm/builtins-arm.cc +0 -1634
- data/ext/v8/upstream/v8/src/arm/code-stubs-arm.cc +0 -6917
- data/ext/v8/upstream/v8/src/arm/code-stubs-arm.h +0 -623
- data/ext/v8/upstream/v8/src/arm/codegen-arm-inl.h +0 -48
- data/ext/v8/upstream/v8/src/arm/codegen-arm.cc +0 -7437
- data/ext/v8/upstream/v8/src/arm/codegen-arm.h +0 -595
- data/ext/v8/upstream/v8/src/arm/constants-arm.cc +0 -152
- data/ext/v8/upstream/v8/src/arm/constants-arm.h +0 -778
- data/ext/v8/upstream/v8/src/arm/cpu-arm.cc +0 -149
- data/ext/v8/upstream/v8/src/arm/debug-arm.cc +0 -317
- data/ext/v8/upstream/v8/src/arm/deoptimizer-arm.cc +0 -737
- data/ext/v8/upstream/v8/src/arm/disasm-arm.cc +0 -1503
- data/ext/v8/upstream/v8/src/arm/frames-arm.cc +0 -45
- data/ext/v8/upstream/v8/src/arm/frames-arm.h +0 -168
- data/ext/v8/upstream/v8/src/arm/full-codegen-arm.cc +0 -4374
- data/ext/v8/upstream/v8/src/arm/ic-arm.cc +0 -1793
- data/ext/v8/upstream/v8/src/arm/jump-target-arm.cc +0 -174
- data/ext/v8/upstream/v8/src/arm/lithium-arm.cc +0 -2120
- data/ext/v8/upstream/v8/src/arm/lithium-arm.h +0 -2179
- data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.cc +0 -4132
- data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.h +0 -329
- data/ext/v8/upstream/v8/src/arm/lithium-gap-resolver-arm.cc +0 -305
- data/ext/v8/upstream/v8/src/arm/lithium-gap-resolver-arm.h +0 -84
- data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.cc +0 -2939
- data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.h +0 -1071
- data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.cc +0 -1287
- data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.h +0 -253
- data/ext/v8/upstream/v8/src/arm/register-allocator-arm-inl.h +0 -100
- data/ext/v8/upstream/v8/src/arm/register-allocator-arm.cc +0 -63
- data/ext/v8/upstream/v8/src/arm/register-allocator-arm.h +0 -44
- data/ext/v8/upstream/v8/src/arm/simulator-arm.cc +0 -3288
- data/ext/v8/upstream/v8/src/arm/simulator-arm.h +0 -413
- data/ext/v8/upstream/v8/src/arm/stub-cache-arm.cc +0 -4034
- data/ext/v8/upstream/v8/src/arm/virtual-frame-arm-inl.h +0 -59
- data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.cc +0 -843
- data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.h +0 -523
- data/ext/v8/upstream/v8/src/array.js +0 -1249
- data/ext/v8/upstream/v8/src/assembler.cc +0 -1067
- data/ext/v8/upstream/v8/src/assembler.h +0 -823
- data/ext/v8/upstream/v8/src/ast-inl.h +0 -112
- data/ext/v8/upstream/v8/src/ast.cc +0 -1078
- data/ext/v8/upstream/v8/src/ast.h +0 -2234
- data/ext/v8/upstream/v8/src/atomicops.h +0 -167
- data/ext/v8/upstream/v8/src/atomicops_internals_arm_gcc.h +0 -145
- data/ext/v8/upstream/v8/src/atomicops_internals_mips_gcc.h +0 -169
- data/ext/v8/upstream/v8/src/atomicops_internals_x86_gcc.cc +0 -126
- data/ext/v8/upstream/v8/src/atomicops_internals_x86_gcc.h +0 -287
- data/ext/v8/upstream/v8/src/atomicops_internals_x86_macosx.h +0 -301
- data/ext/v8/upstream/v8/src/atomicops_internals_x86_msvc.h +0 -203
- data/ext/v8/upstream/v8/src/bignum-dtoa.cc +0 -655
- data/ext/v8/upstream/v8/src/bignum-dtoa.h +0 -81
- data/ext/v8/upstream/v8/src/bignum.cc +0 -768
- data/ext/v8/upstream/v8/src/bignum.h +0 -140
- data/ext/v8/upstream/v8/src/bootstrapper.cc +0 -2138
- data/ext/v8/upstream/v8/src/bootstrapper.h +0 -185
- data/ext/v8/upstream/v8/src/builtins.cc +0 -1708
- data/ext/v8/upstream/v8/src/builtins.h +0 -368
- data/ext/v8/upstream/v8/src/bytecodes-irregexp.h +0 -105
- data/ext/v8/upstream/v8/src/cached-powers.cc +0 -177
- data/ext/v8/upstream/v8/src/cached-powers.h +0 -65
- data/ext/v8/upstream/v8/src/char-predicates-inl.h +0 -94
- data/ext/v8/upstream/v8/src/char-predicates.h +0 -65
- data/ext/v8/upstream/v8/src/checks.cc +0 -110
- data/ext/v8/upstream/v8/src/checks.h +0 -296
- data/ext/v8/upstream/v8/src/circular-queue-inl.h +0 -53
- data/ext/v8/upstream/v8/src/circular-queue.cc +0 -122
- data/ext/v8/upstream/v8/src/circular-queue.h +0 -103
- data/ext/v8/upstream/v8/src/code-stubs.cc +0 -240
- data/ext/v8/upstream/v8/src/code-stubs.h +0 -971
- data/ext/v8/upstream/v8/src/code.h +0 -68
- data/ext/v8/upstream/v8/src/codegen-inl.h +0 -68
- data/ext/v8/upstream/v8/src/codegen.cc +0 -505
- data/ext/v8/upstream/v8/src/codegen.h +0 -245
- data/ext/v8/upstream/v8/src/compilation-cache.cc +0 -540
- data/ext/v8/upstream/v8/src/compilation-cache.h +0 -287
- data/ext/v8/upstream/v8/src/compiler.cc +0 -792
- data/ext/v8/upstream/v8/src/compiler.h +0 -307
- data/ext/v8/upstream/v8/src/contexts.cc +0 -327
- data/ext/v8/upstream/v8/src/contexts.h +0 -382
- data/ext/v8/upstream/v8/src/conversions-inl.h +0 -110
- data/ext/v8/upstream/v8/src/conversions.cc +0 -1125
- data/ext/v8/upstream/v8/src/conversions.h +0 -122
- data/ext/v8/upstream/v8/src/counters.cc +0 -93
- data/ext/v8/upstream/v8/src/counters.h +0 -254
- data/ext/v8/upstream/v8/src/cpu-profiler-inl.h +0 -101
- data/ext/v8/upstream/v8/src/cpu-profiler.cc +0 -606
- data/ext/v8/upstream/v8/src/cpu-profiler.h +0 -305
- data/ext/v8/upstream/v8/src/cpu.h +0 -67
- data/ext/v8/upstream/v8/src/d8-debug.cc +0 -367
- data/ext/v8/upstream/v8/src/d8-debug.h +0 -158
- data/ext/v8/upstream/v8/src/d8-posix.cc +0 -695
- data/ext/v8/upstream/v8/src/d8-readline.cc +0 -128
- data/ext/v8/upstream/v8/src/d8-windows.cc +0 -42
- data/ext/v8/upstream/v8/src/d8.cc +0 -796
- data/ext/v8/upstream/v8/src/d8.gyp +0 -88
- data/ext/v8/upstream/v8/src/d8.h +0 -231
- data/ext/v8/upstream/v8/src/d8.js +0 -2798
- data/ext/v8/upstream/v8/src/data-flow.cc +0 -545
- data/ext/v8/upstream/v8/src/data-flow.h +0 -379
- data/ext/v8/upstream/v8/src/date.js +0 -1103
- data/ext/v8/upstream/v8/src/dateparser-inl.h +0 -125
- data/ext/v8/upstream/v8/src/dateparser.cc +0 -178
- data/ext/v8/upstream/v8/src/dateparser.h +0 -265
- data/ext/v8/upstream/v8/src/debug-agent.cc +0 -447
- data/ext/v8/upstream/v8/src/debug-agent.h +0 -129
- data/ext/v8/upstream/v8/src/debug-debugger.js +0 -2569
- data/ext/v8/upstream/v8/src/debug.cc +0 -3188
- data/ext/v8/upstream/v8/src/debug.h +0 -1055
- data/ext/v8/upstream/v8/src/deoptimizer.cc +0 -1296
- data/ext/v8/upstream/v8/src/deoptimizer.h +0 -629
- data/ext/v8/upstream/v8/src/disasm.h +0 -80
- data/ext/v8/upstream/v8/src/disassembler.cc +0 -339
- data/ext/v8/upstream/v8/src/disassembler.h +0 -56
- data/ext/v8/upstream/v8/src/diy-fp.cc +0 -58
- data/ext/v8/upstream/v8/src/diy-fp.h +0 -117
- data/ext/v8/upstream/v8/src/double.h +0 -238
- data/ext/v8/upstream/v8/src/dtoa.cc +0 -103
- data/ext/v8/upstream/v8/src/dtoa.h +0 -85
- data/ext/v8/upstream/v8/src/execution.cc +0 -791
- data/ext/v8/upstream/v8/src/execution.h +0 -291
- data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.cc +0 -250
- data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.h +0 -89
- data/ext/v8/upstream/v8/src/extensions/experimental/experimental.gyp +0 -55
- data/ext/v8/upstream/v8/src/extensions/experimental/i18n-extension.cc +0 -284
- data/ext/v8/upstream/v8/src/extensions/experimental/i18n-extension.h +0 -64
- data/ext/v8/upstream/v8/src/extensions/externalize-string-extension.cc +0 -141
- data/ext/v8/upstream/v8/src/extensions/externalize-string-extension.h +0 -50
- data/ext/v8/upstream/v8/src/extensions/gc-extension.cc +0 -58
- data/ext/v8/upstream/v8/src/extensions/gc-extension.h +0 -49
- data/ext/v8/upstream/v8/src/factory.cc +0 -1194
- data/ext/v8/upstream/v8/src/factory.h +0 -436
- data/ext/v8/upstream/v8/src/fast-dtoa.cc +0 -736
- data/ext/v8/upstream/v8/src/fast-dtoa.h +0 -83
- data/ext/v8/upstream/v8/src/fixed-dtoa.cc +0 -405
- data/ext/v8/upstream/v8/src/fixed-dtoa.h +0 -55
- data/ext/v8/upstream/v8/src/flag-definitions.h +0 -556
- data/ext/v8/upstream/v8/src/flags.cc +0 -551
- data/ext/v8/upstream/v8/src/flags.h +0 -79
- data/ext/v8/upstream/v8/src/frame-element.cc +0 -37
- data/ext/v8/upstream/v8/src/frame-element.h +0 -269
- data/ext/v8/upstream/v8/src/frames-inl.h +0 -236
- data/ext/v8/upstream/v8/src/frames.cc +0 -1273
- data/ext/v8/upstream/v8/src/frames.h +0 -854
- data/ext/v8/upstream/v8/src/full-codegen.cc +0 -1385
- data/ext/v8/upstream/v8/src/full-codegen.h +0 -753
- data/ext/v8/upstream/v8/src/func-name-inferrer.cc +0 -91
- data/ext/v8/upstream/v8/src/func-name-inferrer.h +0 -111
- data/ext/v8/upstream/v8/src/gdb-jit.cc +0 -1548
- data/ext/v8/upstream/v8/src/gdb-jit.h +0 -138
- data/ext/v8/upstream/v8/src/global-handles.cc +0 -596
- data/ext/v8/upstream/v8/src/global-handles.h +0 -239
- data/ext/v8/upstream/v8/src/globals.h +0 -325
- data/ext/v8/upstream/v8/src/handles-inl.h +0 -177
- data/ext/v8/upstream/v8/src/handles.cc +0 -965
- data/ext/v8/upstream/v8/src/handles.h +0 -372
- data/ext/v8/upstream/v8/src/hashmap.cc +0 -230
- data/ext/v8/upstream/v8/src/hashmap.h +0 -121
- data/ext/v8/upstream/v8/src/heap-inl.h +0 -703
- data/ext/v8/upstream/v8/src/heap-profiler.cc +0 -1173
- data/ext/v8/upstream/v8/src/heap-profiler.h +0 -396
- data/ext/v8/upstream/v8/src/heap.cc +0 -5856
- data/ext/v8/upstream/v8/src/heap.h +0 -2264
- data/ext/v8/upstream/v8/src/hydrogen-instructions.cc +0 -1639
- data/ext/v8/upstream/v8/src/hydrogen-instructions.h +0 -3657
- data/ext/v8/upstream/v8/src/hydrogen.cc +0 -6011
- data/ext/v8/upstream/v8/src/hydrogen.h +0 -1137
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32-inl.h +0 -430
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32.cc +0 -2846
- data/ext/v8/upstream/v8/src/ia32/assembler-ia32.h +0 -1159
- data/ext/v8/upstream/v8/src/ia32/builtins-ia32.cc +0 -1596
- data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.cc +0 -6549
- data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.h +0 -495
- data/ext/v8/upstream/v8/src/ia32/codegen-ia32-inl.h +0 -46
- data/ext/v8/upstream/v8/src/ia32/codegen-ia32.cc +0 -10385
- data/ext/v8/upstream/v8/src/ia32/codegen-ia32.h +0 -801
- data/ext/v8/upstream/v8/src/ia32/cpu-ia32.cc +0 -88
- data/ext/v8/upstream/v8/src/ia32/debug-ia32.cc +0 -312
- data/ext/v8/upstream/v8/src/ia32/deoptimizer-ia32.cc +0 -774
- data/ext/v8/upstream/v8/src/ia32/disasm-ia32.cc +0 -1620
- data/ext/v8/upstream/v8/src/ia32/frames-ia32.cc +0 -45
- data/ext/v8/upstream/v8/src/ia32/frames-ia32.h +0 -140
- data/ext/v8/upstream/v8/src/ia32/full-codegen-ia32.cc +0 -4357
- data/ext/v8/upstream/v8/src/ia32/ic-ia32.cc +0 -1779
- data/ext/v8/upstream/v8/src/ia32/jump-target-ia32.cc +0 -437
- data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.cc +0 -4158
- data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.h +0 -318
- data/ext/v8/upstream/v8/src/ia32/lithium-gap-resolver-ia32.cc +0 -466
- data/ext/v8/upstream/v8/src/ia32/lithium-gap-resolver-ia32.h +0 -110
- data/ext/v8/upstream/v8/src/ia32/lithium-ia32.cc +0 -2181
- data/ext/v8/upstream/v8/src/ia32/lithium-ia32.h +0 -2235
- data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.cc +0 -2056
- data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.h +0 -807
- data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.cc +0 -1264
- data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.h +0 -216
- data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32-inl.h +0 -82
- data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32.cc +0 -157
- data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32.h +0 -43
- data/ext/v8/upstream/v8/src/ia32/simulator-ia32.cc +0 -30
- data/ext/v8/upstream/v8/src/ia32/simulator-ia32.h +0 -72
- data/ext/v8/upstream/v8/src/ia32/stub-cache-ia32.cc +0 -3711
- data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.cc +0 -1366
- data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.h +0 -650
- data/ext/v8/upstream/v8/src/ic-inl.h +0 -130
- data/ext/v8/upstream/v8/src/ic.cc +0 -2389
- data/ext/v8/upstream/v8/src/ic.h +0 -675
- data/ext/v8/upstream/v8/src/inspector.cc +0 -63
- data/ext/v8/upstream/v8/src/inspector.h +0 -62
- data/ext/v8/upstream/v8/src/interpreter-irregexp.cc +0 -659
- data/ext/v8/upstream/v8/src/interpreter-irregexp.h +0 -49
- data/ext/v8/upstream/v8/src/isolate.cc +0 -883
- data/ext/v8/upstream/v8/src/isolate.h +0 -1306
- data/ext/v8/upstream/v8/src/json.js +0 -342
- data/ext/v8/upstream/v8/src/jsregexp.cc +0 -5371
- data/ext/v8/upstream/v8/src/jsregexp.h +0 -1483
- data/ext/v8/upstream/v8/src/jump-target-heavy-inl.h +0 -51
- data/ext/v8/upstream/v8/src/jump-target-heavy.cc +0 -427
- data/ext/v8/upstream/v8/src/jump-target-heavy.h +0 -238
- data/ext/v8/upstream/v8/src/jump-target-inl.h +0 -48
- data/ext/v8/upstream/v8/src/jump-target-light-inl.h +0 -56
- data/ext/v8/upstream/v8/src/jump-target-light.cc +0 -111
- data/ext/v8/upstream/v8/src/jump-target-light.h +0 -193
- data/ext/v8/upstream/v8/src/jump-target.cc +0 -91
- data/ext/v8/upstream/v8/src/jump-target.h +0 -90
- data/ext/v8/upstream/v8/src/list-inl.h +0 -206
- data/ext/v8/upstream/v8/src/list.h +0 -164
- data/ext/v8/upstream/v8/src/lithium-allocator-inl.h +0 -142
- data/ext/v8/upstream/v8/src/lithium-allocator.cc +0 -2105
- data/ext/v8/upstream/v8/src/lithium-allocator.h +0 -630
- data/ext/v8/upstream/v8/src/lithium.cc +0 -169
- data/ext/v8/upstream/v8/src/lithium.h +0 -592
- data/ext/v8/upstream/v8/src/liveedit-debugger.js +0 -1082
- data/ext/v8/upstream/v8/src/liveedit.cc +0 -1693
- data/ext/v8/upstream/v8/src/liveedit.h +0 -179
- data/ext/v8/upstream/v8/src/liveobjectlist-inl.h +0 -126
- data/ext/v8/upstream/v8/src/liveobjectlist.cc +0 -2589
- data/ext/v8/upstream/v8/src/liveobjectlist.h +0 -322
- data/ext/v8/upstream/v8/src/log-inl.h +0 -59
- data/ext/v8/upstream/v8/src/log-utils.cc +0 -423
- data/ext/v8/upstream/v8/src/log-utils.h +0 -229
- data/ext/v8/upstream/v8/src/log.cc +0 -1666
- data/ext/v8/upstream/v8/src/log.h +0 -446
- data/ext/v8/upstream/v8/src/macro-assembler.h +0 -120
- data/ext/v8/upstream/v8/src/macros.py +0 -178
- data/ext/v8/upstream/v8/src/mark-compact.cc +0 -3092
- data/ext/v8/upstream/v8/src/mark-compact.h +0 -506
- data/ext/v8/upstream/v8/src/math.js +0 -264
- data/ext/v8/upstream/v8/src/messages.cc +0 -166
- data/ext/v8/upstream/v8/src/messages.h +0 -114
- data/ext/v8/upstream/v8/src/messages.js +0 -1090
- data/ext/v8/upstream/v8/src/mips/assembler-mips-inl.h +0 -335
- data/ext/v8/upstream/v8/src/mips/assembler-mips.cc +0 -2093
- data/ext/v8/upstream/v8/src/mips/assembler-mips.h +0 -1066
- data/ext/v8/upstream/v8/src/mips/builtins-mips.cc +0 -148
- data/ext/v8/upstream/v8/src/mips/code-stubs-mips.cc +0 -752
- data/ext/v8/upstream/v8/src/mips/code-stubs-mips.h +0 -511
- data/ext/v8/upstream/v8/src/mips/codegen-mips-inl.h +0 -64
- data/ext/v8/upstream/v8/src/mips/codegen-mips.cc +0 -1213
- data/ext/v8/upstream/v8/src/mips/codegen-mips.h +0 -633
- data/ext/v8/upstream/v8/src/mips/constants-mips.cc +0 -352
- data/ext/v8/upstream/v8/src/mips/constants-mips.h +0 -723
- data/ext/v8/upstream/v8/src/mips/cpu-mips.cc +0 -90
- data/ext/v8/upstream/v8/src/mips/debug-mips.cc +0 -155
- data/ext/v8/upstream/v8/src/mips/deoptimizer-mips.cc +0 -91
- data/ext/v8/upstream/v8/src/mips/disasm-mips.cc +0 -1023
- data/ext/v8/upstream/v8/src/mips/frames-mips.cc +0 -48
- data/ext/v8/upstream/v8/src/mips/frames-mips.h +0 -179
- data/ext/v8/upstream/v8/src/mips/full-codegen-mips.cc +0 -727
- data/ext/v8/upstream/v8/src/mips/ic-mips.cc +0 -244
- data/ext/v8/upstream/v8/src/mips/jump-target-mips.cc +0 -80
- data/ext/v8/upstream/v8/src/mips/lithium-codegen-mips.h +0 -65
- data/ext/v8/upstream/v8/src/mips/lithium-mips.h +0 -304
- data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.cc +0 -3327
- data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.h +0 -1058
- data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.cc +0 -478
- data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.h +0 -250
- data/ext/v8/upstream/v8/src/mips/register-allocator-mips-inl.h +0 -134
- data/ext/v8/upstream/v8/src/mips/register-allocator-mips.cc +0 -63
- data/ext/v8/upstream/v8/src/mips/register-allocator-mips.h +0 -47
- data/ext/v8/upstream/v8/src/mips/simulator-mips.cc +0 -2438
- data/ext/v8/upstream/v8/src/mips/simulator-mips.h +0 -394
- data/ext/v8/upstream/v8/src/mips/stub-cache-mips.cc +0 -601
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips-inl.h +0 -58
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.cc +0 -307
- data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.h +0 -530
- data/ext/v8/upstream/v8/src/mirror-debugger.js +0 -2381
- data/ext/v8/upstream/v8/src/mksnapshot.cc +0 -256
- data/ext/v8/upstream/v8/src/natives.h +0 -63
- data/ext/v8/upstream/v8/src/objects-debug.cc +0 -722
- data/ext/v8/upstream/v8/src/objects-inl.h +0 -4166
- data/ext/v8/upstream/v8/src/objects-printer.cc +0 -801
- data/ext/v8/upstream/v8/src/objects-visiting.cc +0 -142
- data/ext/v8/upstream/v8/src/objects-visiting.h +0 -422
- data/ext/v8/upstream/v8/src/objects.cc +0 -10296
- data/ext/v8/upstream/v8/src/objects.h +0 -6662
- data/ext/v8/upstream/v8/src/parser.cc +0 -5168
- data/ext/v8/upstream/v8/src/parser.h +0 -823
- data/ext/v8/upstream/v8/src/platform-cygwin.cc +0 -811
- data/ext/v8/upstream/v8/src/platform-freebsd.cc +0 -854
- data/ext/v8/upstream/v8/src/platform-linux.cc +0 -1120
- data/ext/v8/upstream/v8/src/platform-macos.cc +0 -865
- data/ext/v8/upstream/v8/src/platform-nullos.cc +0 -504
- data/ext/v8/upstream/v8/src/platform-openbsd.cc +0 -672
- data/ext/v8/upstream/v8/src/platform-posix.cc +0 -424
- data/ext/v8/upstream/v8/src/platform-solaris.cc +0 -796
- data/ext/v8/upstream/v8/src/platform-tls-mac.h +0 -62
- data/ext/v8/upstream/v8/src/platform-tls-win32.h +0 -62
- data/ext/v8/upstream/v8/src/platform-tls.h +0 -50
- data/ext/v8/upstream/v8/src/platform-win32.cc +0 -2072
- data/ext/v8/upstream/v8/src/platform.h +0 -693
- data/ext/v8/upstream/v8/src/preparse-data.cc +0 -185
- data/ext/v8/upstream/v8/src/preparse-data.h +0 -249
- data/ext/v8/upstream/v8/src/preparser-api.cc +0 -219
- data/ext/v8/upstream/v8/src/preparser.cc +0 -1205
- data/ext/v8/upstream/v8/src/preparser.h +0 -278
- data/ext/v8/upstream/v8/src/prettyprinter.cc +0 -1530
- data/ext/v8/upstream/v8/src/prettyprinter.h +0 -223
- data/ext/v8/upstream/v8/src/profile-generator-inl.h +0 -128
- data/ext/v8/upstream/v8/src/profile-generator.cc +0 -3095
- data/ext/v8/upstream/v8/src/profile-generator.h +0 -1125
- data/ext/v8/upstream/v8/src/property.cc +0 -102
- data/ext/v8/upstream/v8/src/property.h +0 -348
- data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp-inl.h +0 -78
- data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp.cc +0 -470
- data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp.h +0 -142
- data/ext/v8/upstream/v8/src/regexp-macro-assembler-tracer.cc +0 -373
- data/ext/v8/upstream/v8/src/regexp-macro-assembler-tracer.h +0 -104
- data/ext/v8/upstream/v8/src/regexp-macro-assembler.cc +0 -266
- data/ext/v8/upstream/v8/src/regexp-macro-assembler.h +0 -236
- data/ext/v8/upstream/v8/src/regexp-stack.cc +0 -111
- data/ext/v8/upstream/v8/src/regexp-stack.h +0 -147
- data/ext/v8/upstream/v8/src/regexp.js +0 -483
- data/ext/v8/upstream/v8/src/register-allocator-inl.h +0 -141
- data/ext/v8/upstream/v8/src/register-allocator.cc +0 -98
- data/ext/v8/upstream/v8/src/register-allocator.h +0 -310
- data/ext/v8/upstream/v8/src/rewriter.cc +0 -1024
- data/ext/v8/upstream/v8/src/rewriter.h +0 -59
- data/ext/v8/upstream/v8/src/runtime-profiler.cc +0 -478
- data/ext/v8/upstream/v8/src/runtime-profiler.h +0 -192
- data/ext/v8/upstream/v8/src/runtime.cc +0 -11949
- data/ext/v8/upstream/v8/src/runtime.h +0 -643
- data/ext/v8/upstream/v8/src/runtime.js +0 -643
- data/ext/v8/upstream/v8/src/safepoint-table.cc +0 -256
- data/ext/v8/upstream/v8/src/safepoint-table.h +0 -269
- data/ext/v8/upstream/v8/src/scanner-base.cc +0 -964
- data/ext/v8/upstream/v8/src/scanner-base.h +0 -664
- data/ext/v8/upstream/v8/src/scanner.cc +0 -584
- data/ext/v8/upstream/v8/src/scanner.h +0 -196
- data/ext/v8/upstream/v8/src/scopeinfo.cc +0 -631
- data/ext/v8/upstream/v8/src/scopeinfo.h +0 -249
- data/ext/v8/upstream/v8/src/scopes.cc +0 -1093
- data/ext/v8/upstream/v8/src/scopes.h +0 -508
- data/ext/v8/upstream/v8/src/serialize.cc +0 -1574
- data/ext/v8/upstream/v8/src/serialize.h +0 -589
- data/ext/v8/upstream/v8/src/shell.h +0 -55
- data/ext/v8/upstream/v8/src/simulator.h +0 -43
- data/ext/v8/upstream/v8/src/small-pointer-list.h +0 -163
- data/ext/v8/upstream/v8/src/smart-pointer.h +0 -109
- data/ext/v8/upstream/v8/src/snapshot-common.cc +0 -82
- data/ext/v8/upstream/v8/src/snapshot-empty.cc +0 -50
- data/ext/v8/upstream/v8/src/snapshot.h +0 -73
- data/ext/v8/upstream/v8/src/spaces-inl.h +0 -529
- data/ext/v8/upstream/v8/src/spaces.cc +0 -3147
- data/ext/v8/upstream/v8/src/spaces.h +0 -2368
- data/ext/v8/upstream/v8/src/splay-tree-inl.h +0 -310
- data/ext/v8/upstream/v8/src/splay-tree.h +0 -203
- data/ext/v8/upstream/v8/src/string-search.cc +0 -41
- data/ext/v8/upstream/v8/src/string-search.h +0 -568
- data/ext/v8/upstream/v8/src/string-stream.cc +0 -592
- data/ext/v8/upstream/v8/src/string-stream.h +0 -191
- data/ext/v8/upstream/v8/src/string.js +0 -915
- data/ext/v8/upstream/v8/src/strtod.cc +0 -440
- data/ext/v8/upstream/v8/src/strtod.h +0 -40
- data/ext/v8/upstream/v8/src/stub-cache.cc +0 -1940
- data/ext/v8/upstream/v8/src/stub-cache.h +0 -866
- data/ext/v8/upstream/v8/src/third_party/valgrind/valgrind.h +0 -3925
- data/ext/v8/upstream/v8/src/token.cc +0 -63
- data/ext/v8/upstream/v8/src/token.h +0 -288
- data/ext/v8/upstream/v8/src/top.cc +0 -983
- data/ext/v8/upstream/v8/src/type-info.cc +0 -472
- data/ext/v8/upstream/v8/src/type-info.h +0 -290
- data/ext/v8/upstream/v8/src/unbound-queue-inl.h +0 -95
- data/ext/v8/upstream/v8/src/unbound-queue.h +0 -67
- data/ext/v8/upstream/v8/src/unicode-inl.h +0 -238
- data/ext/v8/upstream/v8/src/unicode.cc +0 -1624
- data/ext/v8/upstream/v8/src/unicode.h +0 -280
- data/ext/v8/upstream/v8/src/uri.js +0 -402
- data/ext/v8/upstream/v8/src/utils.cc +0 -371
- data/ext/v8/upstream/v8/src/utils.h +0 -796
- data/ext/v8/upstream/v8/src/v8-counters.cc +0 -62
- data/ext/v8/upstream/v8/src/v8-counters.h +0 -311
- data/ext/v8/upstream/v8/src/v8.cc +0 -215
- data/ext/v8/upstream/v8/src/v8.h +0 -130
- data/ext/v8/upstream/v8/src/v8checks.h +0 -64
- data/ext/v8/upstream/v8/src/v8dll-main.cc +0 -39
- data/ext/v8/upstream/v8/src/v8globals.h +0 -486
- data/ext/v8/upstream/v8/src/v8memory.h +0 -82
- data/ext/v8/upstream/v8/src/v8natives.js +0 -1293
- data/ext/v8/upstream/v8/src/v8preparserdll-main.cc +0 -39
- data/ext/v8/upstream/v8/src/v8threads.cc +0 -453
- data/ext/v8/upstream/v8/src/v8threads.h +0 -164
- data/ext/v8/upstream/v8/src/v8utils.h +0 -317
- data/ext/v8/upstream/v8/src/variables.cc +0 -132
- data/ext/v8/upstream/v8/src/variables.h +0 -212
- data/ext/v8/upstream/v8/src/version.cc +0 -116
- data/ext/v8/upstream/v8/src/version.h +0 -68
- data/ext/v8/upstream/v8/src/virtual-frame-heavy-inl.h +0 -190
- data/ext/v8/upstream/v8/src/virtual-frame-heavy.cc +0 -312
- data/ext/v8/upstream/v8/src/virtual-frame-inl.h +0 -39
- data/ext/v8/upstream/v8/src/virtual-frame-light-inl.h +0 -171
- data/ext/v8/upstream/v8/src/virtual-frame-light.cc +0 -52
- data/ext/v8/upstream/v8/src/virtual-frame.cc +0 -49
- data/ext/v8/upstream/v8/src/virtual-frame.h +0 -59
- data/ext/v8/upstream/v8/src/vm-state-inl.h +0 -138
- data/ext/v8/upstream/v8/src/vm-state.h +0 -70
- data/ext/v8/upstream/v8/src/win32-headers.h +0 -96
- data/ext/v8/upstream/v8/src/x64/assembler-x64-inl.h +0 -456
- data/ext/v8/upstream/v8/src/x64/assembler-x64.cc +0 -2954
- data/ext/v8/upstream/v8/src/x64/assembler-x64.h +0 -1630
- data/ext/v8/upstream/v8/src/x64/builtins-x64.cc +0 -1493
- data/ext/v8/upstream/v8/src/x64/code-stubs-x64.cc +0 -5132
- data/ext/v8/upstream/v8/src/x64/code-stubs-x64.h +0 -477
- data/ext/v8/upstream/v8/src/x64/codegen-x64-inl.h +0 -46
- data/ext/v8/upstream/v8/src/x64/codegen-x64.cc +0 -8843
- data/ext/v8/upstream/v8/src/x64/codegen-x64.h +0 -753
- data/ext/v8/upstream/v8/src/x64/cpu-x64.cc +0 -88
- data/ext/v8/upstream/v8/src/x64/debug-x64.cc +0 -318
- data/ext/v8/upstream/v8/src/x64/deoptimizer-x64.cc +0 -815
- data/ext/v8/upstream/v8/src/x64/disasm-x64.cc +0 -1752
- data/ext/v8/upstream/v8/src/x64/frames-x64.cc +0 -45
- data/ext/v8/upstream/v8/src/x64/frames-x64.h +0 -130
- data/ext/v8/upstream/v8/src/x64/full-codegen-x64.cc +0 -4339
- data/ext/v8/upstream/v8/src/x64/ic-x64.cc +0 -1752
- data/ext/v8/upstream/v8/src/x64/jump-target-x64.cc +0 -437
- data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.cc +0 -3970
- data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.h +0 -318
- data/ext/v8/upstream/v8/src/x64/lithium-gap-resolver-x64.cc +0 -320
- data/ext/v8/upstream/v8/src/x64/lithium-gap-resolver-x64.h +0 -74
- data/ext/v8/upstream/v8/src/x64/lithium-x64.cc +0 -2115
- data/ext/v8/upstream/v8/src/x64/lithium-x64.h +0 -2161
- data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.cc +0 -2911
- data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.h +0 -1984
- data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.cc +0 -1398
- data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.h +0 -282
- data/ext/v8/upstream/v8/src/x64/register-allocator-x64-inl.h +0 -87
- data/ext/v8/upstream/v8/src/x64/register-allocator-x64.cc +0 -95
- data/ext/v8/upstream/v8/src/x64/register-allocator-x64.h +0 -43
- data/ext/v8/upstream/v8/src/x64/simulator-x64.cc +0 -27
- data/ext/v8/upstream/v8/src/x64/simulator-x64.h +0 -71
- data/ext/v8/upstream/v8/src/x64/stub-cache-x64.cc +0 -3460
- data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.cc +0 -1296
- data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.h +0 -597
- data/ext/v8/upstream/v8/src/zone-inl.h +0 -129
- data/ext/v8/upstream/v8/src/zone.cc +0 -196
- data/ext/v8/upstream/v8/src/zone.h +0 -236
- data/ext/v8/upstream/v8/tools/codemap.js +0 -265
- data/ext/v8/upstream/v8/tools/consarray.js +0 -93
- data/ext/v8/upstream/v8/tools/csvparser.js +0 -78
- data/ext/v8/upstream/v8/tools/disasm.py +0 -92
- data/ext/v8/upstream/v8/tools/freebsd-tick-processor +0 -10
- data/ext/v8/upstream/v8/tools/gc-nvp-trace-processor.py +0 -328
- data/ext/v8/upstream/v8/tools/generate-ten-powers.scm +0 -286
- data/ext/v8/upstream/v8/tools/grokdump.py +0 -840
- data/ext/v8/upstream/v8/tools/gyp/v8.gyp +0 -844
- data/ext/v8/upstream/v8/tools/js2c.py +0 -380
- data/ext/v8/upstream/v8/tools/jsmin.py +0 -280
- data/ext/v8/upstream/v8/tools/linux-tick-processor +0 -35
- data/ext/v8/upstream/v8/tools/ll_prof.py +0 -919
- data/ext/v8/upstream/v8/tools/logreader.js +0 -185
- data/ext/v8/upstream/v8/tools/mac-nm +0 -18
- data/ext/v8/upstream/v8/tools/mac-tick-processor +0 -6
- data/ext/v8/upstream/v8/tools/oom_dump/README +0 -31
- data/ext/v8/upstream/v8/tools/oom_dump/SConstruct +0 -42
- data/ext/v8/upstream/v8/tools/oom_dump/oom_dump.cc +0 -288
- data/ext/v8/upstream/v8/tools/presubmit.py +0 -305
- data/ext/v8/upstream/v8/tools/process-heap-prof.py +0 -120
- data/ext/v8/upstream/v8/tools/profile.js +0 -751
- data/ext/v8/upstream/v8/tools/profile_view.js +0 -219
- data/ext/v8/upstream/v8/tools/run-valgrind.py +0 -77
- data/ext/v8/upstream/v8/tools/splaytree.js +0 -316
- data/ext/v8/upstream/v8/tools/stats-viewer.py +0 -468
- data/ext/v8/upstream/v8/tools/test.py +0 -1490
- data/ext/v8/upstream/v8/tools/tickprocessor-driver.js +0 -59
- data/ext/v8/upstream/v8/tools/tickprocessor.js +0 -877
- data/ext/v8/upstream/v8/tools/utils.py +0 -96
- data/ext/v8/upstream/v8/tools/visual_studio/README.txt +0 -70
- data/ext/v8/upstream/v8/tools/visual_studio/arm.vsprops +0 -14
- data/ext/v8/upstream/v8/tools/visual_studio/common.vsprops +0 -34
- data/ext/v8/upstream/v8/tools/visual_studio/d8.vcproj +0 -193
- data/ext/v8/upstream/v8/tools/visual_studio/d8_arm.vcproj +0 -193
- data/ext/v8/upstream/v8/tools/visual_studio/d8_x64.vcproj +0 -209
- data/ext/v8/upstream/v8/tools/visual_studio/d8js2c.cmd +0 -6
- data/ext/v8/upstream/v8/tools/visual_studio/debug.vsprops +0 -17
- data/ext/v8/upstream/v8/tools/visual_studio/ia32.vsprops +0 -17
- data/ext/v8/upstream/v8/tools/visual_studio/js2c.cmd +0 -6
- data/ext/v8/upstream/v8/tools/visual_studio/release.vsprops +0 -24
- data/ext/v8/upstream/v8/tools/visual_studio/v8.sln +0 -101
- data/ext/v8/upstream/v8/tools/visual_studio/v8.vcproj +0 -227
- data/ext/v8/upstream/v8/tools/visual_studio/v8_arm.sln +0 -74
- data/ext/v8/upstream/v8/tools/visual_studio/v8_arm.vcproj +0 -227
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base.vcproj +0 -1308
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base_arm.vcproj +0 -1238
- data/ext/v8/upstream/v8/tools/visual_studio/v8_base_x64.vcproj +0 -1300
- data/ext/v8/upstream/v8/tools/visual_studio/v8_cctest.vcproj +0 -265
- data/ext/v8/upstream/v8/tools/visual_studio/v8_cctest_arm.vcproj +0 -249
- data/ext/v8/upstream/v8/tools/visual_studio/v8_cctest_x64.vcproj +0 -257
- data/ext/v8/upstream/v8/tools/visual_studio/v8_mksnapshot.vcproj +0 -145
- data/ext/v8/upstream/v8/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -145
- data/ext/v8/upstream/v8/tools/visual_studio/v8_process_sample.vcproj +0 -145
- data/ext/v8/upstream/v8/tools/visual_studio/v8_process_sample_arm.vcproj +0 -145
- data/ext/v8/upstream/v8/tools/visual_studio/v8_process_sample_x64.vcproj +0 -161
- data/ext/v8/upstream/v8/tools/visual_studio/v8_shell_sample.vcproj +0 -147
- data/ext/v8/upstream/v8/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -147
- data/ext/v8/upstream/v8/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -163
- data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot.vcproj +0 -142
- data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot_cc.vcproj +0 -92
- data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -92
- data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot_x64.vcproj +0 -142
- data/ext/v8/upstream/v8/tools/visual_studio/v8_x64.sln +0 -101
- data/ext/v8/upstream/v8/tools/visual_studio/v8_x64.vcproj +0 -227
- data/ext/v8/upstream/v8/tools/visual_studio/x64.vsprops +0 -18
- data/ext/v8/upstream/v8/tools/windows-tick-processor.bat +0 -30
@@ -1,85 +0,0 @@
|
|
1
|
-
// Copyright 2010 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_DTOA_H_
|
29
|
-
#define V8_DTOA_H_
|
30
|
-
|
31
|
-
namespace v8 {
|
32
|
-
namespace internal {
|
33
|
-
|
34
|
-
enum DtoaMode {
|
35
|
-
// Return the shortest correct representation.
|
36
|
-
// For example the output of 0.299999999999999988897 is (the less accurate but
|
37
|
-
// correct) 0.3.
|
38
|
-
DTOA_SHORTEST,
|
39
|
-
// Return a fixed number of digits after the decimal point.
|
40
|
-
// For instance fixed(0.1, 4) becomes 0.1000
|
41
|
-
// If the input number is big, the output will be big.
|
42
|
-
DTOA_FIXED,
|
43
|
-
// Return a fixed number of digits, no matter what the exponent is.
|
44
|
-
DTOA_PRECISION
|
45
|
-
};
|
46
|
-
|
47
|
-
// The maximal length of digits a double can have in base 10.
|
48
|
-
// Note that DoubleToAscii null-terminates its input. So the given buffer should
|
49
|
-
// be at least kBase10MaximalLength + 1 characters long.
|
50
|
-
static const int kBase10MaximalLength = 17;
|
51
|
-
|
52
|
-
// Converts the given double 'v' to ascii.
|
53
|
-
// The result should be interpreted as buffer * 10^(point-length).
|
54
|
-
//
|
55
|
-
// The output depends on the given mode:
|
56
|
-
// - SHORTEST: produce the least amount of digits for which the internal
|
57
|
-
// identity requirement is still satisfied. If the digits are printed
|
58
|
-
// (together with the correct exponent) then reading this number will give
|
59
|
-
// 'v' again. The buffer will choose the representation that is closest to
|
60
|
-
// 'v'. If there are two at the same distance, than the one farther away
|
61
|
-
// from 0 is chosen (halfway cases - ending with 5 - are rounded up).
|
62
|
-
// In this mode the 'requested_digits' parameter is ignored.
|
63
|
-
// - FIXED: produces digits necessary to print a given number with
|
64
|
-
// 'requested_digits' digits after the decimal point. The produced digits
|
65
|
-
// might be too short in which case the caller has to fill the gaps with '0's.
|
66
|
-
// Example: toFixed(0.001, 5) is allowed to return buffer="1", point=-2.
|
67
|
-
// Halfway cases are rounded towards +/-Infinity (away from 0). The call
|
68
|
-
// toFixed(0.15, 2) thus returns buffer="2", point=0.
|
69
|
-
// The returned buffer may contain digits that would be truncated from the
|
70
|
-
// shortest representation of the input.
|
71
|
-
// - PRECISION: produces 'requested_digits' where the first digit is not '0'.
|
72
|
-
// Even though the length of produced digits usually equals
|
73
|
-
// 'requested_digits', the function is allowed to return fewer digits, in
|
74
|
-
// which case the caller has to fill the missing digits with '0's.
|
75
|
-
// Halfway cases are again rounded away from 0.
|
76
|
-
// 'DoubleToAscii' expects the given buffer to be big enough to hold all digits
|
77
|
-
// and a terminating null-character. In SHORTEST-mode it expects a buffer of
|
78
|
-
// at least kBase10MaximalLength + 1. Otherwise, the size of the output is
|
79
|
-
// limited to requested_digits digits plus the null terminator.
|
80
|
-
void DoubleToAscii(double v, DtoaMode mode, int requested_digits,
|
81
|
-
Vector<char> buffer, int* sign, int* length, int* point);
|
82
|
-
|
83
|
-
} } // namespace v8::internal
|
84
|
-
|
85
|
-
#endif // V8_DTOA_H_
|
@@ -1,791 +0,0 @@
|
|
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 <stdlib.h>
|
29
|
-
|
30
|
-
#include "v8.h"
|
31
|
-
|
32
|
-
#include "api.h"
|
33
|
-
#include "bootstrapper.h"
|
34
|
-
#include "codegen-inl.h"
|
35
|
-
#include "debug.h"
|
36
|
-
#include "runtime-profiler.h"
|
37
|
-
#include "simulator.h"
|
38
|
-
#include "v8threads.h"
|
39
|
-
#include "vm-state-inl.h"
|
40
|
-
|
41
|
-
namespace v8 {
|
42
|
-
namespace internal {
|
43
|
-
|
44
|
-
|
45
|
-
StackGuard::StackGuard()
|
46
|
-
: isolate_(NULL) {
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
void StackGuard::set_interrupt_limits(const ExecutionAccess& lock) {
|
51
|
-
ASSERT(isolate_ != NULL);
|
52
|
-
// Ignore attempts to interrupt when interrupts are postponed.
|
53
|
-
if (should_postpone_interrupts(lock)) return;
|
54
|
-
thread_local_.jslimit_ = kInterruptLimit;
|
55
|
-
thread_local_.climit_ = kInterruptLimit;
|
56
|
-
isolate_->heap()->SetStackLimits();
|
57
|
-
}
|
58
|
-
|
59
|
-
|
60
|
-
void StackGuard::reset_limits(const ExecutionAccess& lock) {
|
61
|
-
ASSERT(isolate_ != NULL);
|
62
|
-
thread_local_.jslimit_ = thread_local_.real_jslimit_;
|
63
|
-
thread_local_.climit_ = thread_local_.real_climit_;
|
64
|
-
isolate_->heap()->SetStackLimits();
|
65
|
-
}
|
66
|
-
|
67
|
-
|
68
|
-
static Handle<Object> Invoke(bool construct,
|
69
|
-
Handle<JSFunction> func,
|
70
|
-
Handle<Object> receiver,
|
71
|
-
int argc,
|
72
|
-
Object*** args,
|
73
|
-
bool* has_pending_exception) {
|
74
|
-
Isolate* isolate = func->GetIsolate();
|
75
|
-
|
76
|
-
// Entering JavaScript.
|
77
|
-
VMState state(isolate, JS);
|
78
|
-
|
79
|
-
// Placeholder for return value.
|
80
|
-
MaybeObject* value = reinterpret_cast<Object*>(kZapValue);
|
81
|
-
|
82
|
-
typedef Object* (*JSEntryFunction)(
|
83
|
-
byte* entry,
|
84
|
-
Object* function,
|
85
|
-
Object* receiver,
|
86
|
-
int argc,
|
87
|
-
Object*** args);
|
88
|
-
|
89
|
-
Handle<Code> code;
|
90
|
-
if (construct) {
|
91
|
-
JSConstructEntryStub stub;
|
92
|
-
code = stub.GetCode();
|
93
|
-
} else {
|
94
|
-
JSEntryStub stub;
|
95
|
-
code = stub.GetCode();
|
96
|
-
}
|
97
|
-
|
98
|
-
// Convert calls on global objects to be calls on the global
|
99
|
-
// receiver instead to avoid having a 'this' pointer which refers
|
100
|
-
// directly to a global object.
|
101
|
-
if (receiver->IsGlobalObject()) {
|
102
|
-
Handle<GlobalObject> global = Handle<GlobalObject>::cast(receiver);
|
103
|
-
receiver = Handle<JSObject>(global->global_receiver());
|
104
|
-
}
|
105
|
-
|
106
|
-
// Make sure that the global object of the context we're about to
|
107
|
-
// make the current one is indeed a global object.
|
108
|
-
ASSERT(func->context()->global()->IsGlobalObject());
|
109
|
-
|
110
|
-
{
|
111
|
-
// Save and restore context around invocation and block the
|
112
|
-
// allocation of handles without explicit handle scopes.
|
113
|
-
SaveContext save(isolate);
|
114
|
-
NoHandleAllocation na;
|
115
|
-
JSEntryFunction entry = FUNCTION_CAST<JSEntryFunction>(code->entry());
|
116
|
-
|
117
|
-
// Call the function through the right JS entry stub.
|
118
|
-
byte* entry_address = func->code()->entry();
|
119
|
-
JSFunction* function = *func;
|
120
|
-
Object* receiver_pointer = *receiver;
|
121
|
-
value = CALL_GENERATED_CODE(entry, entry_address, function,
|
122
|
-
receiver_pointer, argc, args);
|
123
|
-
}
|
124
|
-
|
125
|
-
#ifdef DEBUG
|
126
|
-
value->Verify();
|
127
|
-
#endif
|
128
|
-
|
129
|
-
// Update the pending exception flag and return the value.
|
130
|
-
*has_pending_exception = value->IsException();
|
131
|
-
ASSERT(*has_pending_exception == Isolate::Current()->has_pending_exception());
|
132
|
-
if (*has_pending_exception) {
|
133
|
-
isolate->ReportPendingMessages();
|
134
|
-
if (isolate->pending_exception() == Failure::OutOfMemoryException()) {
|
135
|
-
if (!isolate->handle_scope_implementer()->ignore_out_of_memory()) {
|
136
|
-
V8::FatalProcessOutOfMemory("JS", true);
|
137
|
-
}
|
138
|
-
}
|
139
|
-
return Handle<Object>();
|
140
|
-
} else {
|
141
|
-
isolate->clear_pending_message();
|
142
|
-
}
|
143
|
-
|
144
|
-
return Handle<Object>(value->ToObjectUnchecked(), isolate);
|
145
|
-
}
|
146
|
-
|
147
|
-
|
148
|
-
Handle<Object> Execution::Call(Handle<JSFunction> func,
|
149
|
-
Handle<Object> receiver,
|
150
|
-
int argc,
|
151
|
-
Object*** args,
|
152
|
-
bool* pending_exception) {
|
153
|
-
return Invoke(false, func, receiver, argc, args, pending_exception);
|
154
|
-
}
|
155
|
-
|
156
|
-
|
157
|
-
Handle<Object> Execution::New(Handle<JSFunction> func, int argc,
|
158
|
-
Object*** args, bool* pending_exception) {
|
159
|
-
return Invoke(true, func, Isolate::Current()->global(), argc, args,
|
160
|
-
pending_exception);
|
161
|
-
}
|
162
|
-
|
163
|
-
|
164
|
-
Handle<Object> Execution::TryCall(Handle<JSFunction> func,
|
165
|
-
Handle<Object> receiver,
|
166
|
-
int argc,
|
167
|
-
Object*** args,
|
168
|
-
bool* caught_exception) {
|
169
|
-
// Enter a try-block while executing the JavaScript code. To avoid
|
170
|
-
// duplicate error printing it must be non-verbose. Also, to avoid
|
171
|
-
// creating message objects during stack overflow we shouldn't
|
172
|
-
// capture messages.
|
173
|
-
v8::TryCatch catcher;
|
174
|
-
catcher.SetVerbose(false);
|
175
|
-
catcher.SetCaptureMessage(false);
|
176
|
-
|
177
|
-
Handle<Object> result = Invoke(false, func, receiver, argc, args,
|
178
|
-
caught_exception);
|
179
|
-
|
180
|
-
if (*caught_exception) {
|
181
|
-
ASSERT(catcher.HasCaught());
|
182
|
-
Isolate* isolate = Isolate::Current();
|
183
|
-
ASSERT(isolate->has_pending_exception());
|
184
|
-
ASSERT(isolate->external_caught_exception());
|
185
|
-
if (isolate->pending_exception() ==
|
186
|
-
isolate->heap()->termination_exception()) {
|
187
|
-
result = isolate->factory()->termination_exception();
|
188
|
-
} else {
|
189
|
-
result = v8::Utils::OpenHandle(*catcher.Exception());
|
190
|
-
}
|
191
|
-
isolate->OptionalRescheduleException(true);
|
192
|
-
}
|
193
|
-
|
194
|
-
ASSERT(!Isolate::Current()->has_pending_exception());
|
195
|
-
ASSERT(!Isolate::Current()->external_caught_exception());
|
196
|
-
return result;
|
197
|
-
}
|
198
|
-
|
199
|
-
|
200
|
-
Handle<Object> Execution::GetFunctionDelegate(Handle<Object> object) {
|
201
|
-
ASSERT(!object->IsJSFunction());
|
202
|
-
Isolate* isolate = Isolate::Current();
|
203
|
-
Factory* factory = isolate->factory();
|
204
|
-
|
205
|
-
// If you return a function from here, it will be called when an
|
206
|
-
// attempt is made to call the given object as a function.
|
207
|
-
|
208
|
-
// Regular expressions can be called as functions in both Firefox
|
209
|
-
// and Safari so we allow it too.
|
210
|
-
if (object->IsJSRegExp()) {
|
211
|
-
Handle<String> exec = factory->exec_symbol();
|
212
|
-
// TODO(lrn): Bug 617. We should use the default function here, not the
|
213
|
-
// one on the RegExp object.
|
214
|
-
Object* exec_function;
|
215
|
-
{ MaybeObject* maybe_exec_function = object->GetProperty(*exec);
|
216
|
-
// This can lose an exception, but the alternative is to put a failure
|
217
|
-
// object in a handle, which is not GC safe.
|
218
|
-
if (!maybe_exec_function->ToObject(&exec_function)) {
|
219
|
-
return factory->undefined_value();
|
220
|
-
}
|
221
|
-
}
|
222
|
-
return Handle<Object>(exec_function);
|
223
|
-
}
|
224
|
-
|
225
|
-
// Objects created through the API can have an instance-call handler
|
226
|
-
// that should be used when calling the object as a function.
|
227
|
-
if (object->IsHeapObject() &&
|
228
|
-
HeapObject::cast(*object)->map()->has_instance_call_handler()) {
|
229
|
-
return Handle<JSFunction>(
|
230
|
-
isolate->global_context()->call_as_function_delegate());
|
231
|
-
}
|
232
|
-
|
233
|
-
return factory->undefined_value();
|
234
|
-
}
|
235
|
-
|
236
|
-
|
237
|
-
Handle<Object> Execution::GetConstructorDelegate(Handle<Object> object) {
|
238
|
-
ASSERT(!object->IsJSFunction());
|
239
|
-
Isolate* isolate = Isolate::Current();
|
240
|
-
|
241
|
-
// If you return a function from here, it will be called when an
|
242
|
-
// attempt is made to call the given object as a constructor.
|
243
|
-
|
244
|
-
// Objects created through the API can have an instance-call handler
|
245
|
-
// that should be used when calling the object as a function.
|
246
|
-
if (object->IsHeapObject() &&
|
247
|
-
HeapObject::cast(*object)->map()->has_instance_call_handler()) {
|
248
|
-
return Handle<JSFunction>(
|
249
|
-
isolate->global_context()->call_as_constructor_delegate());
|
250
|
-
}
|
251
|
-
|
252
|
-
return isolate->factory()->undefined_value();
|
253
|
-
}
|
254
|
-
|
255
|
-
|
256
|
-
bool StackGuard::IsStackOverflow() {
|
257
|
-
ExecutionAccess access(isolate_);
|
258
|
-
return (thread_local_.jslimit_ != kInterruptLimit &&
|
259
|
-
thread_local_.climit_ != kInterruptLimit);
|
260
|
-
}
|
261
|
-
|
262
|
-
|
263
|
-
void StackGuard::EnableInterrupts() {
|
264
|
-
ExecutionAccess access(isolate_);
|
265
|
-
if (has_pending_interrupts(access)) {
|
266
|
-
set_interrupt_limits(access);
|
267
|
-
}
|
268
|
-
}
|
269
|
-
|
270
|
-
|
271
|
-
void StackGuard::SetStackLimit(uintptr_t limit) {
|
272
|
-
ExecutionAccess access(isolate_);
|
273
|
-
// If the current limits are special (eg due to a pending interrupt) then
|
274
|
-
// leave them alone.
|
275
|
-
uintptr_t jslimit = SimulatorStack::JsLimitFromCLimit(limit);
|
276
|
-
if (thread_local_.jslimit_ == thread_local_.real_jslimit_) {
|
277
|
-
thread_local_.jslimit_ = jslimit;
|
278
|
-
}
|
279
|
-
if (thread_local_.climit_ == thread_local_.real_climit_) {
|
280
|
-
thread_local_.climit_ = limit;
|
281
|
-
}
|
282
|
-
thread_local_.real_climit_ = limit;
|
283
|
-
thread_local_.real_jslimit_ = jslimit;
|
284
|
-
}
|
285
|
-
|
286
|
-
|
287
|
-
void StackGuard::DisableInterrupts() {
|
288
|
-
ExecutionAccess access(isolate_);
|
289
|
-
reset_limits(access);
|
290
|
-
}
|
291
|
-
|
292
|
-
|
293
|
-
bool StackGuard::IsInterrupted() {
|
294
|
-
ExecutionAccess access(isolate_);
|
295
|
-
return thread_local_.interrupt_flags_ & INTERRUPT;
|
296
|
-
}
|
297
|
-
|
298
|
-
|
299
|
-
void StackGuard::Interrupt() {
|
300
|
-
ExecutionAccess access(isolate_);
|
301
|
-
thread_local_.interrupt_flags_ |= INTERRUPT;
|
302
|
-
set_interrupt_limits(access);
|
303
|
-
}
|
304
|
-
|
305
|
-
|
306
|
-
bool StackGuard::IsPreempted() {
|
307
|
-
ExecutionAccess access(isolate_);
|
308
|
-
return thread_local_.interrupt_flags_ & PREEMPT;
|
309
|
-
}
|
310
|
-
|
311
|
-
|
312
|
-
void StackGuard::Preempt() {
|
313
|
-
ExecutionAccess access(isolate_);
|
314
|
-
thread_local_.interrupt_flags_ |= PREEMPT;
|
315
|
-
set_interrupt_limits(access);
|
316
|
-
}
|
317
|
-
|
318
|
-
|
319
|
-
bool StackGuard::IsTerminateExecution() {
|
320
|
-
ExecutionAccess access(isolate_);
|
321
|
-
return thread_local_.interrupt_flags_ & TERMINATE;
|
322
|
-
}
|
323
|
-
|
324
|
-
|
325
|
-
void StackGuard::TerminateExecution() {
|
326
|
-
ExecutionAccess access(isolate_);
|
327
|
-
thread_local_.interrupt_flags_ |= TERMINATE;
|
328
|
-
set_interrupt_limits(access);
|
329
|
-
}
|
330
|
-
|
331
|
-
|
332
|
-
bool StackGuard::IsRuntimeProfilerTick() {
|
333
|
-
ExecutionAccess access(isolate_);
|
334
|
-
return thread_local_.interrupt_flags_ & RUNTIME_PROFILER_TICK;
|
335
|
-
}
|
336
|
-
|
337
|
-
|
338
|
-
void StackGuard::RequestRuntimeProfilerTick() {
|
339
|
-
// Ignore calls if we're not optimizing or if we can't get the lock.
|
340
|
-
if (FLAG_opt && ExecutionAccess::TryLock(isolate_)) {
|
341
|
-
thread_local_.interrupt_flags_ |= RUNTIME_PROFILER_TICK;
|
342
|
-
if (thread_local_.postpone_interrupts_nesting_ == 0) {
|
343
|
-
thread_local_.jslimit_ = thread_local_.climit_ = kInterruptLimit;
|
344
|
-
isolate_->heap()->SetStackLimits();
|
345
|
-
}
|
346
|
-
ExecutionAccess::Unlock(isolate_);
|
347
|
-
}
|
348
|
-
}
|
349
|
-
|
350
|
-
|
351
|
-
#ifdef ENABLE_DEBUGGER_SUPPORT
|
352
|
-
bool StackGuard::IsDebugBreak() {
|
353
|
-
ExecutionAccess access(isolate_);
|
354
|
-
return thread_local_.interrupt_flags_ & DEBUGBREAK;
|
355
|
-
}
|
356
|
-
|
357
|
-
|
358
|
-
void StackGuard::DebugBreak() {
|
359
|
-
ExecutionAccess access(isolate_);
|
360
|
-
thread_local_.interrupt_flags_ |= DEBUGBREAK;
|
361
|
-
set_interrupt_limits(access);
|
362
|
-
}
|
363
|
-
|
364
|
-
|
365
|
-
bool StackGuard::IsDebugCommand() {
|
366
|
-
ExecutionAccess access(isolate_);
|
367
|
-
return thread_local_.interrupt_flags_ & DEBUGCOMMAND;
|
368
|
-
}
|
369
|
-
|
370
|
-
|
371
|
-
void StackGuard::DebugCommand() {
|
372
|
-
if (FLAG_debugger_auto_break) {
|
373
|
-
ExecutionAccess access(isolate_);
|
374
|
-
thread_local_.interrupt_flags_ |= DEBUGCOMMAND;
|
375
|
-
set_interrupt_limits(access);
|
376
|
-
}
|
377
|
-
}
|
378
|
-
#endif
|
379
|
-
|
380
|
-
void StackGuard::Continue(InterruptFlag after_what) {
|
381
|
-
ExecutionAccess access(isolate_);
|
382
|
-
thread_local_.interrupt_flags_ &= ~static_cast<int>(after_what);
|
383
|
-
if (!should_postpone_interrupts(access) && !has_pending_interrupts(access)) {
|
384
|
-
reset_limits(access);
|
385
|
-
}
|
386
|
-
}
|
387
|
-
|
388
|
-
|
389
|
-
char* StackGuard::ArchiveStackGuard(char* to) {
|
390
|
-
ExecutionAccess access(isolate_);
|
391
|
-
memcpy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal));
|
392
|
-
ThreadLocal blank;
|
393
|
-
|
394
|
-
// Set the stack limits using the old thread_local_.
|
395
|
-
// TODO(isolates): This was the old semantics of constructing a ThreadLocal
|
396
|
-
// (as the ctor called SetStackLimits, which looked at the
|
397
|
-
// current thread_local_ from StackGuard)-- but is this
|
398
|
-
// really what was intended?
|
399
|
-
isolate_->heap()->SetStackLimits();
|
400
|
-
thread_local_ = blank;
|
401
|
-
|
402
|
-
return to + sizeof(ThreadLocal);
|
403
|
-
}
|
404
|
-
|
405
|
-
|
406
|
-
char* StackGuard::RestoreStackGuard(char* from) {
|
407
|
-
ExecutionAccess access(isolate_);
|
408
|
-
memcpy(reinterpret_cast<char*>(&thread_local_), from, sizeof(ThreadLocal));
|
409
|
-
isolate_->heap()->SetStackLimits();
|
410
|
-
return from + sizeof(ThreadLocal);
|
411
|
-
}
|
412
|
-
|
413
|
-
|
414
|
-
void StackGuard::FreeThreadResources() {
|
415
|
-
Isolate::CurrentPerIsolateThreadData()->set_stack_limit(
|
416
|
-
thread_local_.real_climit_);
|
417
|
-
}
|
418
|
-
|
419
|
-
|
420
|
-
void StackGuard::ThreadLocal::Clear() {
|
421
|
-
real_jslimit_ = kIllegalLimit;
|
422
|
-
jslimit_ = kIllegalLimit;
|
423
|
-
real_climit_ = kIllegalLimit;
|
424
|
-
climit_ = kIllegalLimit;
|
425
|
-
nesting_ = 0;
|
426
|
-
postpone_interrupts_nesting_ = 0;
|
427
|
-
interrupt_flags_ = 0;
|
428
|
-
}
|
429
|
-
|
430
|
-
|
431
|
-
bool StackGuard::ThreadLocal::Initialize() {
|
432
|
-
bool should_set_stack_limits = false;
|
433
|
-
if (real_climit_ == kIllegalLimit) {
|
434
|
-
// Takes the address of the limit variable in order to find out where
|
435
|
-
// the top of stack is right now.
|
436
|
-
const uintptr_t kLimitSize = FLAG_stack_size * KB;
|
437
|
-
uintptr_t limit = reinterpret_cast<uintptr_t>(&limit) - kLimitSize;
|
438
|
-
ASSERT(reinterpret_cast<uintptr_t>(&limit) > kLimitSize);
|
439
|
-
real_jslimit_ = SimulatorStack::JsLimitFromCLimit(limit);
|
440
|
-
jslimit_ = SimulatorStack::JsLimitFromCLimit(limit);
|
441
|
-
real_climit_ = limit;
|
442
|
-
climit_ = limit;
|
443
|
-
should_set_stack_limits = true;
|
444
|
-
}
|
445
|
-
nesting_ = 0;
|
446
|
-
postpone_interrupts_nesting_ = 0;
|
447
|
-
interrupt_flags_ = 0;
|
448
|
-
return should_set_stack_limits;
|
449
|
-
}
|
450
|
-
|
451
|
-
|
452
|
-
void StackGuard::ClearThread(const ExecutionAccess& lock) {
|
453
|
-
thread_local_.Clear();
|
454
|
-
isolate_->heap()->SetStackLimits();
|
455
|
-
}
|
456
|
-
|
457
|
-
|
458
|
-
void StackGuard::InitThread(const ExecutionAccess& lock) {
|
459
|
-
if (thread_local_.Initialize()) isolate_->heap()->SetStackLimits();
|
460
|
-
uintptr_t stored_limit =
|
461
|
-
Isolate::CurrentPerIsolateThreadData()->stack_limit();
|
462
|
-
// You should hold the ExecutionAccess lock when you call this.
|
463
|
-
if (stored_limit != 0) {
|
464
|
-
StackGuard::SetStackLimit(stored_limit);
|
465
|
-
}
|
466
|
-
}
|
467
|
-
|
468
|
-
|
469
|
-
// --- C a l l s t o n a t i v e s ---
|
470
|
-
|
471
|
-
#define RETURN_NATIVE_CALL(name, argc, argv, has_pending_exception) \
|
472
|
-
do { \
|
473
|
-
Isolate* isolate = Isolate::Current(); \
|
474
|
-
Object** args[argc] = argv; \
|
475
|
-
ASSERT(has_pending_exception != NULL); \
|
476
|
-
return Call(isolate->name##_fun(), \
|
477
|
-
isolate->js_builtins_object(), argc, args, \
|
478
|
-
has_pending_exception); \
|
479
|
-
} while (false)
|
480
|
-
|
481
|
-
|
482
|
-
Handle<Object> Execution::ToBoolean(Handle<Object> obj) {
|
483
|
-
// See the similar code in runtime.js:ToBoolean.
|
484
|
-
if (obj->IsBoolean()) return obj;
|
485
|
-
bool result = true;
|
486
|
-
if (obj->IsString()) {
|
487
|
-
result = Handle<String>::cast(obj)->length() != 0;
|
488
|
-
} else if (obj->IsNull() || obj->IsUndefined()) {
|
489
|
-
result = false;
|
490
|
-
} else if (obj->IsNumber()) {
|
491
|
-
double value = obj->Number();
|
492
|
-
result = !((value == 0) || isnan(value));
|
493
|
-
}
|
494
|
-
return Handle<Object>(HEAP->ToBoolean(result));
|
495
|
-
}
|
496
|
-
|
497
|
-
|
498
|
-
Handle<Object> Execution::ToNumber(Handle<Object> obj, bool* exc) {
|
499
|
-
RETURN_NATIVE_CALL(to_number, 1, { obj.location() }, exc);
|
500
|
-
}
|
501
|
-
|
502
|
-
|
503
|
-
Handle<Object> Execution::ToString(Handle<Object> obj, bool* exc) {
|
504
|
-
RETURN_NATIVE_CALL(to_string, 1, { obj.location() }, exc);
|
505
|
-
}
|
506
|
-
|
507
|
-
|
508
|
-
Handle<Object> Execution::ToDetailString(Handle<Object> obj, bool* exc) {
|
509
|
-
RETURN_NATIVE_CALL(to_detail_string, 1, { obj.location() }, exc);
|
510
|
-
}
|
511
|
-
|
512
|
-
|
513
|
-
Handle<Object> Execution::ToObject(Handle<Object> obj, bool* exc) {
|
514
|
-
if (obj->IsJSObject()) return obj;
|
515
|
-
RETURN_NATIVE_CALL(to_object, 1, { obj.location() }, exc);
|
516
|
-
}
|
517
|
-
|
518
|
-
|
519
|
-
Handle<Object> Execution::ToInteger(Handle<Object> obj, bool* exc) {
|
520
|
-
RETURN_NATIVE_CALL(to_integer, 1, { obj.location() }, exc);
|
521
|
-
}
|
522
|
-
|
523
|
-
|
524
|
-
Handle<Object> Execution::ToUint32(Handle<Object> obj, bool* exc) {
|
525
|
-
RETURN_NATIVE_CALL(to_uint32, 1, { obj.location() }, exc);
|
526
|
-
}
|
527
|
-
|
528
|
-
|
529
|
-
Handle<Object> Execution::ToInt32(Handle<Object> obj, bool* exc) {
|
530
|
-
RETURN_NATIVE_CALL(to_int32, 1, { obj.location() }, exc);
|
531
|
-
}
|
532
|
-
|
533
|
-
|
534
|
-
Handle<Object> Execution::NewDate(double time, bool* exc) {
|
535
|
-
Handle<Object> time_obj = FACTORY->NewNumber(time);
|
536
|
-
RETURN_NATIVE_CALL(create_date, 1, { time_obj.location() }, exc);
|
537
|
-
}
|
538
|
-
|
539
|
-
|
540
|
-
#undef RETURN_NATIVE_CALL
|
541
|
-
|
542
|
-
|
543
|
-
Handle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern,
|
544
|
-
Handle<String> flags,
|
545
|
-
bool* exc) {
|
546
|
-
Handle<JSFunction> function = Handle<JSFunction>(
|
547
|
-
pattern->GetIsolate()->global_context()->regexp_function());
|
548
|
-
Handle<Object> re_obj = RegExpImpl::CreateRegExpLiteral(
|
549
|
-
function, pattern, flags, exc);
|
550
|
-
if (*exc) return Handle<JSRegExp>();
|
551
|
-
return Handle<JSRegExp>::cast(re_obj);
|
552
|
-
}
|
553
|
-
|
554
|
-
|
555
|
-
Handle<Object> Execution::CharAt(Handle<String> string, uint32_t index) {
|
556
|
-
Isolate* isolate = string->GetIsolate();
|
557
|
-
Factory* factory = isolate->factory();
|
558
|
-
|
559
|
-
int int_index = static_cast<int>(index);
|
560
|
-
if (int_index < 0 || int_index >= string->length()) {
|
561
|
-
return factory->undefined_value();
|
562
|
-
}
|
563
|
-
|
564
|
-
Handle<Object> char_at =
|
565
|
-
GetProperty(isolate->js_builtins_object(),
|
566
|
-
factory->char_at_symbol());
|
567
|
-
if (!char_at->IsJSFunction()) {
|
568
|
-
return factory->undefined_value();
|
569
|
-
}
|
570
|
-
|
571
|
-
bool caught_exception;
|
572
|
-
Handle<Object> index_object = factory->NewNumberFromInt(int_index);
|
573
|
-
Object** index_arg[] = { index_object.location() };
|
574
|
-
Handle<Object> result = TryCall(Handle<JSFunction>::cast(char_at),
|
575
|
-
string,
|
576
|
-
ARRAY_SIZE(index_arg),
|
577
|
-
index_arg,
|
578
|
-
&caught_exception);
|
579
|
-
if (caught_exception) {
|
580
|
-
return factory->undefined_value();
|
581
|
-
}
|
582
|
-
return result;
|
583
|
-
}
|
584
|
-
|
585
|
-
|
586
|
-
Handle<JSFunction> Execution::InstantiateFunction(
|
587
|
-
Handle<FunctionTemplateInfo> data, bool* exc) {
|
588
|
-
Isolate* isolate = data->GetIsolate();
|
589
|
-
// Fast case: see if the function has already been instantiated
|
590
|
-
int serial_number = Smi::cast(data->serial_number())->value();
|
591
|
-
Object* elm =
|
592
|
-
isolate->global_context()->function_cache()->
|
593
|
-
GetElementNoExceptionThrown(serial_number);
|
594
|
-
if (elm->IsJSFunction()) return Handle<JSFunction>(JSFunction::cast(elm));
|
595
|
-
// The function has not yet been instantiated in this context; do it.
|
596
|
-
Object** args[1] = { Handle<Object>::cast(data).location() };
|
597
|
-
Handle<Object> result =
|
598
|
-
Call(isolate->instantiate_fun(),
|
599
|
-
isolate->js_builtins_object(), 1, args, exc);
|
600
|
-
if (*exc) return Handle<JSFunction>::null();
|
601
|
-
return Handle<JSFunction>::cast(result);
|
602
|
-
}
|
603
|
-
|
604
|
-
|
605
|
-
Handle<JSObject> Execution::InstantiateObject(Handle<ObjectTemplateInfo> data,
|
606
|
-
bool* exc) {
|
607
|
-
Isolate* isolate = data->GetIsolate();
|
608
|
-
if (data->property_list()->IsUndefined() &&
|
609
|
-
!data->constructor()->IsUndefined()) {
|
610
|
-
// Initialization to make gcc happy.
|
611
|
-
Object* result = NULL;
|
612
|
-
{
|
613
|
-
HandleScope scope(isolate);
|
614
|
-
Handle<FunctionTemplateInfo> cons_template =
|
615
|
-
Handle<FunctionTemplateInfo>(
|
616
|
-
FunctionTemplateInfo::cast(data->constructor()));
|
617
|
-
Handle<JSFunction> cons = InstantiateFunction(cons_template, exc);
|
618
|
-
if (*exc) return Handle<JSObject>::null();
|
619
|
-
Handle<Object> value = New(cons, 0, NULL, exc);
|
620
|
-
if (*exc) return Handle<JSObject>::null();
|
621
|
-
result = *value;
|
622
|
-
}
|
623
|
-
ASSERT(!*exc);
|
624
|
-
return Handle<JSObject>(JSObject::cast(result));
|
625
|
-
} else {
|
626
|
-
Object** args[1] = { Handle<Object>::cast(data).location() };
|
627
|
-
Handle<Object> result =
|
628
|
-
Call(isolate->instantiate_fun(),
|
629
|
-
isolate->js_builtins_object(), 1, args, exc);
|
630
|
-
if (*exc) return Handle<JSObject>::null();
|
631
|
-
return Handle<JSObject>::cast(result);
|
632
|
-
}
|
633
|
-
}
|
634
|
-
|
635
|
-
|
636
|
-
void Execution::ConfigureInstance(Handle<Object> instance,
|
637
|
-
Handle<Object> instance_template,
|
638
|
-
bool* exc) {
|
639
|
-
Isolate* isolate = Isolate::Current();
|
640
|
-
Object** args[2] = { instance.location(), instance_template.location() };
|
641
|
-
Execution::Call(isolate->configure_instance_fun(),
|
642
|
-
isolate->js_builtins_object(), 2, args, exc);
|
643
|
-
}
|
644
|
-
|
645
|
-
|
646
|
-
Handle<String> Execution::GetStackTraceLine(Handle<Object> recv,
|
647
|
-
Handle<JSFunction> fun,
|
648
|
-
Handle<Object> pos,
|
649
|
-
Handle<Object> is_global) {
|
650
|
-
Isolate* isolate = fun->GetIsolate();
|
651
|
-
const int argc = 4;
|
652
|
-
Object** args[argc] = { recv.location(),
|
653
|
-
Handle<Object>::cast(fun).location(),
|
654
|
-
pos.location(),
|
655
|
-
is_global.location() };
|
656
|
-
bool caught_exception = false;
|
657
|
-
Handle<Object> result =
|
658
|
-
TryCall(isolate->get_stack_trace_line_fun(),
|
659
|
-
isolate->js_builtins_object(), argc, args,
|
660
|
-
&caught_exception);
|
661
|
-
if (caught_exception || !result->IsString()) {
|
662
|
-
return isolate->factory()->empty_symbol();
|
663
|
-
}
|
664
|
-
|
665
|
-
return Handle<String>::cast(result);
|
666
|
-
}
|
667
|
-
|
668
|
-
|
669
|
-
static Object* RuntimePreempt() {
|
670
|
-
Isolate* isolate = Isolate::Current();
|
671
|
-
|
672
|
-
// Clear the preempt request flag.
|
673
|
-
isolate->stack_guard()->Continue(PREEMPT);
|
674
|
-
|
675
|
-
ContextSwitcher::PreemptionReceived();
|
676
|
-
|
677
|
-
#ifdef ENABLE_DEBUGGER_SUPPORT
|
678
|
-
if (isolate->debug()->InDebugger()) {
|
679
|
-
// If currently in the debugger don't do any actual preemption but record
|
680
|
-
// that preemption occoured while in the debugger.
|
681
|
-
isolate->debug()->PreemptionWhileInDebugger();
|
682
|
-
} else {
|
683
|
-
// Perform preemption.
|
684
|
-
v8::Unlocker unlocker;
|
685
|
-
Thread::YieldCPU();
|
686
|
-
}
|
687
|
-
#else
|
688
|
-
{ // NOLINT
|
689
|
-
// Perform preemption.
|
690
|
-
v8::Unlocker unlocker;
|
691
|
-
Thread::YieldCPU();
|
692
|
-
}
|
693
|
-
#endif
|
694
|
-
|
695
|
-
return isolate->heap()->undefined_value();
|
696
|
-
}
|
697
|
-
|
698
|
-
|
699
|
-
#ifdef ENABLE_DEBUGGER_SUPPORT
|
700
|
-
Object* Execution::DebugBreakHelper() {
|
701
|
-
Isolate* isolate = Isolate::Current();
|
702
|
-
|
703
|
-
// Just continue if breaks are disabled.
|
704
|
-
if (isolate->debug()->disable_break()) {
|
705
|
-
return isolate->heap()->undefined_value();
|
706
|
-
}
|
707
|
-
|
708
|
-
// Ignore debug break during bootstrapping.
|
709
|
-
if (isolate->bootstrapper()->IsActive()) {
|
710
|
-
return isolate->heap()->undefined_value();
|
711
|
-
}
|
712
|
-
|
713
|
-
{
|
714
|
-
JavaScriptFrameIterator it(isolate);
|
715
|
-
ASSERT(!it.done());
|
716
|
-
Object* fun = it.frame()->function();
|
717
|
-
if (fun && fun->IsJSFunction()) {
|
718
|
-
// Don't stop in builtin functions.
|
719
|
-
if (JSFunction::cast(fun)->IsBuiltin()) {
|
720
|
-
return isolate->heap()->undefined_value();
|
721
|
-
}
|
722
|
-
GlobalObject* global = JSFunction::cast(fun)->context()->global();
|
723
|
-
// Don't stop in debugger functions.
|
724
|
-
if (isolate->debug()->IsDebugGlobal(global)) {
|
725
|
-
return isolate->heap()->undefined_value();
|
726
|
-
}
|
727
|
-
}
|
728
|
-
}
|
729
|
-
|
730
|
-
// Collect the break state before clearing the flags.
|
731
|
-
bool debug_command_only =
|
732
|
-
isolate->stack_guard()->IsDebugCommand() &&
|
733
|
-
!isolate->stack_guard()->IsDebugBreak();
|
734
|
-
|
735
|
-
// Clear the debug break request flag.
|
736
|
-
isolate->stack_guard()->Continue(DEBUGBREAK);
|
737
|
-
|
738
|
-
ProcessDebugMesssages(debug_command_only);
|
739
|
-
|
740
|
-
// Return to continue execution.
|
741
|
-
return isolate->heap()->undefined_value();
|
742
|
-
}
|
743
|
-
|
744
|
-
void Execution::ProcessDebugMesssages(bool debug_command_only) {
|
745
|
-
Isolate* isolate = Isolate::Current();
|
746
|
-
// Clear the debug command request flag.
|
747
|
-
isolate->stack_guard()->Continue(DEBUGCOMMAND);
|
748
|
-
|
749
|
-
HandleScope scope(isolate);
|
750
|
-
// Enter the debugger. Just continue if we fail to enter the debugger.
|
751
|
-
EnterDebugger debugger;
|
752
|
-
if (debugger.FailedToEnter()) {
|
753
|
-
return;
|
754
|
-
}
|
755
|
-
|
756
|
-
// Notify the debug event listeners. Indicate auto continue if the break was
|
757
|
-
// a debug command break.
|
758
|
-
isolate->debugger()->OnDebugBreak(isolate->factory()->undefined_value(),
|
759
|
-
debug_command_only);
|
760
|
-
}
|
761
|
-
|
762
|
-
|
763
|
-
#endif
|
764
|
-
|
765
|
-
MaybeObject* Execution::HandleStackGuardInterrupt() {
|
766
|
-
Isolate* isolate = Isolate::Current();
|
767
|
-
StackGuard* stack_guard = isolate->stack_guard();
|
768
|
-
isolate->counters()->stack_interrupts()->Increment();
|
769
|
-
if (stack_guard->IsRuntimeProfilerTick()) {
|
770
|
-
isolate->counters()->runtime_profiler_ticks()->Increment();
|
771
|
-
stack_guard->Continue(RUNTIME_PROFILER_TICK);
|
772
|
-
isolate->runtime_profiler()->OptimizeNow();
|
773
|
-
}
|
774
|
-
#ifdef ENABLE_DEBUGGER_SUPPORT
|
775
|
-
if (stack_guard->IsDebugBreak() || stack_guard->IsDebugCommand()) {
|
776
|
-
DebugBreakHelper();
|
777
|
-
}
|
778
|
-
#endif
|
779
|
-
if (stack_guard->IsPreempted()) RuntimePreempt();
|
780
|
-
if (stack_guard->IsTerminateExecution()) {
|
781
|
-
stack_guard->Continue(TERMINATE);
|
782
|
-
return isolate->TerminateExecution();
|
783
|
-
}
|
784
|
-
if (stack_guard->IsInterrupted()) {
|
785
|
-
stack_guard->Continue(INTERRUPT);
|
786
|
-
return isolate->StackOverflow();
|
787
|
-
}
|
788
|
-
return isolate->heap()->undefined_value();
|
789
|
-
}
|
790
|
-
|
791
|
-
} } // namespace v8::internal
|