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,1382 +0,0 @@
|
|
1
|
-
// Copyright (c) 1994-2006 Sun Microsystems Inc.
|
2
|
-
// All Rights Reserved.
|
3
|
-
//
|
4
|
-
// Redistribution and use in source and binary forms, with or without
|
5
|
-
// modification, are permitted provided that the following conditions
|
6
|
-
// are met:
|
7
|
-
//
|
8
|
-
// - Redistributions of source code must retain the above copyright notice,
|
9
|
-
// this list of conditions and the following disclaimer.
|
10
|
-
//
|
11
|
-
// - Redistribution in binary form must reproduce the above copyright
|
12
|
-
// notice, this list of conditions and the following disclaimer in the
|
13
|
-
// documentation and/or other materials provided with the
|
14
|
-
// distribution.
|
15
|
-
//
|
16
|
-
// - Neither the name of Sun Microsystems or the names of contributors may
|
17
|
-
// be used to endorse or promote products derived from this software without
|
18
|
-
// specific prior written permission.
|
19
|
-
//
|
20
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
21
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
22
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
23
|
-
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
24
|
-
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
25
|
-
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
26
|
-
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
27
|
-
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
28
|
-
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
29
|
-
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30
|
-
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
31
|
-
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
32
|
-
|
33
|
-
// The original source code covered by the above license above has been
|
34
|
-
// modified significantly by Google Inc.
|
35
|
-
// Copyright 2011 the V8 project authors. All rights reserved.
|
36
|
-
|
37
|
-
// A light-weight ARM Assembler
|
38
|
-
// Generates user mode instructions for the ARM architecture up to version 5
|
39
|
-
|
40
|
-
#ifndef V8_ARM_ASSEMBLER_ARM_H_
|
41
|
-
#define V8_ARM_ASSEMBLER_ARM_H_
|
42
|
-
#include <stdio.h>
|
43
|
-
#include "assembler.h"
|
44
|
-
#include "constants-arm.h"
|
45
|
-
#include "serialize.h"
|
46
|
-
|
47
|
-
namespace v8 {
|
48
|
-
namespace internal {
|
49
|
-
|
50
|
-
// CPU Registers.
|
51
|
-
//
|
52
|
-
// 1) We would prefer to use an enum, but enum values are assignment-
|
53
|
-
// compatible with int, which has caused code-generation bugs.
|
54
|
-
//
|
55
|
-
// 2) We would prefer to use a class instead of a struct but we don't like
|
56
|
-
// the register initialization to depend on the particular initialization
|
57
|
-
// order (which appears to be different on OS X, Linux, and Windows for the
|
58
|
-
// installed versions of C++ we tried). Using a struct permits C-style
|
59
|
-
// "initialization". Also, the Register objects cannot be const as this
|
60
|
-
// forces initialization stubs in MSVC, making us dependent on initialization
|
61
|
-
// order.
|
62
|
-
//
|
63
|
-
// 3) By not using an enum, we are possibly preventing the compiler from
|
64
|
-
// doing certain constant folds, which may significantly reduce the
|
65
|
-
// code generated for some assembly instructions (because they boil down
|
66
|
-
// to a few constants). If this is a problem, we could change the code
|
67
|
-
// such that we use an enum in optimized mode, and the struct in debug
|
68
|
-
// mode. This way we get the compile-time error checking in debug mode
|
69
|
-
// and best performance in optimized code.
|
70
|
-
|
71
|
-
// Core register
|
72
|
-
struct Register {
|
73
|
-
static const int kNumRegisters = 16;
|
74
|
-
static const int kNumAllocatableRegisters = 8;
|
75
|
-
|
76
|
-
static int ToAllocationIndex(Register reg) {
|
77
|
-
ASSERT(reg.code() < kNumAllocatableRegisters);
|
78
|
-
return reg.code();
|
79
|
-
}
|
80
|
-
|
81
|
-
static Register FromAllocationIndex(int index) {
|
82
|
-
ASSERT(index >= 0 && index < kNumAllocatableRegisters);
|
83
|
-
return from_code(index);
|
84
|
-
}
|
85
|
-
|
86
|
-
static const char* AllocationIndexToString(int index) {
|
87
|
-
ASSERT(index >= 0 && index < kNumAllocatableRegisters);
|
88
|
-
const char* const names[] = {
|
89
|
-
"r0",
|
90
|
-
"r1",
|
91
|
-
"r2",
|
92
|
-
"r3",
|
93
|
-
"r4",
|
94
|
-
"r5",
|
95
|
-
"r6",
|
96
|
-
"r7",
|
97
|
-
};
|
98
|
-
return names[index];
|
99
|
-
}
|
100
|
-
|
101
|
-
static Register from_code(int code) {
|
102
|
-
Register r = { code };
|
103
|
-
return r;
|
104
|
-
}
|
105
|
-
|
106
|
-
bool is_valid() const { return 0 <= code_ && code_ < kNumRegisters; }
|
107
|
-
bool is(Register reg) const { return code_ == reg.code_; }
|
108
|
-
int code() const {
|
109
|
-
ASSERT(is_valid());
|
110
|
-
return code_;
|
111
|
-
}
|
112
|
-
int bit() const {
|
113
|
-
ASSERT(is_valid());
|
114
|
-
return 1 << code_;
|
115
|
-
}
|
116
|
-
|
117
|
-
void set_code(int code) {
|
118
|
-
code_ = code;
|
119
|
-
ASSERT(is_valid());
|
120
|
-
}
|
121
|
-
|
122
|
-
// Unfortunately we can't make this private in a struct.
|
123
|
-
int code_;
|
124
|
-
};
|
125
|
-
|
126
|
-
const Register no_reg = { -1 };
|
127
|
-
|
128
|
-
const Register r0 = { 0 };
|
129
|
-
const Register r1 = { 1 };
|
130
|
-
const Register r2 = { 2 };
|
131
|
-
const Register r3 = { 3 };
|
132
|
-
const Register r4 = { 4 };
|
133
|
-
const Register r5 = { 5 };
|
134
|
-
const Register r6 = { 6 };
|
135
|
-
const Register r7 = { 7 };
|
136
|
-
const Register r8 = { 8 }; // Used as context register.
|
137
|
-
const Register r9 = { 9 }; // Used as lithium codegen scratch register.
|
138
|
-
const Register r10 = { 10 }; // Used as roots register.
|
139
|
-
const Register fp = { 11 };
|
140
|
-
const Register ip = { 12 };
|
141
|
-
const Register sp = { 13 };
|
142
|
-
const Register lr = { 14 };
|
143
|
-
const Register pc = { 15 };
|
144
|
-
|
145
|
-
// Single word VFP register.
|
146
|
-
struct SwVfpRegister {
|
147
|
-
bool is_valid() const { return 0 <= code_ && code_ < 32; }
|
148
|
-
bool is(SwVfpRegister reg) const { return code_ == reg.code_; }
|
149
|
-
int code() const {
|
150
|
-
ASSERT(is_valid());
|
151
|
-
return code_;
|
152
|
-
}
|
153
|
-
int bit() const {
|
154
|
-
ASSERT(is_valid());
|
155
|
-
return 1 << code_;
|
156
|
-
}
|
157
|
-
void split_code(int* vm, int* m) const {
|
158
|
-
ASSERT(is_valid());
|
159
|
-
*m = code_ & 0x1;
|
160
|
-
*vm = code_ >> 1;
|
161
|
-
}
|
162
|
-
|
163
|
-
int code_;
|
164
|
-
};
|
165
|
-
|
166
|
-
|
167
|
-
// Double word VFP register.
|
168
|
-
struct DwVfpRegister {
|
169
|
-
// d0 has been excluded from allocation. This is following ia32
|
170
|
-
// where xmm0 is excluded. This should be revisited.
|
171
|
-
// Currently d0 is used as a scratch register.
|
172
|
-
// d1 has also been excluded from allocation to be used as a scratch
|
173
|
-
// register as well.
|
174
|
-
static const int kNumRegisters = 16;
|
175
|
-
static const int kNumAllocatableRegisters = 15;
|
176
|
-
|
177
|
-
static int ToAllocationIndex(DwVfpRegister reg) {
|
178
|
-
ASSERT(reg.code() != 0);
|
179
|
-
return reg.code() - 1;
|
180
|
-
}
|
181
|
-
|
182
|
-
static DwVfpRegister FromAllocationIndex(int index) {
|
183
|
-
ASSERT(index >= 0 && index < kNumAllocatableRegisters);
|
184
|
-
return from_code(index + 1);
|
185
|
-
}
|
186
|
-
|
187
|
-
static const char* AllocationIndexToString(int index) {
|
188
|
-
ASSERT(index >= 0 && index < kNumAllocatableRegisters);
|
189
|
-
const char* const names[] = {
|
190
|
-
"d1",
|
191
|
-
"d2",
|
192
|
-
"d3",
|
193
|
-
"d4",
|
194
|
-
"d5",
|
195
|
-
"d6",
|
196
|
-
"d7",
|
197
|
-
"d8",
|
198
|
-
"d9",
|
199
|
-
"d10",
|
200
|
-
"d11",
|
201
|
-
"d12",
|
202
|
-
"d13",
|
203
|
-
"d14",
|
204
|
-
"d15"
|
205
|
-
};
|
206
|
-
return names[index];
|
207
|
-
}
|
208
|
-
|
209
|
-
static DwVfpRegister from_code(int code) {
|
210
|
-
DwVfpRegister r = { code };
|
211
|
-
return r;
|
212
|
-
}
|
213
|
-
|
214
|
-
// Supporting d0 to d15, can be later extended to d31.
|
215
|
-
bool is_valid() const { return 0 <= code_ && code_ < 16; }
|
216
|
-
bool is(DwVfpRegister reg) const { return code_ == reg.code_; }
|
217
|
-
SwVfpRegister low() const {
|
218
|
-
SwVfpRegister reg;
|
219
|
-
reg.code_ = code_ * 2;
|
220
|
-
|
221
|
-
ASSERT(reg.is_valid());
|
222
|
-
return reg;
|
223
|
-
}
|
224
|
-
SwVfpRegister high() const {
|
225
|
-
SwVfpRegister reg;
|
226
|
-
reg.code_ = (code_ * 2) + 1;
|
227
|
-
|
228
|
-
ASSERT(reg.is_valid());
|
229
|
-
return reg;
|
230
|
-
}
|
231
|
-
int code() const {
|
232
|
-
ASSERT(is_valid());
|
233
|
-
return code_;
|
234
|
-
}
|
235
|
-
int bit() const {
|
236
|
-
ASSERT(is_valid());
|
237
|
-
return 1 << code_;
|
238
|
-
}
|
239
|
-
void split_code(int* vm, int* m) const {
|
240
|
-
ASSERT(is_valid());
|
241
|
-
*m = (code_ & 0x10) >> 4;
|
242
|
-
*vm = code_ & 0x0F;
|
243
|
-
}
|
244
|
-
|
245
|
-
int code_;
|
246
|
-
};
|
247
|
-
|
248
|
-
|
249
|
-
typedef DwVfpRegister DoubleRegister;
|
250
|
-
|
251
|
-
|
252
|
-
// Support for the VFP registers s0 to s31 (d0 to d15).
|
253
|
-
// Note that "s(N):s(N+1)" is the same as "d(N/2)".
|
254
|
-
const SwVfpRegister s0 = { 0 };
|
255
|
-
const SwVfpRegister s1 = { 1 };
|
256
|
-
const SwVfpRegister s2 = { 2 };
|
257
|
-
const SwVfpRegister s3 = { 3 };
|
258
|
-
const SwVfpRegister s4 = { 4 };
|
259
|
-
const SwVfpRegister s5 = { 5 };
|
260
|
-
const SwVfpRegister s6 = { 6 };
|
261
|
-
const SwVfpRegister s7 = { 7 };
|
262
|
-
const SwVfpRegister s8 = { 8 };
|
263
|
-
const SwVfpRegister s9 = { 9 };
|
264
|
-
const SwVfpRegister s10 = { 10 };
|
265
|
-
const SwVfpRegister s11 = { 11 };
|
266
|
-
const SwVfpRegister s12 = { 12 };
|
267
|
-
const SwVfpRegister s13 = { 13 };
|
268
|
-
const SwVfpRegister s14 = { 14 };
|
269
|
-
const SwVfpRegister s15 = { 15 };
|
270
|
-
const SwVfpRegister s16 = { 16 };
|
271
|
-
const SwVfpRegister s17 = { 17 };
|
272
|
-
const SwVfpRegister s18 = { 18 };
|
273
|
-
const SwVfpRegister s19 = { 19 };
|
274
|
-
const SwVfpRegister s20 = { 20 };
|
275
|
-
const SwVfpRegister s21 = { 21 };
|
276
|
-
const SwVfpRegister s22 = { 22 };
|
277
|
-
const SwVfpRegister s23 = { 23 };
|
278
|
-
const SwVfpRegister s24 = { 24 };
|
279
|
-
const SwVfpRegister s25 = { 25 };
|
280
|
-
const SwVfpRegister s26 = { 26 };
|
281
|
-
const SwVfpRegister s27 = { 27 };
|
282
|
-
const SwVfpRegister s28 = { 28 };
|
283
|
-
const SwVfpRegister s29 = { 29 };
|
284
|
-
const SwVfpRegister s30 = { 30 };
|
285
|
-
const SwVfpRegister s31 = { 31 };
|
286
|
-
|
287
|
-
const DwVfpRegister no_dreg = { -1 };
|
288
|
-
const DwVfpRegister d0 = { 0 };
|
289
|
-
const DwVfpRegister d1 = { 1 };
|
290
|
-
const DwVfpRegister d2 = { 2 };
|
291
|
-
const DwVfpRegister d3 = { 3 };
|
292
|
-
const DwVfpRegister d4 = { 4 };
|
293
|
-
const DwVfpRegister d5 = { 5 };
|
294
|
-
const DwVfpRegister d6 = { 6 };
|
295
|
-
const DwVfpRegister d7 = { 7 };
|
296
|
-
const DwVfpRegister d8 = { 8 };
|
297
|
-
const DwVfpRegister d9 = { 9 };
|
298
|
-
const DwVfpRegister d10 = { 10 };
|
299
|
-
const DwVfpRegister d11 = { 11 };
|
300
|
-
const DwVfpRegister d12 = { 12 };
|
301
|
-
const DwVfpRegister d13 = { 13 };
|
302
|
-
const DwVfpRegister d14 = { 14 };
|
303
|
-
const DwVfpRegister d15 = { 15 };
|
304
|
-
|
305
|
-
|
306
|
-
// Coprocessor register
|
307
|
-
struct CRegister {
|
308
|
-
bool is_valid() const { return 0 <= code_ && code_ < 16; }
|
309
|
-
bool is(CRegister creg) const { return code_ == creg.code_; }
|
310
|
-
int code() const {
|
311
|
-
ASSERT(is_valid());
|
312
|
-
return code_;
|
313
|
-
}
|
314
|
-
int bit() const {
|
315
|
-
ASSERT(is_valid());
|
316
|
-
return 1 << code_;
|
317
|
-
}
|
318
|
-
|
319
|
-
// Unfortunately we can't make this private in a struct.
|
320
|
-
int code_;
|
321
|
-
};
|
322
|
-
|
323
|
-
|
324
|
-
const CRegister no_creg = { -1 };
|
325
|
-
|
326
|
-
const CRegister cr0 = { 0 };
|
327
|
-
const CRegister cr1 = { 1 };
|
328
|
-
const CRegister cr2 = { 2 };
|
329
|
-
const CRegister cr3 = { 3 };
|
330
|
-
const CRegister cr4 = { 4 };
|
331
|
-
const CRegister cr5 = { 5 };
|
332
|
-
const CRegister cr6 = { 6 };
|
333
|
-
const CRegister cr7 = { 7 };
|
334
|
-
const CRegister cr8 = { 8 };
|
335
|
-
const CRegister cr9 = { 9 };
|
336
|
-
const CRegister cr10 = { 10 };
|
337
|
-
const CRegister cr11 = { 11 };
|
338
|
-
const CRegister cr12 = { 12 };
|
339
|
-
const CRegister cr13 = { 13 };
|
340
|
-
const CRegister cr14 = { 14 };
|
341
|
-
const CRegister cr15 = { 15 };
|
342
|
-
|
343
|
-
|
344
|
-
// Coprocessor number
|
345
|
-
enum Coprocessor {
|
346
|
-
p0 = 0,
|
347
|
-
p1 = 1,
|
348
|
-
p2 = 2,
|
349
|
-
p3 = 3,
|
350
|
-
p4 = 4,
|
351
|
-
p5 = 5,
|
352
|
-
p6 = 6,
|
353
|
-
p7 = 7,
|
354
|
-
p8 = 8,
|
355
|
-
p9 = 9,
|
356
|
-
p10 = 10,
|
357
|
-
p11 = 11,
|
358
|
-
p12 = 12,
|
359
|
-
p13 = 13,
|
360
|
-
p14 = 14,
|
361
|
-
p15 = 15
|
362
|
-
};
|
363
|
-
|
364
|
-
|
365
|
-
// -----------------------------------------------------------------------------
|
366
|
-
// Machine instruction Operands
|
367
|
-
|
368
|
-
// Class Operand represents a shifter operand in data processing instructions
|
369
|
-
class Operand BASE_EMBEDDED {
|
370
|
-
public:
|
371
|
-
// immediate
|
372
|
-
INLINE(explicit Operand(int32_t immediate,
|
373
|
-
RelocInfo::Mode rmode = RelocInfo::NONE));
|
374
|
-
INLINE(explicit Operand(const ExternalReference& f));
|
375
|
-
INLINE(explicit Operand(const char* s));
|
376
|
-
explicit Operand(Handle<Object> handle);
|
377
|
-
INLINE(explicit Operand(Smi* value));
|
378
|
-
|
379
|
-
// rm
|
380
|
-
INLINE(explicit Operand(Register rm));
|
381
|
-
|
382
|
-
// rm <shift_op> shift_imm
|
383
|
-
explicit Operand(Register rm, ShiftOp shift_op, int shift_imm);
|
384
|
-
|
385
|
-
// rm <shift_op> rs
|
386
|
-
explicit Operand(Register rm, ShiftOp shift_op, Register rs);
|
387
|
-
|
388
|
-
// Return true if this is a register operand.
|
389
|
-
INLINE(bool is_reg() const);
|
390
|
-
|
391
|
-
// Return true if this operand fits in one instruction so that no
|
392
|
-
// 2-instruction solution with a load into the ip register is necessary. If
|
393
|
-
// the instruction this operand is used for is a MOV or MVN instruction the
|
394
|
-
// actual instruction to use is required for this calculation. For other
|
395
|
-
// instructions instr is ignored.
|
396
|
-
bool is_single_instruction(Instr instr = 0) const;
|
397
|
-
bool must_use_constant_pool() const;
|
398
|
-
|
399
|
-
inline int32_t immediate() const {
|
400
|
-
ASSERT(!rm_.is_valid());
|
401
|
-
return imm32_;
|
402
|
-
}
|
403
|
-
|
404
|
-
Register rm() const { return rm_; }
|
405
|
-
Register rs() const { return rs_; }
|
406
|
-
ShiftOp shift_op() const { return shift_op_; }
|
407
|
-
|
408
|
-
private:
|
409
|
-
Register rm_;
|
410
|
-
Register rs_;
|
411
|
-
ShiftOp shift_op_;
|
412
|
-
int shift_imm_; // valid if rm_ != no_reg && rs_ == no_reg
|
413
|
-
int32_t imm32_; // valid if rm_ == no_reg
|
414
|
-
RelocInfo::Mode rmode_;
|
415
|
-
|
416
|
-
friend class Assembler;
|
417
|
-
};
|
418
|
-
|
419
|
-
|
420
|
-
// Class MemOperand represents a memory operand in load and store instructions
|
421
|
-
class MemOperand BASE_EMBEDDED {
|
422
|
-
public:
|
423
|
-
// [rn +/- offset] Offset/NegOffset
|
424
|
-
// [rn +/- offset]! PreIndex/NegPreIndex
|
425
|
-
// [rn], +/- offset PostIndex/NegPostIndex
|
426
|
-
// offset is any signed 32-bit value; offset is first loaded to register ip if
|
427
|
-
// it does not fit the addressing mode (12-bit unsigned and sign bit)
|
428
|
-
explicit MemOperand(Register rn, int32_t offset = 0, AddrMode am = Offset);
|
429
|
-
|
430
|
-
// [rn +/- rm] Offset/NegOffset
|
431
|
-
// [rn +/- rm]! PreIndex/NegPreIndex
|
432
|
-
// [rn], +/- rm PostIndex/NegPostIndex
|
433
|
-
explicit MemOperand(Register rn, Register rm, AddrMode am = Offset);
|
434
|
-
|
435
|
-
// [rn +/- rm <shift_op> shift_imm] Offset/NegOffset
|
436
|
-
// [rn +/- rm <shift_op> shift_imm]! PreIndex/NegPreIndex
|
437
|
-
// [rn], +/- rm <shift_op> shift_imm PostIndex/NegPostIndex
|
438
|
-
explicit MemOperand(Register rn, Register rm,
|
439
|
-
ShiftOp shift_op, int shift_imm, AddrMode am = Offset);
|
440
|
-
|
441
|
-
void set_offset(int32_t offset) {
|
442
|
-
ASSERT(rm_.is(no_reg));
|
443
|
-
offset_ = offset;
|
444
|
-
}
|
445
|
-
|
446
|
-
uint32_t offset() const {
|
447
|
-
ASSERT(rm_.is(no_reg));
|
448
|
-
return offset_;
|
449
|
-
}
|
450
|
-
|
451
|
-
Register rn() const { return rn_; }
|
452
|
-
Register rm() const { return rm_; }
|
453
|
-
|
454
|
-
bool OffsetIsUint12Encodable() const {
|
455
|
-
return offset_ >= 0 ? is_uint12(offset_) : is_uint12(-offset_);
|
456
|
-
}
|
457
|
-
|
458
|
-
private:
|
459
|
-
Register rn_; // base
|
460
|
-
Register rm_; // register offset
|
461
|
-
int32_t offset_; // valid if rm_ == no_reg
|
462
|
-
ShiftOp shift_op_;
|
463
|
-
int shift_imm_; // valid if rm_ != no_reg && rs_ == no_reg
|
464
|
-
AddrMode am_; // bits P, U, and W
|
465
|
-
|
466
|
-
friend class Assembler;
|
467
|
-
};
|
468
|
-
|
469
|
-
// CpuFeatures keeps track of which features are supported by the target CPU.
|
470
|
-
// Supported features must be enabled by a Scope before use.
|
471
|
-
class CpuFeatures : public AllStatic {
|
472
|
-
public:
|
473
|
-
// Detect features of the target CPU. Set safe defaults if the serializer
|
474
|
-
// is enabled (snapshots must be portable).
|
475
|
-
static void Probe();
|
476
|
-
|
477
|
-
// Check whether a feature is supported by the target CPU.
|
478
|
-
static bool IsSupported(CpuFeature f) {
|
479
|
-
ASSERT(initialized_);
|
480
|
-
if (f == VFP3 && !FLAG_enable_vfp3) return false;
|
481
|
-
return (supported_ & (1u << f)) != 0;
|
482
|
-
}
|
483
|
-
|
484
|
-
#ifdef DEBUG
|
485
|
-
// Check whether a feature is currently enabled.
|
486
|
-
static bool IsEnabled(CpuFeature f) {
|
487
|
-
ASSERT(initialized_);
|
488
|
-
Isolate* isolate = Isolate::UncheckedCurrent();
|
489
|
-
if (isolate == NULL) {
|
490
|
-
// When no isolate is available, work as if we're running in
|
491
|
-
// release mode.
|
492
|
-
return IsSupported(f);
|
493
|
-
}
|
494
|
-
unsigned enabled = static_cast<unsigned>(isolate->enabled_cpu_features());
|
495
|
-
return (enabled & (1u << f)) != 0;
|
496
|
-
}
|
497
|
-
#endif
|
498
|
-
|
499
|
-
// Enable a specified feature within a scope.
|
500
|
-
class Scope BASE_EMBEDDED {
|
501
|
-
#ifdef DEBUG
|
502
|
-
public:
|
503
|
-
explicit Scope(CpuFeature f) {
|
504
|
-
unsigned mask = 1u << f;
|
505
|
-
ASSERT(CpuFeatures::IsSupported(f));
|
506
|
-
ASSERT(!Serializer::enabled() ||
|
507
|
-
(CpuFeatures::found_by_runtime_probing_ & mask) == 0);
|
508
|
-
isolate_ = Isolate::UncheckedCurrent();
|
509
|
-
old_enabled_ = 0;
|
510
|
-
if (isolate_ != NULL) {
|
511
|
-
old_enabled_ = static_cast<unsigned>(isolate_->enabled_cpu_features());
|
512
|
-
isolate_->set_enabled_cpu_features(old_enabled_ | mask);
|
513
|
-
}
|
514
|
-
}
|
515
|
-
~Scope() {
|
516
|
-
ASSERT_EQ(Isolate::UncheckedCurrent(), isolate_);
|
517
|
-
if (isolate_ != NULL) {
|
518
|
-
isolate_->set_enabled_cpu_features(old_enabled_);
|
519
|
-
}
|
520
|
-
}
|
521
|
-
private:
|
522
|
-
Isolate* isolate_;
|
523
|
-
unsigned old_enabled_;
|
524
|
-
#else
|
525
|
-
public:
|
526
|
-
explicit Scope(CpuFeature f) {}
|
527
|
-
#endif
|
528
|
-
};
|
529
|
-
|
530
|
-
class TryForceFeatureScope BASE_EMBEDDED {
|
531
|
-
public:
|
532
|
-
explicit TryForceFeatureScope(CpuFeature f)
|
533
|
-
: old_supported_(CpuFeatures::supported_) {
|
534
|
-
if (CanForce()) {
|
535
|
-
CpuFeatures::supported_ |= (1u << f);
|
536
|
-
}
|
537
|
-
}
|
538
|
-
|
539
|
-
~TryForceFeatureScope() {
|
540
|
-
if (CanForce()) {
|
541
|
-
CpuFeatures::supported_ = old_supported_;
|
542
|
-
}
|
543
|
-
}
|
544
|
-
|
545
|
-
private:
|
546
|
-
static bool CanForce() {
|
547
|
-
// It's only safe to temporarily force support of CPU features
|
548
|
-
// when there's only a single isolate, which is guaranteed when
|
549
|
-
// the serializer is enabled.
|
550
|
-
return Serializer::enabled();
|
551
|
-
}
|
552
|
-
|
553
|
-
const unsigned old_supported_;
|
554
|
-
};
|
555
|
-
|
556
|
-
private:
|
557
|
-
#ifdef DEBUG
|
558
|
-
static bool initialized_;
|
559
|
-
#endif
|
560
|
-
static unsigned supported_;
|
561
|
-
static unsigned found_by_runtime_probing_;
|
562
|
-
|
563
|
-
DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
|
564
|
-
};
|
565
|
-
|
566
|
-
|
567
|
-
extern const Instr kMovLrPc;
|
568
|
-
extern const Instr kLdrPCMask;
|
569
|
-
extern const Instr kLdrPCPattern;
|
570
|
-
extern const Instr kBlxRegMask;
|
571
|
-
extern const Instr kBlxRegPattern;
|
572
|
-
|
573
|
-
extern const Instr kMovMvnMask;
|
574
|
-
extern const Instr kMovMvnPattern;
|
575
|
-
extern const Instr kMovMvnFlip;
|
576
|
-
|
577
|
-
extern const Instr kMovLeaveCCMask;
|
578
|
-
extern const Instr kMovLeaveCCPattern;
|
579
|
-
extern const Instr kMovwMask;
|
580
|
-
extern const Instr kMovwPattern;
|
581
|
-
extern const Instr kMovwLeaveCCFlip;
|
582
|
-
|
583
|
-
extern const Instr kCmpCmnMask;
|
584
|
-
extern const Instr kCmpCmnPattern;
|
585
|
-
extern const Instr kCmpCmnFlip;
|
586
|
-
extern const Instr kAddSubFlip;
|
587
|
-
extern const Instr kAndBicFlip;
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
class Assembler : public AssemblerBase {
|
592
|
-
public:
|
593
|
-
// Create an assembler. Instructions and relocation information are emitted
|
594
|
-
// into a buffer, with the instructions starting from the beginning and the
|
595
|
-
// relocation information starting from the end of the buffer. See CodeDesc
|
596
|
-
// for a detailed comment on the layout (globals.h).
|
597
|
-
//
|
598
|
-
// If the provided buffer is NULL, the assembler allocates and grows its own
|
599
|
-
// buffer, and buffer_size determines the initial buffer size. The buffer is
|
600
|
-
// owned by the assembler and deallocated upon destruction of the assembler.
|
601
|
-
//
|
602
|
-
// If the provided buffer is not NULL, the assembler uses the provided buffer
|
603
|
-
// for code generation and assumes its size to be buffer_size. If the buffer
|
604
|
-
// is too small, a fatal error occurs. No deallocation of the buffer is done
|
605
|
-
// upon destruction of the assembler.
|
606
|
-
Assembler(Isolate* isolate, void* buffer, int buffer_size);
|
607
|
-
~Assembler();
|
608
|
-
|
609
|
-
// Overrides the default provided by FLAG_debug_code.
|
610
|
-
void set_emit_debug_code(bool value) { emit_debug_code_ = value; }
|
611
|
-
|
612
|
-
// GetCode emits any pending (non-emitted) code and fills the descriptor
|
613
|
-
// desc. GetCode() is idempotent; it returns the same result if no other
|
614
|
-
// Assembler functions are invoked in between GetCode() calls.
|
615
|
-
void GetCode(CodeDesc* desc);
|
616
|
-
|
617
|
-
// Label operations & relative jumps (PPUM Appendix D)
|
618
|
-
//
|
619
|
-
// Takes a branch opcode (cc) and a label (L) and generates
|
620
|
-
// either a backward branch or a forward branch and links it
|
621
|
-
// to the label fixup chain. Usage:
|
622
|
-
//
|
623
|
-
// Label L; // unbound label
|
624
|
-
// j(cc, &L); // forward branch to unbound label
|
625
|
-
// bind(&L); // bind label to the current pc
|
626
|
-
// j(cc, &L); // backward branch to bound label
|
627
|
-
// bind(&L); // illegal: a label may be bound only once
|
628
|
-
//
|
629
|
-
// Note: The same Label can be used for forward and backward branches
|
630
|
-
// but it may be bound only once.
|
631
|
-
|
632
|
-
void bind(Label* L); // binds an unbound label L to the current code position
|
633
|
-
|
634
|
-
// Returns the branch offset to the given label from the current code position
|
635
|
-
// Links the label to the current position if it is still unbound
|
636
|
-
// Manages the jump elimination optimization if the second parameter is true.
|
637
|
-
int branch_offset(Label* L, bool jump_elimination_allowed);
|
638
|
-
|
639
|
-
// Puts a labels target address at the given position.
|
640
|
-
// The high 8 bits are set to zero.
|
641
|
-
void label_at_put(Label* L, int at_offset);
|
642
|
-
|
643
|
-
// Return the address in the constant pool of the code target address used by
|
644
|
-
// the branch/call instruction at pc.
|
645
|
-
INLINE(static Address target_address_address_at(Address pc));
|
646
|
-
|
647
|
-
// Read/Modify the code target address in the branch/call instruction at pc.
|
648
|
-
INLINE(static Address target_address_at(Address pc));
|
649
|
-
INLINE(static void set_target_address_at(Address pc, Address target));
|
650
|
-
|
651
|
-
// This sets the branch destination (which is in the constant pool on ARM).
|
652
|
-
// This is for calls and branches within generated code.
|
653
|
-
inline static void set_target_at(Address constant_pool_entry, Address target);
|
654
|
-
|
655
|
-
// This sets the branch destination (which is in the constant pool on ARM).
|
656
|
-
// This is for calls and branches to runtime code.
|
657
|
-
inline static void set_external_target_at(Address constant_pool_entry,
|
658
|
-
Address target) {
|
659
|
-
set_target_at(constant_pool_entry, target);
|
660
|
-
}
|
661
|
-
|
662
|
-
// Here we are patching the address in the constant pool, not the actual call
|
663
|
-
// instruction. The address in the constant pool is the same size as a
|
664
|
-
// pointer.
|
665
|
-
static const int kCallTargetSize = kPointerSize;
|
666
|
-
static const int kExternalTargetSize = kPointerSize;
|
667
|
-
|
668
|
-
// Size of an instruction.
|
669
|
-
static const int kInstrSize = sizeof(Instr);
|
670
|
-
|
671
|
-
// Distance between the instruction referring to the address of the call
|
672
|
-
// target and the return address.
|
673
|
-
#ifdef USE_BLX
|
674
|
-
// Call sequence is:
|
675
|
-
// ldr ip, [pc, #...] @ call address
|
676
|
-
// blx ip
|
677
|
-
// @ return address
|
678
|
-
static const int kCallTargetAddressOffset = 2 * kInstrSize;
|
679
|
-
#else
|
680
|
-
// Call sequence is:
|
681
|
-
// mov lr, pc
|
682
|
-
// ldr pc, [pc, #...] @ call address
|
683
|
-
// @ return address
|
684
|
-
static const int kCallTargetAddressOffset = kInstrSize;
|
685
|
-
#endif
|
686
|
-
|
687
|
-
// Distance between start of patched return sequence and the emitted address
|
688
|
-
// to jump to.
|
689
|
-
#ifdef USE_BLX
|
690
|
-
// Patched return sequence is:
|
691
|
-
// ldr ip, [pc, #0] @ emited address and start
|
692
|
-
// blx ip
|
693
|
-
static const int kPatchReturnSequenceAddressOffset = 0 * kInstrSize;
|
694
|
-
#else
|
695
|
-
// Patched return sequence is:
|
696
|
-
// mov lr, pc @ start of sequence
|
697
|
-
// ldr pc, [pc, #-4] @ emited address
|
698
|
-
static const int kPatchReturnSequenceAddressOffset = kInstrSize;
|
699
|
-
#endif
|
700
|
-
|
701
|
-
// Distance between start of patched debug break slot and the emitted address
|
702
|
-
// to jump to.
|
703
|
-
#ifdef USE_BLX
|
704
|
-
// Patched debug break slot code is:
|
705
|
-
// ldr ip, [pc, #0] @ emited address and start
|
706
|
-
// blx ip
|
707
|
-
static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize;
|
708
|
-
#else
|
709
|
-
// Patched debug break slot code is:
|
710
|
-
// mov lr, pc @ start of sequence
|
711
|
-
// ldr pc, [pc, #-4] @ emited address
|
712
|
-
static const int kPatchDebugBreakSlotAddressOffset = kInstrSize;
|
713
|
-
#endif
|
714
|
-
|
715
|
-
// Difference between address of current opcode and value read from pc
|
716
|
-
// register.
|
717
|
-
static const int kPcLoadDelta = 8;
|
718
|
-
|
719
|
-
static const int kJSReturnSequenceInstructions = 4;
|
720
|
-
static const int kDebugBreakSlotInstructions = 3;
|
721
|
-
static const int kDebugBreakSlotLength =
|
722
|
-
kDebugBreakSlotInstructions * kInstrSize;
|
723
|
-
|
724
|
-
// ---------------------------------------------------------------------------
|
725
|
-
// Code generation
|
726
|
-
|
727
|
-
// Insert the smallest number of nop instructions
|
728
|
-
// possible to align the pc offset to a multiple
|
729
|
-
// of m. m must be a power of 2 (>= 4).
|
730
|
-
void Align(int m);
|
731
|
-
// Aligns code to something that's optimal for a jump target for the platform.
|
732
|
-
void CodeTargetAlign();
|
733
|
-
|
734
|
-
// Branch instructions
|
735
|
-
void b(int branch_offset, Condition cond = al);
|
736
|
-
void bl(int branch_offset, Condition cond = al);
|
737
|
-
void blx(int branch_offset); // v5 and above
|
738
|
-
void blx(Register target, Condition cond = al); // v5 and above
|
739
|
-
void bx(Register target, Condition cond = al); // v5 and above, plus v4t
|
740
|
-
|
741
|
-
// Convenience branch instructions using labels
|
742
|
-
void b(Label* L, Condition cond = al) {
|
743
|
-
b(branch_offset(L, cond == al), cond);
|
744
|
-
}
|
745
|
-
void b(Condition cond, Label* L) { b(branch_offset(L, cond == al), cond); }
|
746
|
-
void bl(Label* L, Condition cond = al) { bl(branch_offset(L, false), cond); }
|
747
|
-
void bl(Condition cond, Label* L) { bl(branch_offset(L, false), cond); }
|
748
|
-
void blx(Label* L) { blx(branch_offset(L, false)); } // v5 and above
|
749
|
-
|
750
|
-
// Data-processing instructions
|
751
|
-
|
752
|
-
void and_(Register dst, Register src1, const Operand& src2,
|
753
|
-
SBit s = LeaveCC, Condition cond = al);
|
754
|
-
|
755
|
-
void eor(Register dst, Register src1, const Operand& src2,
|
756
|
-
SBit s = LeaveCC, Condition cond = al);
|
757
|
-
|
758
|
-
void sub(Register dst, Register src1, const Operand& src2,
|
759
|
-
SBit s = LeaveCC, Condition cond = al);
|
760
|
-
void sub(Register dst, Register src1, Register src2,
|
761
|
-
SBit s = LeaveCC, Condition cond = al) {
|
762
|
-
sub(dst, src1, Operand(src2), s, cond);
|
763
|
-
}
|
764
|
-
|
765
|
-
void rsb(Register dst, Register src1, const Operand& src2,
|
766
|
-
SBit s = LeaveCC, Condition cond = al);
|
767
|
-
|
768
|
-
void add(Register dst, Register src1, const Operand& src2,
|
769
|
-
SBit s = LeaveCC, Condition cond = al);
|
770
|
-
void add(Register dst, Register src1, Register src2,
|
771
|
-
SBit s = LeaveCC, Condition cond = al) {
|
772
|
-
add(dst, src1, Operand(src2), s, cond);
|
773
|
-
}
|
774
|
-
|
775
|
-
void adc(Register dst, Register src1, const Operand& src2,
|
776
|
-
SBit s = LeaveCC, Condition cond = al);
|
777
|
-
|
778
|
-
void sbc(Register dst, Register src1, const Operand& src2,
|
779
|
-
SBit s = LeaveCC, Condition cond = al);
|
780
|
-
|
781
|
-
void rsc(Register dst, Register src1, const Operand& src2,
|
782
|
-
SBit s = LeaveCC, Condition cond = al);
|
783
|
-
|
784
|
-
void tst(Register src1, const Operand& src2, Condition cond = al);
|
785
|
-
void tst(Register src1, Register src2, Condition cond = al) {
|
786
|
-
tst(src1, Operand(src2), cond);
|
787
|
-
}
|
788
|
-
|
789
|
-
void teq(Register src1, const Operand& src2, Condition cond = al);
|
790
|
-
|
791
|
-
void cmp(Register src1, const Operand& src2, Condition cond = al);
|
792
|
-
void cmp(Register src1, Register src2, Condition cond = al) {
|
793
|
-
cmp(src1, Operand(src2), cond);
|
794
|
-
}
|
795
|
-
void cmp_raw_immediate(Register src1, int raw_immediate, Condition cond = al);
|
796
|
-
|
797
|
-
void cmn(Register src1, const Operand& src2, Condition cond = al);
|
798
|
-
|
799
|
-
void orr(Register dst, Register src1, const Operand& src2,
|
800
|
-
SBit s = LeaveCC, Condition cond = al);
|
801
|
-
void orr(Register dst, Register src1, Register src2,
|
802
|
-
SBit s = LeaveCC, Condition cond = al) {
|
803
|
-
orr(dst, src1, Operand(src2), s, cond);
|
804
|
-
}
|
805
|
-
|
806
|
-
void mov(Register dst, const Operand& src,
|
807
|
-
SBit s = LeaveCC, Condition cond = al);
|
808
|
-
void mov(Register dst, Register src, SBit s = LeaveCC, Condition cond = al) {
|
809
|
-
mov(dst, Operand(src), s, cond);
|
810
|
-
}
|
811
|
-
|
812
|
-
// ARMv7 instructions for loading a 32 bit immediate in two instructions.
|
813
|
-
// This may actually emit a different mov instruction, but on an ARMv7 it
|
814
|
-
// is guaranteed to only emit one instruction.
|
815
|
-
void movw(Register reg, uint32_t immediate, Condition cond = al);
|
816
|
-
// The constant for movt should be in the range 0-0xffff.
|
817
|
-
void movt(Register reg, uint32_t immediate, Condition cond = al);
|
818
|
-
|
819
|
-
void bic(Register dst, Register src1, const Operand& src2,
|
820
|
-
SBit s = LeaveCC, Condition cond = al);
|
821
|
-
|
822
|
-
void mvn(Register dst, const Operand& src,
|
823
|
-
SBit s = LeaveCC, Condition cond = al);
|
824
|
-
|
825
|
-
// Multiply instructions
|
826
|
-
|
827
|
-
void mla(Register dst, Register src1, Register src2, Register srcA,
|
828
|
-
SBit s = LeaveCC, Condition cond = al);
|
829
|
-
|
830
|
-
void mul(Register dst, Register src1, Register src2,
|
831
|
-
SBit s = LeaveCC, Condition cond = al);
|
832
|
-
|
833
|
-
void smlal(Register dstL, Register dstH, Register src1, Register src2,
|
834
|
-
SBit s = LeaveCC, Condition cond = al);
|
835
|
-
|
836
|
-
void smull(Register dstL, Register dstH, Register src1, Register src2,
|
837
|
-
SBit s = LeaveCC, Condition cond = al);
|
838
|
-
|
839
|
-
void umlal(Register dstL, Register dstH, Register src1, Register src2,
|
840
|
-
SBit s = LeaveCC, Condition cond = al);
|
841
|
-
|
842
|
-
void umull(Register dstL, Register dstH, Register src1, Register src2,
|
843
|
-
SBit s = LeaveCC, Condition cond = al);
|
844
|
-
|
845
|
-
// Miscellaneous arithmetic instructions
|
846
|
-
|
847
|
-
void clz(Register dst, Register src, Condition cond = al); // v5 and above
|
848
|
-
|
849
|
-
// Saturating instructions. v6 and above.
|
850
|
-
|
851
|
-
// Unsigned saturate.
|
852
|
-
//
|
853
|
-
// Saturate an optionally shifted signed value to an unsigned range.
|
854
|
-
//
|
855
|
-
// usat dst, #satpos, src
|
856
|
-
// usat dst, #satpos, src, lsl #sh
|
857
|
-
// usat dst, #satpos, src, asr #sh
|
858
|
-
//
|
859
|
-
// Register dst will contain:
|
860
|
-
//
|
861
|
-
// 0, if s < 0
|
862
|
-
// (1 << satpos) - 1, if s > ((1 << satpos) - 1)
|
863
|
-
// s, otherwise
|
864
|
-
//
|
865
|
-
// where s is the contents of src after shifting (if used.)
|
866
|
-
void usat(Register dst, int satpos, const Operand& src, Condition cond = al);
|
867
|
-
|
868
|
-
// Bitfield manipulation instructions. v7 and above.
|
869
|
-
|
870
|
-
void ubfx(Register dst, Register src, int lsb, int width,
|
871
|
-
Condition cond = al);
|
872
|
-
|
873
|
-
void sbfx(Register dst, Register src, int lsb, int width,
|
874
|
-
Condition cond = al);
|
875
|
-
|
876
|
-
void bfc(Register dst, int lsb, int width, Condition cond = al);
|
877
|
-
|
878
|
-
void bfi(Register dst, Register src, int lsb, int width,
|
879
|
-
Condition cond = al);
|
880
|
-
|
881
|
-
// Status register access instructions
|
882
|
-
|
883
|
-
void mrs(Register dst, SRegister s, Condition cond = al);
|
884
|
-
void msr(SRegisterFieldMask fields, const Operand& src, Condition cond = al);
|
885
|
-
|
886
|
-
// Load/Store instructions
|
887
|
-
void ldr(Register dst, const MemOperand& src, Condition cond = al);
|
888
|
-
void str(Register src, const MemOperand& dst, Condition cond = al);
|
889
|
-
void ldrb(Register dst, const MemOperand& src, Condition cond = al);
|
890
|
-
void strb(Register src, const MemOperand& dst, Condition cond = al);
|
891
|
-
void ldrh(Register dst, const MemOperand& src, Condition cond = al);
|
892
|
-
void strh(Register src, const MemOperand& dst, Condition cond = al);
|
893
|
-
void ldrsb(Register dst, const MemOperand& src, Condition cond = al);
|
894
|
-
void ldrsh(Register dst, const MemOperand& src, Condition cond = al);
|
895
|
-
void ldrd(Register dst1,
|
896
|
-
Register dst2,
|
897
|
-
const MemOperand& src, Condition cond = al);
|
898
|
-
void strd(Register src1,
|
899
|
-
Register src2,
|
900
|
-
const MemOperand& dst, Condition cond = al);
|
901
|
-
|
902
|
-
// Load/Store multiple instructions
|
903
|
-
void ldm(BlockAddrMode am, Register base, RegList dst, Condition cond = al);
|
904
|
-
void stm(BlockAddrMode am, Register base, RegList src, Condition cond = al);
|
905
|
-
|
906
|
-
// Exception-generating instructions and debugging support
|
907
|
-
void stop(const char* msg,
|
908
|
-
Condition cond = al,
|
909
|
-
int32_t code = kDefaultStopCode);
|
910
|
-
|
911
|
-
void bkpt(uint32_t imm16); // v5 and above
|
912
|
-
void svc(uint32_t imm24, Condition cond = al);
|
913
|
-
|
914
|
-
// Coprocessor instructions
|
915
|
-
|
916
|
-
void cdp(Coprocessor coproc, int opcode_1,
|
917
|
-
CRegister crd, CRegister crn, CRegister crm,
|
918
|
-
int opcode_2, Condition cond = al);
|
919
|
-
|
920
|
-
void cdp2(Coprocessor coproc, int opcode_1,
|
921
|
-
CRegister crd, CRegister crn, CRegister crm,
|
922
|
-
int opcode_2); // v5 and above
|
923
|
-
|
924
|
-
void mcr(Coprocessor coproc, int opcode_1,
|
925
|
-
Register rd, CRegister crn, CRegister crm,
|
926
|
-
int opcode_2 = 0, Condition cond = al);
|
927
|
-
|
928
|
-
void mcr2(Coprocessor coproc, int opcode_1,
|
929
|
-
Register rd, CRegister crn, CRegister crm,
|
930
|
-
int opcode_2 = 0); // v5 and above
|
931
|
-
|
932
|
-
void mrc(Coprocessor coproc, int opcode_1,
|
933
|
-
Register rd, CRegister crn, CRegister crm,
|
934
|
-
int opcode_2 = 0, Condition cond = al);
|
935
|
-
|
936
|
-
void mrc2(Coprocessor coproc, int opcode_1,
|
937
|
-
Register rd, CRegister crn, CRegister crm,
|
938
|
-
int opcode_2 = 0); // v5 and above
|
939
|
-
|
940
|
-
void ldc(Coprocessor coproc, CRegister crd, const MemOperand& src,
|
941
|
-
LFlag l = Short, Condition cond = al);
|
942
|
-
void ldc(Coprocessor coproc, CRegister crd, Register base, int option,
|
943
|
-
LFlag l = Short, Condition cond = al);
|
944
|
-
|
945
|
-
void ldc2(Coprocessor coproc, CRegister crd, const MemOperand& src,
|
946
|
-
LFlag l = Short); // v5 and above
|
947
|
-
void ldc2(Coprocessor coproc, CRegister crd, Register base, int option,
|
948
|
-
LFlag l = Short); // v5 and above
|
949
|
-
|
950
|
-
void stc(Coprocessor coproc, CRegister crd, const MemOperand& dst,
|
951
|
-
LFlag l = Short, Condition cond = al);
|
952
|
-
void stc(Coprocessor coproc, CRegister crd, Register base, int option,
|
953
|
-
LFlag l = Short, Condition cond = al);
|
954
|
-
|
955
|
-
void stc2(Coprocessor coproc, CRegister crd, const MemOperand& dst,
|
956
|
-
LFlag l = Short); // v5 and above
|
957
|
-
void stc2(Coprocessor coproc, CRegister crd, Register base, int option,
|
958
|
-
LFlag l = Short); // v5 and above
|
959
|
-
|
960
|
-
// Support for VFP.
|
961
|
-
// All these APIs support S0 to S31 and D0 to D15.
|
962
|
-
// Currently these APIs do not support extended D registers, i.e, D16 to D31.
|
963
|
-
// However, some simple modifications can allow
|
964
|
-
// these APIs to support D16 to D31.
|
965
|
-
|
966
|
-
void vldr(const DwVfpRegister dst,
|
967
|
-
const Register base,
|
968
|
-
int offset,
|
969
|
-
const Condition cond = al);
|
970
|
-
void vldr(const DwVfpRegister dst,
|
971
|
-
const MemOperand& src,
|
972
|
-
const Condition cond = al);
|
973
|
-
|
974
|
-
void vldr(const SwVfpRegister dst,
|
975
|
-
const Register base,
|
976
|
-
int offset,
|
977
|
-
const Condition cond = al);
|
978
|
-
void vldr(const SwVfpRegister dst,
|
979
|
-
const MemOperand& src,
|
980
|
-
const Condition cond = al);
|
981
|
-
|
982
|
-
void vstr(const DwVfpRegister src,
|
983
|
-
const Register base,
|
984
|
-
int offset,
|
985
|
-
const Condition cond = al);
|
986
|
-
void vstr(const DwVfpRegister src,
|
987
|
-
const MemOperand& dst,
|
988
|
-
const Condition cond = al);
|
989
|
-
|
990
|
-
void vstr(const SwVfpRegister src,
|
991
|
-
const Register base,
|
992
|
-
int offset,
|
993
|
-
const Condition cond = al);
|
994
|
-
void vstr(const SwVfpRegister src,
|
995
|
-
const MemOperand& dst,
|
996
|
-
const Condition cond = al);
|
997
|
-
|
998
|
-
void vldm(BlockAddrMode am,
|
999
|
-
Register base,
|
1000
|
-
DwVfpRegister first,
|
1001
|
-
DwVfpRegister last,
|
1002
|
-
Condition cond = al);
|
1003
|
-
|
1004
|
-
void vstm(BlockAddrMode am,
|
1005
|
-
Register base,
|
1006
|
-
DwVfpRegister first,
|
1007
|
-
DwVfpRegister last,
|
1008
|
-
Condition cond = al);
|
1009
|
-
|
1010
|
-
void vldm(BlockAddrMode am,
|
1011
|
-
Register base,
|
1012
|
-
SwVfpRegister first,
|
1013
|
-
SwVfpRegister last,
|
1014
|
-
Condition cond = al);
|
1015
|
-
|
1016
|
-
void vstm(BlockAddrMode am,
|
1017
|
-
Register base,
|
1018
|
-
SwVfpRegister first,
|
1019
|
-
SwVfpRegister last,
|
1020
|
-
Condition cond = al);
|
1021
|
-
|
1022
|
-
void vmov(const DwVfpRegister dst,
|
1023
|
-
double imm,
|
1024
|
-
const Condition cond = al);
|
1025
|
-
void vmov(const SwVfpRegister dst,
|
1026
|
-
const SwVfpRegister src,
|
1027
|
-
const Condition cond = al);
|
1028
|
-
void vmov(const DwVfpRegister dst,
|
1029
|
-
const DwVfpRegister src,
|
1030
|
-
const Condition cond = al);
|
1031
|
-
void vmov(const DwVfpRegister dst,
|
1032
|
-
const Register src1,
|
1033
|
-
const Register src2,
|
1034
|
-
const Condition cond = al);
|
1035
|
-
void vmov(const Register dst1,
|
1036
|
-
const Register dst2,
|
1037
|
-
const DwVfpRegister src,
|
1038
|
-
const Condition cond = al);
|
1039
|
-
void vmov(const SwVfpRegister dst,
|
1040
|
-
const Register src,
|
1041
|
-
const Condition cond = al);
|
1042
|
-
void vmov(const Register dst,
|
1043
|
-
const SwVfpRegister src,
|
1044
|
-
const Condition cond = al);
|
1045
|
-
void vcvt_f64_s32(const DwVfpRegister dst,
|
1046
|
-
const SwVfpRegister src,
|
1047
|
-
VFPConversionMode mode = kDefaultRoundToZero,
|
1048
|
-
const Condition cond = al);
|
1049
|
-
void vcvt_f32_s32(const SwVfpRegister dst,
|
1050
|
-
const SwVfpRegister src,
|
1051
|
-
VFPConversionMode mode = kDefaultRoundToZero,
|
1052
|
-
const Condition cond = al);
|
1053
|
-
void vcvt_f64_u32(const DwVfpRegister dst,
|
1054
|
-
const SwVfpRegister src,
|
1055
|
-
VFPConversionMode mode = kDefaultRoundToZero,
|
1056
|
-
const Condition cond = al);
|
1057
|
-
void vcvt_s32_f64(const SwVfpRegister dst,
|
1058
|
-
const DwVfpRegister src,
|
1059
|
-
VFPConversionMode mode = kDefaultRoundToZero,
|
1060
|
-
const Condition cond = al);
|
1061
|
-
void vcvt_u32_f64(const SwVfpRegister dst,
|
1062
|
-
const DwVfpRegister src,
|
1063
|
-
VFPConversionMode mode = kDefaultRoundToZero,
|
1064
|
-
const Condition cond = al);
|
1065
|
-
void vcvt_f64_f32(const DwVfpRegister dst,
|
1066
|
-
const SwVfpRegister src,
|
1067
|
-
VFPConversionMode mode = kDefaultRoundToZero,
|
1068
|
-
const Condition cond = al);
|
1069
|
-
void vcvt_f32_f64(const SwVfpRegister dst,
|
1070
|
-
const DwVfpRegister src,
|
1071
|
-
VFPConversionMode mode = kDefaultRoundToZero,
|
1072
|
-
const Condition cond = al);
|
1073
|
-
|
1074
|
-
void vneg(const DwVfpRegister dst,
|
1075
|
-
const DwVfpRegister src,
|
1076
|
-
const Condition cond = al);
|
1077
|
-
void vabs(const DwVfpRegister dst,
|
1078
|
-
const DwVfpRegister src,
|
1079
|
-
const Condition cond = al);
|
1080
|
-
void vadd(const DwVfpRegister dst,
|
1081
|
-
const DwVfpRegister src1,
|
1082
|
-
const DwVfpRegister src2,
|
1083
|
-
const Condition cond = al);
|
1084
|
-
void vsub(const DwVfpRegister dst,
|
1085
|
-
const DwVfpRegister src1,
|
1086
|
-
const DwVfpRegister src2,
|
1087
|
-
const Condition cond = al);
|
1088
|
-
void vmul(const DwVfpRegister dst,
|
1089
|
-
const DwVfpRegister src1,
|
1090
|
-
const DwVfpRegister src2,
|
1091
|
-
const Condition cond = al);
|
1092
|
-
void vdiv(const DwVfpRegister dst,
|
1093
|
-
const DwVfpRegister src1,
|
1094
|
-
const DwVfpRegister src2,
|
1095
|
-
const Condition cond = al);
|
1096
|
-
void vcmp(const DwVfpRegister src1,
|
1097
|
-
const DwVfpRegister src2,
|
1098
|
-
const Condition cond = al);
|
1099
|
-
void vcmp(const DwVfpRegister src1,
|
1100
|
-
const double src2,
|
1101
|
-
const Condition cond = al);
|
1102
|
-
void vmrs(const Register dst,
|
1103
|
-
const Condition cond = al);
|
1104
|
-
void vmsr(const Register dst,
|
1105
|
-
const Condition cond = al);
|
1106
|
-
void vsqrt(const DwVfpRegister dst,
|
1107
|
-
const DwVfpRegister src,
|
1108
|
-
const Condition cond = al);
|
1109
|
-
|
1110
|
-
// Pseudo instructions
|
1111
|
-
|
1112
|
-
// Different nop operations are used by the code generator to detect certain
|
1113
|
-
// states of the generated code.
|
1114
|
-
enum NopMarkerTypes {
|
1115
|
-
NON_MARKING_NOP = 0,
|
1116
|
-
DEBUG_BREAK_NOP,
|
1117
|
-
// IC markers.
|
1118
|
-
PROPERTY_ACCESS_INLINED,
|
1119
|
-
PROPERTY_ACCESS_INLINED_CONTEXT,
|
1120
|
-
PROPERTY_ACCESS_INLINED_CONTEXT_DONT_DELETE,
|
1121
|
-
// Helper values.
|
1122
|
-
LAST_CODE_MARKER,
|
1123
|
-
FIRST_IC_MARKER = PROPERTY_ACCESS_INLINED
|
1124
|
-
};
|
1125
|
-
|
1126
|
-
void nop(int type = 0); // 0 is the default non-marking type.
|
1127
|
-
|
1128
|
-
void push(Register src, Condition cond = al) {
|
1129
|
-
str(src, MemOperand(sp, 4, NegPreIndex), cond);
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
void pop(Register dst, Condition cond = al) {
|
1133
|
-
ldr(dst, MemOperand(sp, 4, PostIndex), cond);
|
1134
|
-
}
|
1135
|
-
|
1136
|
-
void pop() {
|
1137
|
-
add(sp, sp, Operand(kPointerSize));
|
1138
|
-
}
|
1139
|
-
|
1140
|
-
// Jump unconditionally to given label.
|
1141
|
-
void jmp(Label* L) { b(L, al); }
|
1142
|
-
|
1143
|
-
// Check the code size generated from label to here.
|
1144
|
-
int InstructionsGeneratedSince(Label* l) {
|
1145
|
-
return (pc_offset() - l->pos()) / kInstrSize;
|
1146
|
-
}
|
1147
|
-
|
1148
|
-
// Check whether an immediate fits an addressing mode 1 instruction.
|
1149
|
-
bool ImmediateFitsAddrMode1Instruction(int32_t imm32);
|
1150
|
-
|
1151
|
-
// Class for scoping postponing the constant pool generation.
|
1152
|
-
class BlockConstPoolScope {
|
1153
|
-
public:
|
1154
|
-
explicit BlockConstPoolScope(Assembler* assem) : assem_(assem) {
|
1155
|
-
assem_->StartBlockConstPool();
|
1156
|
-
}
|
1157
|
-
~BlockConstPoolScope() {
|
1158
|
-
assem_->EndBlockConstPool();
|
1159
|
-
}
|
1160
|
-
|
1161
|
-
private:
|
1162
|
-
Assembler* assem_;
|
1163
|
-
|
1164
|
-
DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope);
|
1165
|
-
};
|
1166
|
-
|
1167
|
-
// Postpone the generation of the constant pool for the specified number of
|
1168
|
-
// instructions.
|
1169
|
-
void BlockConstPoolFor(int instructions);
|
1170
|
-
|
1171
|
-
// Debugging
|
1172
|
-
|
1173
|
-
// Mark address of the ExitJSFrame code.
|
1174
|
-
void RecordJSReturn();
|
1175
|
-
|
1176
|
-
// Mark address of a debug break slot.
|
1177
|
-
void RecordDebugBreakSlot();
|
1178
|
-
|
1179
|
-
// Record a comment relocation entry that can be used by a disassembler.
|
1180
|
-
// Use --code-comments to enable.
|
1181
|
-
void RecordComment(const char* msg);
|
1182
|
-
|
1183
|
-
// Writes a single byte or word of data in the code stream. Used
|
1184
|
-
// for inline tables, e.g., jump-tables. The constant pool should be
|
1185
|
-
// emitted before any use of db and dd to ensure that constant pools
|
1186
|
-
// are not emitted as part of the tables generated.
|
1187
|
-
void db(uint8_t data);
|
1188
|
-
void dd(uint32_t data);
|
1189
|
-
|
1190
|
-
int pc_offset() const { return pc_ - buffer_; }
|
1191
|
-
|
1192
|
-
PositionsRecorder* positions_recorder() { return &positions_recorder_; }
|
1193
|
-
|
1194
|
-
bool can_peephole_optimize(int instructions) {
|
1195
|
-
if (!allow_peephole_optimization_) return false;
|
1196
|
-
if (last_bound_pos_ > pc_offset() - instructions * kInstrSize) return false;
|
1197
|
-
return reloc_info_writer.last_pc() <= pc_ - instructions * kInstrSize;
|
1198
|
-
}
|
1199
|
-
|
1200
|
-
// Read/patch instructions
|
1201
|
-
static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); }
|
1202
|
-
static void instr_at_put(byte* pc, Instr instr) {
|
1203
|
-
*reinterpret_cast<Instr*>(pc) = instr;
|
1204
|
-
}
|
1205
|
-
static Condition GetCondition(Instr instr);
|
1206
|
-
static bool IsBranch(Instr instr);
|
1207
|
-
static int GetBranchOffset(Instr instr);
|
1208
|
-
static bool IsLdrRegisterImmediate(Instr instr);
|
1209
|
-
static int GetLdrRegisterImmediateOffset(Instr instr);
|
1210
|
-
static Instr SetLdrRegisterImmediateOffset(Instr instr, int offset);
|
1211
|
-
static bool IsStrRegisterImmediate(Instr instr);
|
1212
|
-
static Instr SetStrRegisterImmediateOffset(Instr instr, int offset);
|
1213
|
-
static bool IsAddRegisterImmediate(Instr instr);
|
1214
|
-
static Instr SetAddRegisterImmediateOffset(Instr instr, int offset);
|
1215
|
-
static Register GetRd(Instr instr);
|
1216
|
-
static Register GetRn(Instr instr);
|
1217
|
-
static Register GetRm(Instr instr);
|
1218
|
-
static bool IsPush(Instr instr);
|
1219
|
-
static bool IsPop(Instr instr);
|
1220
|
-
static bool IsStrRegFpOffset(Instr instr);
|
1221
|
-
static bool IsLdrRegFpOffset(Instr instr);
|
1222
|
-
static bool IsStrRegFpNegOffset(Instr instr);
|
1223
|
-
static bool IsLdrRegFpNegOffset(Instr instr);
|
1224
|
-
static bool IsLdrPcImmediateOffset(Instr instr);
|
1225
|
-
static bool IsTstImmediate(Instr instr);
|
1226
|
-
static bool IsCmpRegister(Instr instr);
|
1227
|
-
static bool IsCmpImmediate(Instr instr);
|
1228
|
-
static Register GetCmpImmediateRegister(Instr instr);
|
1229
|
-
static int GetCmpImmediateRawImmediate(Instr instr);
|
1230
|
-
static bool IsNop(Instr instr, int type = NON_MARKING_NOP);
|
1231
|
-
|
1232
|
-
// Check if is time to emit a constant pool for pending reloc info entries
|
1233
|
-
void CheckConstPool(bool force_emit, bool require_jump);
|
1234
|
-
|
1235
|
-
protected:
|
1236
|
-
bool emit_debug_code() const { return emit_debug_code_; }
|
1237
|
-
|
1238
|
-
int buffer_space() const { return reloc_info_writer.pos() - pc_; }
|
1239
|
-
|
1240
|
-
// Read/patch instructions
|
1241
|
-
Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
|
1242
|
-
void instr_at_put(int pos, Instr instr) {
|
1243
|
-
*reinterpret_cast<Instr*>(buffer_ + pos) = instr;
|
1244
|
-
}
|
1245
|
-
|
1246
|
-
// Decode branch instruction at pos and return branch target pos
|
1247
|
-
int target_at(int pos);
|
1248
|
-
|
1249
|
-
// Patch branch instruction at pos to branch to given branch target pos
|
1250
|
-
void target_at_put(int pos, int target_pos);
|
1251
|
-
|
1252
|
-
// Block the emission of the constant pool before pc_offset
|
1253
|
-
void BlockConstPoolBefore(int pc_offset) {
|
1254
|
-
if (no_const_pool_before_ < pc_offset) no_const_pool_before_ = pc_offset;
|
1255
|
-
}
|
1256
|
-
|
1257
|
-
void StartBlockConstPool() {
|
1258
|
-
const_pool_blocked_nesting_++;
|
1259
|
-
}
|
1260
|
-
void EndBlockConstPool() {
|
1261
|
-
const_pool_blocked_nesting_--;
|
1262
|
-
}
|
1263
|
-
bool is_const_pool_blocked() const { return const_pool_blocked_nesting_ > 0; }
|
1264
|
-
|
1265
|
-
private:
|
1266
|
-
// Code buffer:
|
1267
|
-
// The buffer into which code and relocation info are generated.
|
1268
|
-
byte* buffer_;
|
1269
|
-
int buffer_size_;
|
1270
|
-
// True if the assembler owns the buffer, false if buffer is external.
|
1271
|
-
bool own_buffer_;
|
1272
|
-
|
1273
|
-
// Buffer size and constant pool distance are checked together at regular
|
1274
|
-
// intervals of kBufferCheckInterval emitted bytes
|
1275
|
-
static const int kBufferCheckInterval = 1*KB/2;
|
1276
|
-
int next_buffer_check_; // pc offset of next buffer check
|
1277
|
-
|
1278
|
-
// Code generation
|
1279
|
-
// The relocation writer's position is at least kGap bytes below the end of
|
1280
|
-
// the generated instructions. This is so that multi-instruction sequences do
|
1281
|
-
// not have to check for overflow. The same is true for writes of large
|
1282
|
-
// relocation info entries.
|
1283
|
-
static const int kGap = 32;
|
1284
|
-
byte* pc_; // the program counter; moves forward
|
1285
|
-
|
1286
|
-
// Constant pool generation
|
1287
|
-
// Pools are emitted in the instruction stream, preferably after unconditional
|
1288
|
-
// jumps or after returns from functions (in dead code locations).
|
1289
|
-
// If a long code sequence does not contain unconditional jumps, it is
|
1290
|
-
// necessary to emit the constant pool before the pool gets too far from the
|
1291
|
-
// location it is accessed from. In this case, we emit a jump over the emitted
|
1292
|
-
// constant pool.
|
1293
|
-
// Constants in the pool may be addresses of functions that gets relocated;
|
1294
|
-
// if so, a relocation info entry is associated to the constant pool entry.
|
1295
|
-
|
1296
|
-
// Repeated checking whether the constant pool should be emitted is rather
|
1297
|
-
// expensive. By default we only check again once a number of instructions
|
1298
|
-
// has been generated. That also means that the sizing of the buffers is not
|
1299
|
-
// an exact science, and that we rely on some slop to not overrun buffers.
|
1300
|
-
static const int kCheckConstIntervalInst = 32;
|
1301
|
-
static const int kCheckConstInterval = kCheckConstIntervalInst * kInstrSize;
|
1302
|
-
|
1303
|
-
|
1304
|
-
// Pools are emitted after function return and in dead code at (more or less)
|
1305
|
-
// regular intervals of kDistBetweenPools bytes
|
1306
|
-
static const int kDistBetweenPools = 1*KB;
|
1307
|
-
|
1308
|
-
// Constants in pools are accessed via pc relative addressing, which can
|
1309
|
-
// reach +/-4KB thereby defining a maximum distance between the instruction
|
1310
|
-
// and the accessed constant. We satisfy this constraint by limiting the
|
1311
|
-
// distance between pools.
|
1312
|
-
static const int kMaxDistBetweenPools = 4*KB - 2*kBufferCheckInterval;
|
1313
|
-
|
1314
|
-
// Emission of the constant pool may be blocked in some code sequences.
|
1315
|
-
int const_pool_blocked_nesting_; // Block emission if this is not zero.
|
1316
|
-
int no_const_pool_before_; // Block emission before this pc offset.
|
1317
|
-
|
1318
|
-
// Keep track of the last emitted pool to guarantee a maximal distance
|
1319
|
-
int last_const_pool_end_; // pc offset following the last constant pool
|
1320
|
-
|
1321
|
-
// Relocation info generation
|
1322
|
-
// Each relocation is encoded as a variable size value
|
1323
|
-
static const int kMaxRelocSize = RelocInfoWriter::kMaxSize;
|
1324
|
-
RelocInfoWriter reloc_info_writer;
|
1325
|
-
// Relocation info records are also used during code generation as temporary
|
1326
|
-
// containers for constants and code target addresses until they are emitted
|
1327
|
-
// to the constant pool. These pending relocation info records are temporarily
|
1328
|
-
// stored in a separate buffer until a constant pool is emitted.
|
1329
|
-
// If every instruction in a long sequence is accessing the pool, we need one
|
1330
|
-
// pending relocation entry per instruction.
|
1331
|
-
static const int kMaxNumPRInfo = kMaxDistBetweenPools/kInstrSize;
|
1332
|
-
RelocInfo prinfo_[kMaxNumPRInfo]; // the buffer of pending relocation info
|
1333
|
-
int num_prinfo_; // number of pending reloc info entries in the buffer
|
1334
|
-
|
1335
|
-
// The bound position, before this we cannot do instruction elimination.
|
1336
|
-
int last_bound_pos_;
|
1337
|
-
|
1338
|
-
// Code emission
|
1339
|
-
inline void CheckBuffer();
|
1340
|
-
void GrowBuffer();
|
1341
|
-
inline void emit(Instr x);
|
1342
|
-
|
1343
|
-
// Instruction generation
|
1344
|
-
void addrmod1(Instr instr, Register rn, Register rd, const Operand& x);
|
1345
|
-
void addrmod2(Instr instr, Register rd, const MemOperand& x);
|
1346
|
-
void addrmod3(Instr instr, Register rd, const MemOperand& x);
|
1347
|
-
void addrmod4(Instr instr, Register rn, RegList rl);
|
1348
|
-
void addrmod5(Instr instr, CRegister crd, const MemOperand& x);
|
1349
|
-
|
1350
|
-
// Labels
|
1351
|
-
void print(Label* L);
|
1352
|
-
void bind_to(Label* L, int pos);
|
1353
|
-
void link_to(Label* L, Label* appendix);
|
1354
|
-
void next(Label* L);
|
1355
|
-
|
1356
|
-
// Record reloc info for current pc_
|
1357
|
-
void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
|
1358
|
-
|
1359
|
-
friend class RegExpMacroAssemblerARM;
|
1360
|
-
friend class RelocInfo;
|
1361
|
-
friend class CodePatcher;
|
1362
|
-
friend class BlockConstPoolScope;
|
1363
|
-
|
1364
|
-
PositionsRecorder positions_recorder_;
|
1365
|
-
bool allow_peephole_optimization_;
|
1366
|
-
bool emit_debug_code_;
|
1367
|
-
friend class PositionsRecorder;
|
1368
|
-
friend class EnsureSpace;
|
1369
|
-
};
|
1370
|
-
|
1371
|
-
|
1372
|
-
class EnsureSpace BASE_EMBEDDED {
|
1373
|
-
public:
|
1374
|
-
explicit EnsureSpace(Assembler* assembler) {
|
1375
|
-
assembler->CheckBuffer();
|
1376
|
-
}
|
1377
|
-
};
|
1378
|
-
|
1379
|
-
|
1380
|
-
} } // namespace v8::internal
|
1381
|
-
|
1382
|
-
#endif // V8_ARM_ASSEMBLER_ARM_H_
|