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.

Files changed (771) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +0 -11
  3. data/ext/v8/extconf.rb +9 -9
  4. data/ext/v8/v8_external.cpp +40 -10
  5. data/lib/v8/cli.rb +2 -1
  6. data/lib/v8/version.rb +1 -1
  7. data/spec/redjs/.gitignore +1 -0
  8. data/therubyracer.gemspec +2 -3
  9. metadata +33 -779
  10. data/ext/v8/upstream/Makefile +0 -38
  11. data/ext/v8/upstream/detect_cpu.rb +0 -27
  12. data/ext/v8/upstream/fpic-on-linux-amd64.patch +0 -13
  13. data/ext/v8/upstream/scons/CHANGES.txt +0 -5183
  14. data/ext/v8/upstream/scons/LICENSE.txt +0 -20
  15. data/ext/v8/upstream/scons/MANIFEST +0 -202
  16. data/ext/v8/upstream/scons/PKG-INFO +0 -13
  17. data/ext/v8/upstream/scons/README.txt +0 -273
  18. data/ext/v8/upstream/scons/RELEASE.txt +0 -1040
  19. data/ext/v8/upstream/scons/engine/SCons/Action.py +0 -1256
  20. data/ext/v8/upstream/scons/engine/SCons/Builder.py +0 -868
  21. data/ext/v8/upstream/scons/engine/SCons/CacheDir.py +0 -217
  22. data/ext/v8/upstream/scons/engine/SCons/Conftest.py +0 -794
  23. data/ext/v8/upstream/scons/engine/SCons/Debug.py +0 -237
  24. data/ext/v8/upstream/scons/engine/SCons/Defaults.py +0 -485
  25. data/ext/v8/upstream/scons/engine/SCons/Environment.py +0 -2327
  26. data/ext/v8/upstream/scons/engine/SCons/Errors.py +0 -207
  27. data/ext/v8/upstream/scons/engine/SCons/Executor.py +0 -636
  28. data/ext/v8/upstream/scons/engine/SCons/Job.py +0 -435
  29. data/ext/v8/upstream/scons/engine/SCons/Memoize.py +0 -292
  30. data/ext/v8/upstream/scons/engine/SCons/Node/Alias.py +0 -153
  31. data/ext/v8/upstream/scons/engine/SCons/Node/FS.py +0 -3220
  32. data/ext/v8/upstream/scons/engine/SCons/Node/Python.py +0 -128
  33. data/ext/v8/upstream/scons/engine/SCons/Node/__init__.py +0 -1341
  34. data/ext/v8/upstream/scons/engine/SCons/Options/BoolOption.py +0 -50
  35. data/ext/v8/upstream/scons/engine/SCons/Options/EnumOption.py +0 -50
  36. data/ext/v8/upstream/scons/engine/SCons/Options/ListOption.py +0 -50
  37. data/ext/v8/upstream/scons/engine/SCons/Options/PackageOption.py +0 -50
  38. data/ext/v8/upstream/scons/engine/SCons/Options/PathOption.py +0 -76
  39. data/ext/v8/upstream/scons/engine/SCons/Options/__init__.py +0 -74
  40. data/ext/v8/upstream/scons/engine/SCons/PathList.py +0 -232
  41. data/ext/v8/upstream/scons/engine/SCons/Platform/__init__.py +0 -236
  42. data/ext/v8/upstream/scons/engine/SCons/Platform/aix.py +0 -70
  43. data/ext/v8/upstream/scons/engine/SCons/Platform/cygwin.py +0 -55
  44. data/ext/v8/upstream/scons/engine/SCons/Platform/darwin.py +0 -46
  45. data/ext/v8/upstream/scons/engine/SCons/Platform/hpux.py +0 -46
  46. data/ext/v8/upstream/scons/engine/SCons/Platform/irix.py +0 -44
  47. data/ext/v8/upstream/scons/engine/SCons/Platform/os2.py +0 -58
  48. data/ext/v8/upstream/scons/engine/SCons/Platform/posix.py +0 -264
  49. data/ext/v8/upstream/scons/engine/SCons/Platform/sunos.py +0 -50
  50. data/ext/v8/upstream/scons/engine/SCons/Platform/win32.py +0 -386
  51. data/ext/v8/upstream/scons/engine/SCons/SConf.py +0 -1038
  52. data/ext/v8/upstream/scons/engine/SCons/SConsign.py +0 -381
  53. data/ext/v8/upstream/scons/engine/SCons/Scanner/C.py +0 -132
  54. data/ext/v8/upstream/scons/engine/SCons/Scanner/D.py +0 -74
  55. data/ext/v8/upstream/scons/engine/SCons/Scanner/Dir.py +0 -111
  56. data/ext/v8/upstream/scons/engine/SCons/Scanner/Fortran.py +0 -320
  57. data/ext/v8/upstream/scons/engine/SCons/Scanner/IDL.py +0 -48
  58. data/ext/v8/upstream/scons/engine/SCons/Scanner/LaTeX.py +0 -378
  59. data/ext/v8/upstream/scons/engine/SCons/Scanner/Prog.py +0 -103
  60. data/ext/v8/upstream/scons/engine/SCons/Scanner/RC.py +0 -55
  61. data/ext/v8/upstream/scons/engine/SCons/Scanner/__init__.py +0 -415
  62. data/ext/v8/upstream/scons/engine/SCons/Script/Interactive.py +0 -386
  63. data/ext/v8/upstream/scons/engine/SCons/Script/Main.py +0 -1360
  64. data/ext/v8/upstream/scons/engine/SCons/Script/SConsOptions.py +0 -944
  65. data/ext/v8/upstream/scons/engine/SCons/Script/SConscript.py +0 -642
  66. data/ext/v8/upstream/scons/engine/SCons/Script/__init__.py +0 -414
  67. data/ext/v8/upstream/scons/engine/SCons/Sig.py +0 -63
  68. data/ext/v8/upstream/scons/engine/SCons/Subst.py +0 -911
  69. data/ext/v8/upstream/scons/engine/SCons/Taskmaster.py +0 -1030
  70. data/ext/v8/upstream/scons/engine/SCons/Tool/386asm.py +0 -61
  71. data/ext/v8/upstream/scons/engine/SCons/Tool/BitKeeper.py +0 -65
  72. data/ext/v8/upstream/scons/engine/SCons/Tool/CVS.py +0 -73
  73. data/ext/v8/upstream/scons/engine/SCons/Tool/FortranCommon.py +0 -247
  74. data/ext/v8/upstream/scons/engine/SCons/Tool/JavaCommon.py +0 -324
  75. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/__init__.py +0 -56
  76. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/arch.py +0 -61
  77. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/common.py +0 -210
  78. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/netframework.py +0 -84
  79. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/sdk.py +0 -321
  80. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vc.py +0 -367
  81. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vs.py +0 -497
  82. data/ext/v8/upstream/scons/engine/SCons/Tool/Perforce.py +0 -104
  83. data/ext/v8/upstream/scons/engine/SCons/Tool/PharLapCommon.py +0 -138
  84. data/ext/v8/upstream/scons/engine/SCons/Tool/RCS.py +0 -64
  85. data/ext/v8/upstream/scons/engine/SCons/Tool/SCCS.py +0 -64
  86. data/ext/v8/upstream/scons/engine/SCons/Tool/Subversion.py +0 -71
  87. data/ext/v8/upstream/scons/engine/SCons/Tool/__init__.py +0 -675
  88. data/ext/v8/upstream/scons/engine/SCons/Tool/aixc++.py +0 -82
  89. data/ext/v8/upstream/scons/engine/SCons/Tool/aixcc.py +0 -74
  90. data/ext/v8/upstream/scons/engine/SCons/Tool/aixf77.py +0 -80
  91. data/ext/v8/upstream/scons/engine/SCons/Tool/aixlink.py +0 -76
  92. data/ext/v8/upstream/scons/engine/SCons/Tool/applelink.py +0 -71
  93. data/ext/v8/upstream/scons/engine/SCons/Tool/ar.py +0 -63
  94. data/ext/v8/upstream/scons/engine/SCons/Tool/as.py +0 -78
  95. data/ext/v8/upstream/scons/engine/SCons/Tool/bcc32.py +0 -82
  96. data/ext/v8/upstream/scons/engine/SCons/Tool/c++.py +0 -99
  97. data/ext/v8/upstream/scons/engine/SCons/Tool/cc.py +0 -114
  98. data/ext/v8/upstream/scons/engine/SCons/Tool/cvf.py +0 -58
  99. data/ext/v8/upstream/scons/engine/SCons/Tool/default.py +0 -50
  100. data/ext/v8/upstream/scons/engine/SCons/Tool/dmd.py +0 -224
  101. data/ext/v8/upstream/scons/engine/SCons/Tool/dvi.py +0 -64
  102. data/ext/v8/upstream/scons/engine/SCons/Tool/dvipdf.py +0 -125
  103. data/ext/v8/upstream/scons/engine/SCons/Tool/dvips.py +0 -94
  104. data/ext/v8/upstream/scons/engine/SCons/Tool/f77.py +0 -62
  105. data/ext/v8/upstream/scons/engine/SCons/Tool/f90.py +0 -62
  106. data/ext/v8/upstream/scons/engine/SCons/Tool/f95.py +0 -63
  107. data/ext/v8/upstream/scons/engine/SCons/Tool/filesystem.py +0 -98
  108. data/ext/v8/upstream/scons/engine/SCons/Tool/fortran.py +0 -63
  109. data/ext/v8/upstream/scons/engine/SCons/Tool/g++.py +0 -90
  110. data/ext/v8/upstream/scons/engine/SCons/Tool/g77.py +0 -73
  111. data/ext/v8/upstream/scons/engine/SCons/Tool/gas.py +0 -53
  112. data/ext/v8/upstream/scons/engine/SCons/Tool/gcc.py +0 -80
  113. data/ext/v8/upstream/scons/engine/SCons/Tool/gfortran.py +0 -64
  114. data/ext/v8/upstream/scons/engine/SCons/Tool/gnulink.py +0 -63
  115. data/ext/v8/upstream/scons/engine/SCons/Tool/gs.py +0 -81
  116. data/ext/v8/upstream/scons/engine/SCons/Tool/hpc++.py +0 -85
  117. data/ext/v8/upstream/scons/engine/SCons/Tool/hpcc.py +0 -53
  118. data/ext/v8/upstream/scons/engine/SCons/Tool/hplink.py +0 -77
  119. data/ext/v8/upstream/scons/engine/SCons/Tool/icc.py +0 -59
  120. data/ext/v8/upstream/scons/engine/SCons/Tool/icl.py +0 -52
  121. data/ext/v8/upstream/scons/engine/SCons/Tool/ifl.py +0 -72
  122. data/ext/v8/upstream/scons/engine/SCons/Tool/ifort.py +0 -90
  123. data/ext/v8/upstream/scons/engine/SCons/Tool/ilink.py +0 -59
  124. data/ext/v8/upstream/scons/engine/SCons/Tool/ilink32.py +0 -60
  125. data/ext/v8/upstream/scons/engine/SCons/Tool/install.py +0 -229
  126. data/ext/v8/upstream/scons/engine/SCons/Tool/intelc.py +0 -490
  127. data/ext/v8/upstream/scons/engine/SCons/Tool/ipkg.py +0 -71
  128. data/ext/v8/upstream/scons/engine/SCons/Tool/jar.py +0 -110
  129. data/ext/v8/upstream/scons/engine/SCons/Tool/javac.py +0 -234
  130. data/ext/v8/upstream/scons/engine/SCons/Tool/javah.py +0 -138
  131. data/ext/v8/upstream/scons/engine/SCons/Tool/latex.py +0 -79
  132. data/ext/v8/upstream/scons/engine/SCons/Tool/lex.py +0 -99
  133. data/ext/v8/upstream/scons/engine/SCons/Tool/link.py +0 -121
  134. data/ext/v8/upstream/scons/engine/SCons/Tool/linkloc.py +0 -112
  135. data/ext/v8/upstream/scons/engine/SCons/Tool/m4.py +0 -63
  136. data/ext/v8/upstream/scons/engine/SCons/Tool/masm.py +0 -77
  137. data/ext/v8/upstream/scons/engine/SCons/Tool/midl.py +0 -90
  138. data/ext/v8/upstream/scons/engine/SCons/Tool/mingw.py +0 -159
  139. data/ext/v8/upstream/scons/engine/SCons/Tool/mslib.py +0 -64
  140. data/ext/v8/upstream/scons/engine/SCons/Tool/mslink.py +0 -266
  141. data/ext/v8/upstream/scons/engine/SCons/Tool/mssdk.py +0 -50
  142. data/ext/v8/upstream/scons/engine/SCons/Tool/msvc.py +0 -269
  143. data/ext/v8/upstream/scons/engine/SCons/Tool/msvs.py +0 -1439
  144. data/ext/v8/upstream/scons/engine/SCons/Tool/mwcc.py +0 -208
  145. data/ext/v8/upstream/scons/engine/SCons/Tool/mwld.py +0 -107
  146. data/ext/v8/upstream/scons/engine/SCons/Tool/nasm.py +0 -72
  147. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/__init__.py +0 -314
  148. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/ipk.py +0 -185
  149. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/msi.py +0 -526
  150. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/rpm.py +0 -367
  151. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_tarbz2.py +0 -43
  152. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_targz.py +0 -43
  153. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_zip.py +0 -43
  154. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/tarbz2.py +0 -44
  155. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/targz.py +0 -44
  156. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/zip.py +0 -44
  157. data/ext/v8/upstream/scons/engine/SCons/Tool/pdf.py +0 -78
  158. data/ext/v8/upstream/scons/engine/SCons/Tool/pdflatex.py +0 -83
  159. data/ext/v8/upstream/scons/engine/SCons/Tool/pdftex.py +0 -108
  160. data/ext/v8/upstream/scons/engine/SCons/Tool/qt.py +0 -336
  161. data/ext/v8/upstream/scons/engine/SCons/Tool/rmic.py +0 -121
  162. data/ext/v8/upstream/scons/engine/SCons/Tool/rpcgen.py +0 -70
  163. data/ext/v8/upstream/scons/engine/SCons/Tool/rpm.py +0 -132
  164. data/ext/v8/upstream/scons/engine/SCons/Tool/sgiar.py +0 -68
  165. data/ext/v8/upstream/scons/engine/SCons/Tool/sgic++.py +0 -58
  166. data/ext/v8/upstream/scons/engine/SCons/Tool/sgicc.py +0 -53
  167. data/ext/v8/upstream/scons/engine/SCons/Tool/sgilink.py +0 -63
  168. data/ext/v8/upstream/scons/engine/SCons/Tool/sunar.py +0 -67
  169. data/ext/v8/upstream/scons/engine/SCons/Tool/sunc++.py +0 -142
  170. data/ext/v8/upstream/scons/engine/SCons/Tool/suncc.py +0 -58
  171. data/ext/v8/upstream/scons/engine/SCons/Tool/sunf77.py +0 -63
  172. data/ext/v8/upstream/scons/engine/SCons/Tool/sunf90.py +0 -64
  173. data/ext/v8/upstream/scons/engine/SCons/Tool/sunf95.py +0 -64
  174. data/ext/v8/upstream/scons/engine/SCons/Tool/sunlink.py +0 -77
  175. data/ext/v8/upstream/scons/engine/SCons/Tool/swig.py +0 -186
  176. data/ext/v8/upstream/scons/engine/SCons/Tool/tar.py +0 -73
  177. data/ext/v8/upstream/scons/engine/SCons/Tool/tex.py +0 -805
  178. data/ext/v8/upstream/scons/engine/SCons/Tool/textfile.py +0 -175
  179. data/ext/v8/upstream/scons/engine/SCons/Tool/tlib.py +0 -53
  180. data/ext/v8/upstream/scons/engine/SCons/Tool/wix.py +0 -100
  181. data/ext/v8/upstream/scons/engine/SCons/Tool/yacc.py +0 -131
  182. data/ext/v8/upstream/scons/engine/SCons/Tool/zip.py +0 -100
  183. data/ext/v8/upstream/scons/engine/SCons/Util.py +0 -1645
  184. data/ext/v8/upstream/scons/engine/SCons/Variables/BoolVariable.py +0 -91
  185. data/ext/v8/upstream/scons/engine/SCons/Variables/EnumVariable.py +0 -107
  186. data/ext/v8/upstream/scons/engine/SCons/Variables/ListVariable.py +0 -139
  187. data/ext/v8/upstream/scons/engine/SCons/Variables/PackageVariable.py +0 -109
  188. data/ext/v8/upstream/scons/engine/SCons/Variables/PathVariable.py +0 -147
  189. data/ext/v8/upstream/scons/engine/SCons/Variables/__init__.py +0 -317
  190. data/ext/v8/upstream/scons/engine/SCons/Warnings.py +0 -228
  191. data/ext/v8/upstream/scons/engine/SCons/__init__.py +0 -49
  192. data/ext/v8/upstream/scons/engine/SCons/compat/__init__.py +0 -302
  193. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_UserString.py +0 -98
  194. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_hashlib.py +0 -91
  195. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_itertools.py +0 -124
  196. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_optparse.py +0 -1725
  197. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets.py +0 -583
  198. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets15.py +0 -176
  199. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_shlex.py +0 -325
  200. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_subprocess.py +0 -1296
  201. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_textwrap.py +0 -382
  202. data/ext/v8/upstream/scons/engine/SCons/compat/builtins.py +0 -187
  203. data/ext/v8/upstream/scons/engine/SCons/cpp.py +0 -598
  204. data/ext/v8/upstream/scons/engine/SCons/dblite.py +0 -248
  205. data/ext/v8/upstream/scons/engine/SCons/exitfuncs.py +0 -77
  206. data/ext/v8/upstream/scons/os_spawnv_fix.diff +0 -83
  207. data/ext/v8/upstream/scons/scons-time.1 +0 -1017
  208. data/ext/v8/upstream/scons/scons.1 +0 -15179
  209. data/ext/v8/upstream/scons/sconsign.1 +0 -208
  210. data/ext/v8/upstream/scons/script/scons +0 -184
  211. data/ext/v8/upstream/scons/script/scons-time +0 -1529
  212. data/ext/v8/upstream/scons/script/scons.bat +0 -31
  213. data/ext/v8/upstream/scons/script/sconsign +0 -508
  214. data/ext/v8/upstream/scons/setup.cfg +0 -6
  215. data/ext/v8/upstream/scons/setup.py +0 -427
  216. data/ext/v8/upstream/v8/.gitignore +0 -33
  217. data/ext/v8/upstream/v8/AUTHORS +0 -42
  218. data/ext/v8/upstream/v8/ChangeLog +0 -2663
  219. data/ext/v8/upstream/v8/LICENSE +0 -52
  220. data/ext/v8/upstream/v8/LICENSE.strongtalk +0 -29
  221. data/ext/v8/upstream/v8/LICENSE.v8 +0 -26
  222. data/ext/v8/upstream/v8/LICENSE.valgrind +0 -45
  223. data/ext/v8/upstream/v8/SConstruct +0 -1473
  224. data/ext/v8/upstream/v8/build/README.txt +0 -25
  225. data/ext/v8/upstream/v8/build/all.gyp +0 -18
  226. data/ext/v8/upstream/v8/build/armu.gypi +0 -32
  227. data/ext/v8/upstream/v8/build/common.gypi +0 -82
  228. data/ext/v8/upstream/v8/build/gyp_v8 +0 -145
  229. data/ext/v8/upstream/v8/include/v8-debug.h +0 -394
  230. data/ext/v8/upstream/v8/include/v8-preparser.h +0 -116
  231. data/ext/v8/upstream/v8/include/v8-profiler.h +0 -505
  232. data/ext/v8/upstream/v8/include/v8-testing.h +0 -104
  233. data/ext/v8/upstream/v8/include/v8.h +0 -4000
  234. data/ext/v8/upstream/v8/include/v8stdint.h +0 -53
  235. data/ext/v8/upstream/v8/preparser/SConscript +0 -38
  236. data/ext/v8/upstream/v8/preparser/preparser-process.cc +0 -169
  237. data/ext/v8/upstream/v8/src/SConscript +0 -380
  238. data/ext/v8/upstream/v8/src/accessors.cc +0 -766
  239. data/ext/v8/upstream/v8/src/accessors.h +0 -121
  240. data/ext/v8/upstream/v8/src/allocation-inl.h +0 -49
  241. data/ext/v8/upstream/v8/src/allocation.cc +0 -122
  242. data/ext/v8/upstream/v8/src/allocation.h +0 -143
  243. data/ext/v8/upstream/v8/src/api.cc +0 -5678
  244. data/ext/v8/upstream/v8/src/api.h +0 -572
  245. data/ext/v8/upstream/v8/src/apinatives.js +0 -110
  246. data/ext/v8/upstream/v8/src/apiutils.h +0 -73
  247. data/ext/v8/upstream/v8/src/arguments.h +0 -116
  248. data/ext/v8/upstream/v8/src/arm/assembler-arm-inl.h +0 -353
  249. data/ext/v8/upstream/v8/src/arm/assembler-arm.cc +0 -2877
  250. data/ext/v8/upstream/v8/src/arm/assembler-arm.h +0 -1382
  251. data/ext/v8/upstream/v8/src/arm/builtins-arm.cc +0 -1634
  252. data/ext/v8/upstream/v8/src/arm/code-stubs-arm.cc +0 -6917
  253. data/ext/v8/upstream/v8/src/arm/code-stubs-arm.h +0 -623
  254. data/ext/v8/upstream/v8/src/arm/codegen-arm-inl.h +0 -48
  255. data/ext/v8/upstream/v8/src/arm/codegen-arm.cc +0 -7437
  256. data/ext/v8/upstream/v8/src/arm/codegen-arm.h +0 -595
  257. data/ext/v8/upstream/v8/src/arm/constants-arm.cc +0 -152
  258. data/ext/v8/upstream/v8/src/arm/constants-arm.h +0 -778
  259. data/ext/v8/upstream/v8/src/arm/cpu-arm.cc +0 -149
  260. data/ext/v8/upstream/v8/src/arm/debug-arm.cc +0 -317
  261. data/ext/v8/upstream/v8/src/arm/deoptimizer-arm.cc +0 -737
  262. data/ext/v8/upstream/v8/src/arm/disasm-arm.cc +0 -1503
  263. data/ext/v8/upstream/v8/src/arm/frames-arm.cc +0 -45
  264. data/ext/v8/upstream/v8/src/arm/frames-arm.h +0 -168
  265. data/ext/v8/upstream/v8/src/arm/full-codegen-arm.cc +0 -4374
  266. data/ext/v8/upstream/v8/src/arm/ic-arm.cc +0 -1793
  267. data/ext/v8/upstream/v8/src/arm/jump-target-arm.cc +0 -174
  268. data/ext/v8/upstream/v8/src/arm/lithium-arm.cc +0 -2120
  269. data/ext/v8/upstream/v8/src/arm/lithium-arm.h +0 -2179
  270. data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.cc +0 -4132
  271. data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.h +0 -329
  272. data/ext/v8/upstream/v8/src/arm/lithium-gap-resolver-arm.cc +0 -305
  273. data/ext/v8/upstream/v8/src/arm/lithium-gap-resolver-arm.h +0 -84
  274. data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.cc +0 -2939
  275. data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.h +0 -1071
  276. data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.cc +0 -1287
  277. data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.h +0 -253
  278. data/ext/v8/upstream/v8/src/arm/register-allocator-arm-inl.h +0 -100
  279. data/ext/v8/upstream/v8/src/arm/register-allocator-arm.cc +0 -63
  280. data/ext/v8/upstream/v8/src/arm/register-allocator-arm.h +0 -44
  281. data/ext/v8/upstream/v8/src/arm/simulator-arm.cc +0 -3288
  282. data/ext/v8/upstream/v8/src/arm/simulator-arm.h +0 -413
  283. data/ext/v8/upstream/v8/src/arm/stub-cache-arm.cc +0 -4034
  284. data/ext/v8/upstream/v8/src/arm/virtual-frame-arm-inl.h +0 -59
  285. data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.cc +0 -843
  286. data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.h +0 -523
  287. data/ext/v8/upstream/v8/src/array.js +0 -1249
  288. data/ext/v8/upstream/v8/src/assembler.cc +0 -1067
  289. data/ext/v8/upstream/v8/src/assembler.h +0 -823
  290. data/ext/v8/upstream/v8/src/ast-inl.h +0 -112
  291. data/ext/v8/upstream/v8/src/ast.cc +0 -1078
  292. data/ext/v8/upstream/v8/src/ast.h +0 -2234
  293. data/ext/v8/upstream/v8/src/atomicops.h +0 -167
  294. data/ext/v8/upstream/v8/src/atomicops_internals_arm_gcc.h +0 -145
  295. data/ext/v8/upstream/v8/src/atomicops_internals_mips_gcc.h +0 -169
  296. data/ext/v8/upstream/v8/src/atomicops_internals_x86_gcc.cc +0 -126
  297. data/ext/v8/upstream/v8/src/atomicops_internals_x86_gcc.h +0 -287
  298. data/ext/v8/upstream/v8/src/atomicops_internals_x86_macosx.h +0 -301
  299. data/ext/v8/upstream/v8/src/atomicops_internals_x86_msvc.h +0 -203
  300. data/ext/v8/upstream/v8/src/bignum-dtoa.cc +0 -655
  301. data/ext/v8/upstream/v8/src/bignum-dtoa.h +0 -81
  302. data/ext/v8/upstream/v8/src/bignum.cc +0 -768
  303. data/ext/v8/upstream/v8/src/bignum.h +0 -140
  304. data/ext/v8/upstream/v8/src/bootstrapper.cc +0 -2138
  305. data/ext/v8/upstream/v8/src/bootstrapper.h +0 -185
  306. data/ext/v8/upstream/v8/src/builtins.cc +0 -1708
  307. data/ext/v8/upstream/v8/src/builtins.h +0 -368
  308. data/ext/v8/upstream/v8/src/bytecodes-irregexp.h +0 -105
  309. data/ext/v8/upstream/v8/src/cached-powers.cc +0 -177
  310. data/ext/v8/upstream/v8/src/cached-powers.h +0 -65
  311. data/ext/v8/upstream/v8/src/char-predicates-inl.h +0 -94
  312. data/ext/v8/upstream/v8/src/char-predicates.h +0 -65
  313. data/ext/v8/upstream/v8/src/checks.cc +0 -110
  314. data/ext/v8/upstream/v8/src/checks.h +0 -296
  315. data/ext/v8/upstream/v8/src/circular-queue-inl.h +0 -53
  316. data/ext/v8/upstream/v8/src/circular-queue.cc +0 -122
  317. data/ext/v8/upstream/v8/src/circular-queue.h +0 -103
  318. data/ext/v8/upstream/v8/src/code-stubs.cc +0 -240
  319. data/ext/v8/upstream/v8/src/code-stubs.h +0 -971
  320. data/ext/v8/upstream/v8/src/code.h +0 -68
  321. data/ext/v8/upstream/v8/src/codegen-inl.h +0 -68
  322. data/ext/v8/upstream/v8/src/codegen.cc +0 -505
  323. data/ext/v8/upstream/v8/src/codegen.h +0 -245
  324. data/ext/v8/upstream/v8/src/compilation-cache.cc +0 -540
  325. data/ext/v8/upstream/v8/src/compilation-cache.h +0 -287
  326. data/ext/v8/upstream/v8/src/compiler.cc +0 -792
  327. data/ext/v8/upstream/v8/src/compiler.h +0 -307
  328. data/ext/v8/upstream/v8/src/contexts.cc +0 -327
  329. data/ext/v8/upstream/v8/src/contexts.h +0 -382
  330. data/ext/v8/upstream/v8/src/conversions-inl.h +0 -110
  331. data/ext/v8/upstream/v8/src/conversions.cc +0 -1125
  332. data/ext/v8/upstream/v8/src/conversions.h +0 -122
  333. data/ext/v8/upstream/v8/src/counters.cc +0 -93
  334. data/ext/v8/upstream/v8/src/counters.h +0 -254
  335. data/ext/v8/upstream/v8/src/cpu-profiler-inl.h +0 -101
  336. data/ext/v8/upstream/v8/src/cpu-profiler.cc +0 -606
  337. data/ext/v8/upstream/v8/src/cpu-profiler.h +0 -305
  338. data/ext/v8/upstream/v8/src/cpu.h +0 -67
  339. data/ext/v8/upstream/v8/src/d8-debug.cc +0 -367
  340. data/ext/v8/upstream/v8/src/d8-debug.h +0 -158
  341. data/ext/v8/upstream/v8/src/d8-posix.cc +0 -695
  342. data/ext/v8/upstream/v8/src/d8-readline.cc +0 -128
  343. data/ext/v8/upstream/v8/src/d8-windows.cc +0 -42
  344. data/ext/v8/upstream/v8/src/d8.cc +0 -796
  345. data/ext/v8/upstream/v8/src/d8.gyp +0 -88
  346. data/ext/v8/upstream/v8/src/d8.h +0 -231
  347. data/ext/v8/upstream/v8/src/d8.js +0 -2798
  348. data/ext/v8/upstream/v8/src/data-flow.cc +0 -545
  349. data/ext/v8/upstream/v8/src/data-flow.h +0 -379
  350. data/ext/v8/upstream/v8/src/date.js +0 -1103
  351. data/ext/v8/upstream/v8/src/dateparser-inl.h +0 -125
  352. data/ext/v8/upstream/v8/src/dateparser.cc +0 -178
  353. data/ext/v8/upstream/v8/src/dateparser.h +0 -265
  354. data/ext/v8/upstream/v8/src/debug-agent.cc +0 -447
  355. data/ext/v8/upstream/v8/src/debug-agent.h +0 -129
  356. data/ext/v8/upstream/v8/src/debug-debugger.js +0 -2569
  357. data/ext/v8/upstream/v8/src/debug.cc +0 -3188
  358. data/ext/v8/upstream/v8/src/debug.h +0 -1055
  359. data/ext/v8/upstream/v8/src/deoptimizer.cc +0 -1296
  360. data/ext/v8/upstream/v8/src/deoptimizer.h +0 -629
  361. data/ext/v8/upstream/v8/src/disasm.h +0 -80
  362. data/ext/v8/upstream/v8/src/disassembler.cc +0 -339
  363. data/ext/v8/upstream/v8/src/disassembler.h +0 -56
  364. data/ext/v8/upstream/v8/src/diy-fp.cc +0 -58
  365. data/ext/v8/upstream/v8/src/diy-fp.h +0 -117
  366. data/ext/v8/upstream/v8/src/double.h +0 -238
  367. data/ext/v8/upstream/v8/src/dtoa.cc +0 -103
  368. data/ext/v8/upstream/v8/src/dtoa.h +0 -85
  369. data/ext/v8/upstream/v8/src/execution.cc +0 -791
  370. data/ext/v8/upstream/v8/src/execution.h +0 -291
  371. data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.cc +0 -250
  372. data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.h +0 -89
  373. data/ext/v8/upstream/v8/src/extensions/experimental/experimental.gyp +0 -55
  374. data/ext/v8/upstream/v8/src/extensions/experimental/i18n-extension.cc +0 -284
  375. data/ext/v8/upstream/v8/src/extensions/experimental/i18n-extension.h +0 -64
  376. data/ext/v8/upstream/v8/src/extensions/externalize-string-extension.cc +0 -141
  377. data/ext/v8/upstream/v8/src/extensions/externalize-string-extension.h +0 -50
  378. data/ext/v8/upstream/v8/src/extensions/gc-extension.cc +0 -58
  379. data/ext/v8/upstream/v8/src/extensions/gc-extension.h +0 -49
  380. data/ext/v8/upstream/v8/src/factory.cc +0 -1194
  381. data/ext/v8/upstream/v8/src/factory.h +0 -436
  382. data/ext/v8/upstream/v8/src/fast-dtoa.cc +0 -736
  383. data/ext/v8/upstream/v8/src/fast-dtoa.h +0 -83
  384. data/ext/v8/upstream/v8/src/fixed-dtoa.cc +0 -405
  385. data/ext/v8/upstream/v8/src/fixed-dtoa.h +0 -55
  386. data/ext/v8/upstream/v8/src/flag-definitions.h +0 -556
  387. data/ext/v8/upstream/v8/src/flags.cc +0 -551
  388. data/ext/v8/upstream/v8/src/flags.h +0 -79
  389. data/ext/v8/upstream/v8/src/frame-element.cc +0 -37
  390. data/ext/v8/upstream/v8/src/frame-element.h +0 -269
  391. data/ext/v8/upstream/v8/src/frames-inl.h +0 -236
  392. data/ext/v8/upstream/v8/src/frames.cc +0 -1273
  393. data/ext/v8/upstream/v8/src/frames.h +0 -854
  394. data/ext/v8/upstream/v8/src/full-codegen.cc +0 -1385
  395. data/ext/v8/upstream/v8/src/full-codegen.h +0 -753
  396. data/ext/v8/upstream/v8/src/func-name-inferrer.cc +0 -91
  397. data/ext/v8/upstream/v8/src/func-name-inferrer.h +0 -111
  398. data/ext/v8/upstream/v8/src/gdb-jit.cc +0 -1548
  399. data/ext/v8/upstream/v8/src/gdb-jit.h +0 -138
  400. data/ext/v8/upstream/v8/src/global-handles.cc +0 -596
  401. data/ext/v8/upstream/v8/src/global-handles.h +0 -239
  402. data/ext/v8/upstream/v8/src/globals.h +0 -325
  403. data/ext/v8/upstream/v8/src/handles-inl.h +0 -177
  404. data/ext/v8/upstream/v8/src/handles.cc +0 -965
  405. data/ext/v8/upstream/v8/src/handles.h +0 -372
  406. data/ext/v8/upstream/v8/src/hashmap.cc +0 -230
  407. data/ext/v8/upstream/v8/src/hashmap.h +0 -121
  408. data/ext/v8/upstream/v8/src/heap-inl.h +0 -703
  409. data/ext/v8/upstream/v8/src/heap-profiler.cc +0 -1173
  410. data/ext/v8/upstream/v8/src/heap-profiler.h +0 -396
  411. data/ext/v8/upstream/v8/src/heap.cc +0 -5856
  412. data/ext/v8/upstream/v8/src/heap.h +0 -2264
  413. data/ext/v8/upstream/v8/src/hydrogen-instructions.cc +0 -1639
  414. data/ext/v8/upstream/v8/src/hydrogen-instructions.h +0 -3657
  415. data/ext/v8/upstream/v8/src/hydrogen.cc +0 -6011
  416. data/ext/v8/upstream/v8/src/hydrogen.h +0 -1137
  417. data/ext/v8/upstream/v8/src/ia32/assembler-ia32-inl.h +0 -430
  418. data/ext/v8/upstream/v8/src/ia32/assembler-ia32.cc +0 -2846
  419. data/ext/v8/upstream/v8/src/ia32/assembler-ia32.h +0 -1159
  420. data/ext/v8/upstream/v8/src/ia32/builtins-ia32.cc +0 -1596
  421. data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.cc +0 -6549
  422. data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.h +0 -495
  423. data/ext/v8/upstream/v8/src/ia32/codegen-ia32-inl.h +0 -46
  424. data/ext/v8/upstream/v8/src/ia32/codegen-ia32.cc +0 -10385
  425. data/ext/v8/upstream/v8/src/ia32/codegen-ia32.h +0 -801
  426. data/ext/v8/upstream/v8/src/ia32/cpu-ia32.cc +0 -88
  427. data/ext/v8/upstream/v8/src/ia32/debug-ia32.cc +0 -312
  428. data/ext/v8/upstream/v8/src/ia32/deoptimizer-ia32.cc +0 -774
  429. data/ext/v8/upstream/v8/src/ia32/disasm-ia32.cc +0 -1620
  430. data/ext/v8/upstream/v8/src/ia32/frames-ia32.cc +0 -45
  431. data/ext/v8/upstream/v8/src/ia32/frames-ia32.h +0 -140
  432. data/ext/v8/upstream/v8/src/ia32/full-codegen-ia32.cc +0 -4357
  433. data/ext/v8/upstream/v8/src/ia32/ic-ia32.cc +0 -1779
  434. data/ext/v8/upstream/v8/src/ia32/jump-target-ia32.cc +0 -437
  435. data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.cc +0 -4158
  436. data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.h +0 -318
  437. data/ext/v8/upstream/v8/src/ia32/lithium-gap-resolver-ia32.cc +0 -466
  438. data/ext/v8/upstream/v8/src/ia32/lithium-gap-resolver-ia32.h +0 -110
  439. data/ext/v8/upstream/v8/src/ia32/lithium-ia32.cc +0 -2181
  440. data/ext/v8/upstream/v8/src/ia32/lithium-ia32.h +0 -2235
  441. data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.cc +0 -2056
  442. data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.h +0 -807
  443. data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.cc +0 -1264
  444. data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.h +0 -216
  445. data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32-inl.h +0 -82
  446. data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32.cc +0 -157
  447. data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32.h +0 -43
  448. data/ext/v8/upstream/v8/src/ia32/simulator-ia32.cc +0 -30
  449. data/ext/v8/upstream/v8/src/ia32/simulator-ia32.h +0 -72
  450. data/ext/v8/upstream/v8/src/ia32/stub-cache-ia32.cc +0 -3711
  451. data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.cc +0 -1366
  452. data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.h +0 -650
  453. data/ext/v8/upstream/v8/src/ic-inl.h +0 -130
  454. data/ext/v8/upstream/v8/src/ic.cc +0 -2389
  455. data/ext/v8/upstream/v8/src/ic.h +0 -675
  456. data/ext/v8/upstream/v8/src/inspector.cc +0 -63
  457. data/ext/v8/upstream/v8/src/inspector.h +0 -62
  458. data/ext/v8/upstream/v8/src/interpreter-irregexp.cc +0 -659
  459. data/ext/v8/upstream/v8/src/interpreter-irregexp.h +0 -49
  460. data/ext/v8/upstream/v8/src/isolate.cc +0 -883
  461. data/ext/v8/upstream/v8/src/isolate.h +0 -1306
  462. data/ext/v8/upstream/v8/src/json.js +0 -342
  463. data/ext/v8/upstream/v8/src/jsregexp.cc +0 -5371
  464. data/ext/v8/upstream/v8/src/jsregexp.h +0 -1483
  465. data/ext/v8/upstream/v8/src/jump-target-heavy-inl.h +0 -51
  466. data/ext/v8/upstream/v8/src/jump-target-heavy.cc +0 -427
  467. data/ext/v8/upstream/v8/src/jump-target-heavy.h +0 -238
  468. data/ext/v8/upstream/v8/src/jump-target-inl.h +0 -48
  469. data/ext/v8/upstream/v8/src/jump-target-light-inl.h +0 -56
  470. data/ext/v8/upstream/v8/src/jump-target-light.cc +0 -111
  471. data/ext/v8/upstream/v8/src/jump-target-light.h +0 -193
  472. data/ext/v8/upstream/v8/src/jump-target.cc +0 -91
  473. data/ext/v8/upstream/v8/src/jump-target.h +0 -90
  474. data/ext/v8/upstream/v8/src/list-inl.h +0 -206
  475. data/ext/v8/upstream/v8/src/list.h +0 -164
  476. data/ext/v8/upstream/v8/src/lithium-allocator-inl.h +0 -142
  477. data/ext/v8/upstream/v8/src/lithium-allocator.cc +0 -2105
  478. data/ext/v8/upstream/v8/src/lithium-allocator.h +0 -630
  479. data/ext/v8/upstream/v8/src/lithium.cc +0 -169
  480. data/ext/v8/upstream/v8/src/lithium.h +0 -592
  481. data/ext/v8/upstream/v8/src/liveedit-debugger.js +0 -1082
  482. data/ext/v8/upstream/v8/src/liveedit.cc +0 -1693
  483. data/ext/v8/upstream/v8/src/liveedit.h +0 -179
  484. data/ext/v8/upstream/v8/src/liveobjectlist-inl.h +0 -126
  485. data/ext/v8/upstream/v8/src/liveobjectlist.cc +0 -2589
  486. data/ext/v8/upstream/v8/src/liveobjectlist.h +0 -322
  487. data/ext/v8/upstream/v8/src/log-inl.h +0 -59
  488. data/ext/v8/upstream/v8/src/log-utils.cc +0 -423
  489. data/ext/v8/upstream/v8/src/log-utils.h +0 -229
  490. data/ext/v8/upstream/v8/src/log.cc +0 -1666
  491. data/ext/v8/upstream/v8/src/log.h +0 -446
  492. data/ext/v8/upstream/v8/src/macro-assembler.h +0 -120
  493. data/ext/v8/upstream/v8/src/macros.py +0 -178
  494. data/ext/v8/upstream/v8/src/mark-compact.cc +0 -3092
  495. data/ext/v8/upstream/v8/src/mark-compact.h +0 -506
  496. data/ext/v8/upstream/v8/src/math.js +0 -264
  497. data/ext/v8/upstream/v8/src/messages.cc +0 -166
  498. data/ext/v8/upstream/v8/src/messages.h +0 -114
  499. data/ext/v8/upstream/v8/src/messages.js +0 -1090
  500. data/ext/v8/upstream/v8/src/mips/assembler-mips-inl.h +0 -335
  501. data/ext/v8/upstream/v8/src/mips/assembler-mips.cc +0 -2093
  502. data/ext/v8/upstream/v8/src/mips/assembler-mips.h +0 -1066
  503. data/ext/v8/upstream/v8/src/mips/builtins-mips.cc +0 -148
  504. data/ext/v8/upstream/v8/src/mips/code-stubs-mips.cc +0 -752
  505. data/ext/v8/upstream/v8/src/mips/code-stubs-mips.h +0 -511
  506. data/ext/v8/upstream/v8/src/mips/codegen-mips-inl.h +0 -64
  507. data/ext/v8/upstream/v8/src/mips/codegen-mips.cc +0 -1213
  508. data/ext/v8/upstream/v8/src/mips/codegen-mips.h +0 -633
  509. data/ext/v8/upstream/v8/src/mips/constants-mips.cc +0 -352
  510. data/ext/v8/upstream/v8/src/mips/constants-mips.h +0 -723
  511. data/ext/v8/upstream/v8/src/mips/cpu-mips.cc +0 -90
  512. data/ext/v8/upstream/v8/src/mips/debug-mips.cc +0 -155
  513. data/ext/v8/upstream/v8/src/mips/deoptimizer-mips.cc +0 -91
  514. data/ext/v8/upstream/v8/src/mips/disasm-mips.cc +0 -1023
  515. data/ext/v8/upstream/v8/src/mips/frames-mips.cc +0 -48
  516. data/ext/v8/upstream/v8/src/mips/frames-mips.h +0 -179
  517. data/ext/v8/upstream/v8/src/mips/full-codegen-mips.cc +0 -727
  518. data/ext/v8/upstream/v8/src/mips/ic-mips.cc +0 -244
  519. data/ext/v8/upstream/v8/src/mips/jump-target-mips.cc +0 -80
  520. data/ext/v8/upstream/v8/src/mips/lithium-codegen-mips.h +0 -65
  521. data/ext/v8/upstream/v8/src/mips/lithium-mips.h +0 -304
  522. data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.cc +0 -3327
  523. data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.h +0 -1058
  524. data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.cc +0 -478
  525. data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.h +0 -250
  526. data/ext/v8/upstream/v8/src/mips/register-allocator-mips-inl.h +0 -134
  527. data/ext/v8/upstream/v8/src/mips/register-allocator-mips.cc +0 -63
  528. data/ext/v8/upstream/v8/src/mips/register-allocator-mips.h +0 -47
  529. data/ext/v8/upstream/v8/src/mips/simulator-mips.cc +0 -2438
  530. data/ext/v8/upstream/v8/src/mips/simulator-mips.h +0 -394
  531. data/ext/v8/upstream/v8/src/mips/stub-cache-mips.cc +0 -601
  532. data/ext/v8/upstream/v8/src/mips/virtual-frame-mips-inl.h +0 -58
  533. data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.cc +0 -307
  534. data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.h +0 -530
  535. data/ext/v8/upstream/v8/src/mirror-debugger.js +0 -2381
  536. data/ext/v8/upstream/v8/src/mksnapshot.cc +0 -256
  537. data/ext/v8/upstream/v8/src/natives.h +0 -63
  538. data/ext/v8/upstream/v8/src/objects-debug.cc +0 -722
  539. data/ext/v8/upstream/v8/src/objects-inl.h +0 -4166
  540. data/ext/v8/upstream/v8/src/objects-printer.cc +0 -801
  541. data/ext/v8/upstream/v8/src/objects-visiting.cc +0 -142
  542. data/ext/v8/upstream/v8/src/objects-visiting.h +0 -422
  543. data/ext/v8/upstream/v8/src/objects.cc +0 -10296
  544. data/ext/v8/upstream/v8/src/objects.h +0 -6662
  545. data/ext/v8/upstream/v8/src/parser.cc +0 -5168
  546. data/ext/v8/upstream/v8/src/parser.h +0 -823
  547. data/ext/v8/upstream/v8/src/platform-cygwin.cc +0 -811
  548. data/ext/v8/upstream/v8/src/platform-freebsd.cc +0 -854
  549. data/ext/v8/upstream/v8/src/platform-linux.cc +0 -1120
  550. data/ext/v8/upstream/v8/src/platform-macos.cc +0 -865
  551. data/ext/v8/upstream/v8/src/platform-nullos.cc +0 -504
  552. data/ext/v8/upstream/v8/src/platform-openbsd.cc +0 -672
  553. data/ext/v8/upstream/v8/src/platform-posix.cc +0 -424
  554. data/ext/v8/upstream/v8/src/platform-solaris.cc +0 -796
  555. data/ext/v8/upstream/v8/src/platform-tls-mac.h +0 -62
  556. data/ext/v8/upstream/v8/src/platform-tls-win32.h +0 -62
  557. data/ext/v8/upstream/v8/src/platform-tls.h +0 -50
  558. data/ext/v8/upstream/v8/src/platform-win32.cc +0 -2072
  559. data/ext/v8/upstream/v8/src/platform.h +0 -693
  560. data/ext/v8/upstream/v8/src/preparse-data.cc +0 -185
  561. data/ext/v8/upstream/v8/src/preparse-data.h +0 -249
  562. data/ext/v8/upstream/v8/src/preparser-api.cc +0 -219
  563. data/ext/v8/upstream/v8/src/preparser.cc +0 -1205
  564. data/ext/v8/upstream/v8/src/preparser.h +0 -278
  565. data/ext/v8/upstream/v8/src/prettyprinter.cc +0 -1530
  566. data/ext/v8/upstream/v8/src/prettyprinter.h +0 -223
  567. data/ext/v8/upstream/v8/src/profile-generator-inl.h +0 -128
  568. data/ext/v8/upstream/v8/src/profile-generator.cc +0 -3095
  569. data/ext/v8/upstream/v8/src/profile-generator.h +0 -1125
  570. data/ext/v8/upstream/v8/src/property.cc +0 -102
  571. data/ext/v8/upstream/v8/src/property.h +0 -348
  572. data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp-inl.h +0 -78
  573. data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp.cc +0 -470
  574. data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp.h +0 -142
  575. data/ext/v8/upstream/v8/src/regexp-macro-assembler-tracer.cc +0 -373
  576. data/ext/v8/upstream/v8/src/regexp-macro-assembler-tracer.h +0 -104
  577. data/ext/v8/upstream/v8/src/regexp-macro-assembler.cc +0 -266
  578. data/ext/v8/upstream/v8/src/regexp-macro-assembler.h +0 -236
  579. data/ext/v8/upstream/v8/src/regexp-stack.cc +0 -111
  580. data/ext/v8/upstream/v8/src/regexp-stack.h +0 -147
  581. data/ext/v8/upstream/v8/src/regexp.js +0 -483
  582. data/ext/v8/upstream/v8/src/register-allocator-inl.h +0 -141
  583. data/ext/v8/upstream/v8/src/register-allocator.cc +0 -98
  584. data/ext/v8/upstream/v8/src/register-allocator.h +0 -310
  585. data/ext/v8/upstream/v8/src/rewriter.cc +0 -1024
  586. data/ext/v8/upstream/v8/src/rewriter.h +0 -59
  587. data/ext/v8/upstream/v8/src/runtime-profiler.cc +0 -478
  588. data/ext/v8/upstream/v8/src/runtime-profiler.h +0 -192
  589. data/ext/v8/upstream/v8/src/runtime.cc +0 -11949
  590. data/ext/v8/upstream/v8/src/runtime.h +0 -643
  591. data/ext/v8/upstream/v8/src/runtime.js +0 -643
  592. data/ext/v8/upstream/v8/src/safepoint-table.cc +0 -256
  593. data/ext/v8/upstream/v8/src/safepoint-table.h +0 -269
  594. data/ext/v8/upstream/v8/src/scanner-base.cc +0 -964
  595. data/ext/v8/upstream/v8/src/scanner-base.h +0 -664
  596. data/ext/v8/upstream/v8/src/scanner.cc +0 -584
  597. data/ext/v8/upstream/v8/src/scanner.h +0 -196
  598. data/ext/v8/upstream/v8/src/scopeinfo.cc +0 -631
  599. data/ext/v8/upstream/v8/src/scopeinfo.h +0 -249
  600. data/ext/v8/upstream/v8/src/scopes.cc +0 -1093
  601. data/ext/v8/upstream/v8/src/scopes.h +0 -508
  602. data/ext/v8/upstream/v8/src/serialize.cc +0 -1574
  603. data/ext/v8/upstream/v8/src/serialize.h +0 -589
  604. data/ext/v8/upstream/v8/src/shell.h +0 -55
  605. data/ext/v8/upstream/v8/src/simulator.h +0 -43
  606. data/ext/v8/upstream/v8/src/small-pointer-list.h +0 -163
  607. data/ext/v8/upstream/v8/src/smart-pointer.h +0 -109
  608. data/ext/v8/upstream/v8/src/snapshot-common.cc +0 -82
  609. data/ext/v8/upstream/v8/src/snapshot-empty.cc +0 -50
  610. data/ext/v8/upstream/v8/src/snapshot.h +0 -73
  611. data/ext/v8/upstream/v8/src/spaces-inl.h +0 -529
  612. data/ext/v8/upstream/v8/src/spaces.cc +0 -3147
  613. data/ext/v8/upstream/v8/src/spaces.h +0 -2368
  614. data/ext/v8/upstream/v8/src/splay-tree-inl.h +0 -310
  615. data/ext/v8/upstream/v8/src/splay-tree.h +0 -203
  616. data/ext/v8/upstream/v8/src/string-search.cc +0 -41
  617. data/ext/v8/upstream/v8/src/string-search.h +0 -568
  618. data/ext/v8/upstream/v8/src/string-stream.cc +0 -592
  619. data/ext/v8/upstream/v8/src/string-stream.h +0 -191
  620. data/ext/v8/upstream/v8/src/string.js +0 -915
  621. data/ext/v8/upstream/v8/src/strtod.cc +0 -440
  622. data/ext/v8/upstream/v8/src/strtod.h +0 -40
  623. data/ext/v8/upstream/v8/src/stub-cache.cc +0 -1940
  624. data/ext/v8/upstream/v8/src/stub-cache.h +0 -866
  625. data/ext/v8/upstream/v8/src/third_party/valgrind/valgrind.h +0 -3925
  626. data/ext/v8/upstream/v8/src/token.cc +0 -63
  627. data/ext/v8/upstream/v8/src/token.h +0 -288
  628. data/ext/v8/upstream/v8/src/top.cc +0 -983
  629. data/ext/v8/upstream/v8/src/type-info.cc +0 -472
  630. data/ext/v8/upstream/v8/src/type-info.h +0 -290
  631. data/ext/v8/upstream/v8/src/unbound-queue-inl.h +0 -95
  632. data/ext/v8/upstream/v8/src/unbound-queue.h +0 -67
  633. data/ext/v8/upstream/v8/src/unicode-inl.h +0 -238
  634. data/ext/v8/upstream/v8/src/unicode.cc +0 -1624
  635. data/ext/v8/upstream/v8/src/unicode.h +0 -280
  636. data/ext/v8/upstream/v8/src/uri.js +0 -402
  637. data/ext/v8/upstream/v8/src/utils.cc +0 -371
  638. data/ext/v8/upstream/v8/src/utils.h +0 -796
  639. data/ext/v8/upstream/v8/src/v8-counters.cc +0 -62
  640. data/ext/v8/upstream/v8/src/v8-counters.h +0 -311
  641. data/ext/v8/upstream/v8/src/v8.cc +0 -215
  642. data/ext/v8/upstream/v8/src/v8.h +0 -130
  643. data/ext/v8/upstream/v8/src/v8checks.h +0 -64
  644. data/ext/v8/upstream/v8/src/v8dll-main.cc +0 -39
  645. data/ext/v8/upstream/v8/src/v8globals.h +0 -486
  646. data/ext/v8/upstream/v8/src/v8memory.h +0 -82
  647. data/ext/v8/upstream/v8/src/v8natives.js +0 -1293
  648. data/ext/v8/upstream/v8/src/v8preparserdll-main.cc +0 -39
  649. data/ext/v8/upstream/v8/src/v8threads.cc +0 -453
  650. data/ext/v8/upstream/v8/src/v8threads.h +0 -164
  651. data/ext/v8/upstream/v8/src/v8utils.h +0 -317
  652. data/ext/v8/upstream/v8/src/variables.cc +0 -132
  653. data/ext/v8/upstream/v8/src/variables.h +0 -212
  654. data/ext/v8/upstream/v8/src/version.cc +0 -116
  655. data/ext/v8/upstream/v8/src/version.h +0 -68
  656. data/ext/v8/upstream/v8/src/virtual-frame-heavy-inl.h +0 -190
  657. data/ext/v8/upstream/v8/src/virtual-frame-heavy.cc +0 -312
  658. data/ext/v8/upstream/v8/src/virtual-frame-inl.h +0 -39
  659. data/ext/v8/upstream/v8/src/virtual-frame-light-inl.h +0 -171
  660. data/ext/v8/upstream/v8/src/virtual-frame-light.cc +0 -52
  661. data/ext/v8/upstream/v8/src/virtual-frame.cc +0 -49
  662. data/ext/v8/upstream/v8/src/virtual-frame.h +0 -59
  663. data/ext/v8/upstream/v8/src/vm-state-inl.h +0 -138
  664. data/ext/v8/upstream/v8/src/vm-state.h +0 -70
  665. data/ext/v8/upstream/v8/src/win32-headers.h +0 -96
  666. data/ext/v8/upstream/v8/src/x64/assembler-x64-inl.h +0 -456
  667. data/ext/v8/upstream/v8/src/x64/assembler-x64.cc +0 -2954
  668. data/ext/v8/upstream/v8/src/x64/assembler-x64.h +0 -1630
  669. data/ext/v8/upstream/v8/src/x64/builtins-x64.cc +0 -1493
  670. data/ext/v8/upstream/v8/src/x64/code-stubs-x64.cc +0 -5132
  671. data/ext/v8/upstream/v8/src/x64/code-stubs-x64.h +0 -477
  672. data/ext/v8/upstream/v8/src/x64/codegen-x64-inl.h +0 -46
  673. data/ext/v8/upstream/v8/src/x64/codegen-x64.cc +0 -8843
  674. data/ext/v8/upstream/v8/src/x64/codegen-x64.h +0 -753
  675. data/ext/v8/upstream/v8/src/x64/cpu-x64.cc +0 -88
  676. data/ext/v8/upstream/v8/src/x64/debug-x64.cc +0 -318
  677. data/ext/v8/upstream/v8/src/x64/deoptimizer-x64.cc +0 -815
  678. data/ext/v8/upstream/v8/src/x64/disasm-x64.cc +0 -1752
  679. data/ext/v8/upstream/v8/src/x64/frames-x64.cc +0 -45
  680. data/ext/v8/upstream/v8/src/x64/frames-x64.h +0 -130
  681. data/ext/v8/upstream/v8/src/x64/full-codegen-x64.cc +0 -4339
  682. data/ext/v8/upstream/v8/src/x64/ic-x64.cc +0 -1752
  683. data/ext/v8/upstream/v8/src/x64/jump-target-x64.cc +0 -437
  684. data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.cc +0 -3970
  685. data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.h +0 -318
  686. data/ext/v8/upstream/v8/src/x64/lithium-gap-resolver-x64.cc +0 -320
  687. data/ext/v8/upstream/v8/src/x64/lithium-gap-resolver-x64.h +0 -74
  688. data/ext/v8/upstream/v8/src/x64/lithium-x64.cc +0 -2115
  689. data/ext/v8/upstream/v8/src/x64/lithium-x64.h +0 -2161
  690. data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.cc +0 -2911
  691. data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.h +0 -1984
  692. data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.cc +0 -1398
  693. data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.h +0 -282
  694. data/ext/v8/upstream/v8/src/x64/register-allocator-x64-inl.h +0 -87
  695. data/ext/v8/upstream/v8/src/x64/register-allocator-x64.cc +0 -95
  696. data/ext/v8/upstream/v8/src/x64/register-allocator-x64.h +0 -43
  697. data/ext/v8/upstream/v8/src/x64/simulator-x64.cc +0 -27
  698. data/ext/v8/upstream/v8/src/x64/simulator-x64.h +0 -71
  699. data/ext/v8/upstream/v8/src/x64/stub-cache-x64.cc +0 -3460
  700. data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.cc +0 -1296
  701. data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.h +0 -597
  702. data/ext/v8/upstream/v8/src/zone-inl.h +0 -129
  703. data/ext/v8/upstream/v8/src/zone.cc +0 -196
  704. data/ext/v8/upstream/v8/src/zone.h +0 -236
  705. data/ext/v8/upstream/v8/tools/codemap.js +0 -265
  706. data/ext/v8/upstream/v8/tools/consarray.js +0 -93
  707. data/ext/v8/upstream/v8/tools/csvparser.js +0 -78
  708. data/ext/v8/upstream/v8/tools/disasm.py +0 -92
  709. data/ext/v8/upstream/v8/tools/freebsd-tick-processor +0 -10
  710. data/ext/v8/upstream/v8/tools/gc-nvp-trace-processor.py +0 -328
  711. data/ext/v8/upstream/v8/tools/generate-ten-powers.scm +0 -286
  712. data/ext/v8/upstream/v8/tools/grokdump.py +0 -840
  713. data/ext/v8/upstream/v8/tools/gyp/v8.gyp +0 -844
  714. data/ext/v8/upstream/v8/tools/js2c.py +0 -380
  715. data/ext/v8/upstream/v8/tools/jsmin.py +0 -280
  716. data/ext/v8/upstream/v8/tools/linux-tick-processor +0 -35
  717. data/ext/v8/upstream/v8/tools/ll_prof.py +0 -919
  718. data/ext/v8/upstream/v8/tools/logreader.js +0 -185
  719. data/ext/v8/upstream/v8/tools/mac-nm +0 -18
  720. data/ext/v8/upstream/v8/tools/mac-tick-processor +0 -6
  721. data/ext/v8/upstream/v8/tools/oom_dump/README +0 -31
  722. data/ext/v8/upstream/v8/tools/oom_dump/SConstruct +0 -42
  723. data/ext/v8/upstream/v8/tools/oom_dump/oom_dump.cc +0 -288
  724. data/ext/v8/upstream/v8/tools/presubmit.py +0 -305
  725. data/ext/v8/upstream/v8/tools/process-heap-prof.py +0 -120
  726. data/ext/v8/upstream/v8/tools/profile.js +0 -751
  727. data/ext/v8/upstream/v8/tools/profile_view.js +0 -219
  728. data/ext/v8/upstream/v8/tools/run-valgrind.py +0 -77
  729. data/ext/v8/upstream/v8/tools/splaytree.js +0 -316
  730. data/ext/v8/upstream/v8/tools/stats-viewer.py +0 -468
  731. data/ext/v8/upstream/v8/tools/test.py +0 -1490
  732. data/ext/v8/upstream/v8/tools/tickprocessor-driver.js +0 -59
  733. data/ext/v8/upstream/v8/tools/tickprocessor.js +0 -877
  734. data/ext/v8/upstream/v8/tools/utils.py +0 -96
  735. data/ext/v8/upstream/v8/tools/visual_studio/README.txt +0 -70
  736. data/ext/v8/upstream/v8/tools/visual_studio/arm.vsprops +0 -14
  737. data/ext/v8/upstream/v8/tools/visual_studio/common.vsprops +0 -34
  738. data/ext/v8/upstream/v8/tools/visual_studio/d8.vcproj +0 -193
  739. data/ext/v8/upstream/v8/tools/visual_studio/d8_arm.vcproj +0 -193
  740. data/ext/v8/upstream/v8/tools/visual_studio/d8_x64.vcproj +0 -209
  741. data/ext/v8/upstream/v8/tools/visual_studio/d8js2c.cmd +0 -6
  742. data/ext/v8/upstream/v8/tools/visual_studio/debug.vsprops +0 -17
  743. data/ext/v8/upstream/v8/tools/visual_studio/ia32.vsprops +0 -17
  744. data/ext/v8/upstream/v8/tools/visual_studio/js2c.cmd +0 -6
  745. data/ext/v8/upstream/v8/tools/visual_studio/release.vsprops +0 -24
  746. data/ext/v8/upstream/v8/tools/visual_studio/v8.sln +0 -101
  747. data/ext/v8/upstream/v8/tools/visual_studio/v8.vcproj +0 -227
  748. data/ext/v8/upstream/v8/tools/visual_studio/v8_arm.sln +0 -74
  749. data/ext/v8/upstream/v8/tools/visual_studio/v8_arm.vcproj +0 -227
  750. data/ext/v8/upstream/v8/tools/visual_studio/v8_base.vcproj +0 -1308
  751. data/ext/v8/upstream/v8/tools/visual_studio/v8_base_arm.vcproj +0 -1238
  752. data/ext/v8/upstream/v8/tools/visual_studio/v8_base_x64.vcproj +0 -1300
  753. data/ext/v8/upstream/v8/tools/visual_studio/v8_cctest.vcproj +0 -265
  754. data/ext/v8/upstream/v8/tools/visual_studio/v8_cctest_arm.vcproj +0 -249
  755. data/ext/v8/upstream/v8/tools/visual_studio/v8_cctest_x64.vcproj +0 -257
  756. data/ext/v8/upstream/v8/tools/visual_studio/v8_mksnapshot.vcproj +0 -145
  757. data/ext/v8/upstream/v8/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -145
  758. data/ext/v8/upstream/v8/tools/visual_studio/v8_process_sample.vcproj +0 -145
  759. data/ext/v8/upstream/v8/tools/visual_studio/v8_process_sample_arm.vcproj +0 -145
  760. data/ext/v8/upstream/v8/tools/visual_studio/v8_process_sample_x64.vcproj +0 -161
  761. data/ext/v8/upstream/v8/tools/visual_studio/v8_shell_sample.vcproj +0 -147
  762. data/ext/v8/upstream/v8/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -147
  763. data/ext/v8/upstream/v8/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -163
  764. data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot.vcproj +0 -142
  765. data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot_cc.vcproj +0 -92
  766. data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -92
  767. data/ext/v8/upstream/v8/tools/visual_studio/v8_snapshot_x64.vcproj +0 -142
  768. data/ext/v8/upstream/v8/tools/visual_studio/v8_x64.sln +0 -101
  769. data/ext/v8/upstream/v8/tools/visual_studio/v8_x64.vcproj +0 -227
  770. data/ext/v8/upstream/v8/tools/visual_studio/x64.vsprops +0 -18
  771. data/ext/v8/upstream/v8/tools/windows-tick-processor.bat +0 -30
@@ -1,88 +0,0 @@
1
- // Copyright 2011 the V8 project authors. All rights reserved.
2
- // Redistribution and use in source and binary forms, with or without
3
- // modification, are permitted provided that the following conditions are
4
- // met:
5
- //
6
- // * Redistributions of source code must retain the above copyright
7
- // notice, this list of conditions and the following disclaimer.
8
- // * Redistributions in binary form must reproduce the above
9
- // copyright notice, this list of conditions and the following
10
- // disclaimer in the documentation and/or other materials provided
11
- // with the distribution.
12
- // * Neither the name of Google Inc. nor the names of its
13
- // contributors may be used to endorse or promote products derived
14
- // from this software without specific prior written permission.
15
- //
16
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
-
28
- // CPU specific code for x64 independent of OS goes here.
29
-
30
- #ifdef __GNUC__
31
- #include "third_party/valgrind/valgrind.h"
32
- #endif
33
-
34
- #include "v8.h"
35
-
36
- #if defined(V8_TARGET_ARCH_X64)
37
-
38
- #include "cpu.h"
39
- #include "macro-assembler.h"
40
-
41
- namespace v8 {
42
- namespace internal {
43
-
44
- void CPU::Setup() {
45
- CpuFeatures::Probe();
46
- }
47
-
48
-
49
- bool CPU::SupportsCrankshaft() {
50
- return true; // Yay!
51
- }
52
-
53
-
54
- void CPU::FlushICache(void* start, size_t size) {
55
- // No need to flush the instruction cache on Intel. On Intel instruction
56
- // cache flushing is only necessary when multiple cores running the same
57
- // code simultaneously. V8 (and JavaScript) is single threaded and when code
58
- // is patched on an intel CPU the core performing the patching will have its
59
- // own instruction cache updated automatically.
60
-
61
- // If flushing of the instruction cache becomes necessary Windows has the
62
- // API function FlushInstructionCache.
63
-
64
- // By default, valgrind only checks the stack for writes that might need to
65
- // invalidate already cached translated code. This leads to random
66
- // instability when code patches or moves are sometimes unnoticed. One
67
- // solution is to run valgrind with --smc-check=all, but this comes at a big
68
- // performance cost. We can notify valgrind to invalidate its cache.
69
- #ifdef VALGRIND_DISCARD_TRANSLATIONS
70
- VALGRIND_DISCARD_TRANSLATIONS(start, size);
71
- #endif
72
- }
73
-
74
-
75
- void CPU::DebugBreak() {
76
- #ifdef _MSC_VER
77
- // To avoid Visual Studio runtime support the following code can be used
78
- // instead
79
- // __asm { int 3 }
80
- __debugbreak();
81
- #else
82
- asm("int $3");
83
- #endif
84
- }
85
-
86
- } } // namespace v8::internal
87
-
88
- #endif // V8_TARGET_ARCH_X64
@@ -1,318 +0,0 @@
1
- // Copyright 2011 the V8 project authors. All rights reserved.
2
- // Redistribution and use in source and binary forms, with or without
3
- // modification, are permitted provided that the following conditions are
4
- // met:
5
- //
6
- // * Redistributions of source code must retain the above copyright
7
- // notice, this list of conditions and the following disclaimer.
8
- // * Redistributions in binary form must reproduce the above
9
- // copyright notice, this list of conditions and the following
10
- // disclaimer in the documentation and/or other materials provided
11
- // with the distribution.
12
- // * Neither the name of Google Inc. nor the names of its
13
- // contributors may be used to endorse or promote products derived
14
- // from this software without specific prior written permission.
15
- //
16
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
-
28
- #include "v8.h"
29
-
30
- #if defined(V8_TARGET_ARCH_X64)
31
-
32
- #include "codegen-inl.h"
33
- #include "debug.h"
34
-
35
-
36
- namespace v8 {
37
- namespace internal {
38
-
39
- #ifdef ENABLE_DEBUGGER_SUPPORT
40
-
41
- bool BreakLocationIterator::IsDebugBreakAtReturn() {
42
- return Debug::IsDebugBreakAtReturn(rinfo());
43
- }
44
-
45
-
46
- // Patch the JS frame exit code with a debug break call. See
47
- // CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-x64.cc
48
- // for the precise return instructions sequence.
49
- void BreakLocationIterator::SetDebugBreakAtReturn() {
50
- ASSERT(Assembler::kJSReturnSequenceLength >=
51
- Assembler::kCallInstructionLength);
52
- rinfo()->PatchCodeWithCall(
53
- Isolate::Current()->debug()->debug_break_return()->entry(),
54
- Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength);
55
- }
56
-
57
-
58
- // Restore the JS frame exit code.
59
- void BreakLocationIterator::ClearDebugBreakAtReturn() {
60
- rinfo()->PatchCode(original_rinfo()->pc(),
61
- Assembler::kJSReturnSequenceLength);
62
- }
63
-
64
-
65
- // A debug break in the frame exit code is identified by the JS frame exit code
66
- // having been patched with a call instruction.
67
- bool Debug::IsDebugBreakAtReturn(v8::internal::RelocInfo* rinfo) {
68
- ASSERT(RelocInfo::IsJSReturn(rinfo->rmode()));
69
- return rinfo->IsPatchedReturnSequence();
70
- }
71
-
72
-
73
- bool BreakLocationIterator::IsDebugBreakAtSlot() {
74
- ASSERT(IsDebugBreakSlot());
75
- // Check whether the debug break slot instructions have been patched.
76
- return !Assembler::IsNop(rinfo()->pc());
77
- }
78
-
79
-
80
- void BreakLocationIterator::SetDebugBreakAtSlot() {
81
- ASSERT(IsDebugBreakSlot());
82
- rinfo()->PatchCodeWithCall(
83
- Isolate::Current()->debug()->debug_break_slot()->entry(),
84
- Assembler::kDebugBreakSlotLength - Assembler::kCallInstructionLength);
85
- }
86
-
87
-
88
- void BreakLocationIterator::ClearDebugBreakAtSlot() {
89
- ASSERT(IsDebugBreakSlot());
90
- rinfo()->PatchCode(original_rinfo()->pc(), Assembler::kDebugBreakSlotLength);
91
- }
92
-
93
-
94
- #define __ ACCESS_MASM(masm)
95
-
96
-
97
- static void Generate_DebugBreakCallHelper(MacroAssembler* masm,
98
- RegList object_regs,
99
- RegList non_object_regs,
100
- bool convert_call_to_jmp) {
101
- // Enter an internal frame.
102
- __ EnterInternalFrame();
103
-
104
- // Store the registers containing live values on the expression stack to
105
- // make sure that these are correctly updated during GC. Non object values
106
- // are stored as as two smis causing it to be untouched by GC.
107
- ASSERT((object_regs & ~kJSCallerSaved) == 0);
108
- ASSERT((non_object_regs & ~kJSCallerSaved) == 0);
109
- ASSERT((object_regs & non_object_regs) == 0);
110
- for (int i = 0; i < kNumJSCallerSaved; i++) {
111
- int r = JSCallerSavedCode(i);
112
- Register reg = { r };
113
- ASSERT(!reg.is(kScratchRegister));
114
- if ((object_regs & (1 << r)) != 0) {
115
- __ push(reg);
116
- }
117
- // Store the 64-bit value as two smis.
118
- if ((non_object_regs & (1 << r)) != 0) {
119
- __ movq(kScratchRegister, reg);
120
- __ Integer32ToSmi(reg, reg);
121
- __ push(reg);
122
- __ sar(kScratchRegister, Immediate(32));
123
- __ Integer32ToSmi(kScratchRegister, kScratchRegister);
124
- __ push(kScratchRegister);
125
- }
126
- }
127
-
128
- #ifdef DEBUG
129
- __ RecordComment("// Calling from debug break to runtime - come in - over");
130
- #endif
131
- __ Set(rax, 0); // No arguments (argc == 0).
132
- __ movq(rbx, ExternalReference::debug_break(masm->isolate()));
133
-
134
- CEntryStub ceb(1);
135
- __ CallStub(&ceb);
136
-
137
- // Restore the register values from the expression stack.
138
- for (int i = kNumJSCallerSaved - 1; i >= 0; i--) {
139
- int r = JSCallerSavedCode(i);
140
- Register reg = { r };
141
- if (FLAG_debug_code) {
142
- __ Set(reg, kDebugZapValue);
143
- }
144
- if ((object_regs & (1 << r)) != 0) {
145
- __ pop(reg);
146
- }
147
- // Reconstruct the 64-bit value from two smis.
148
- if ((non_object_regs & (1 << r)) != 0) {
149
- __ pop(kScratchRegister);
150
- __ SmiToInteger32(kScratchRegister, kScratchRegister);
151
- __ shl(kScratchRegister, Immediate(32));
152
- __ pop(reg);
153
- __ SmiToInteger32(reg, reg);
154
- __ or_(reg, kScratchRegister);
155
- }
156
- }
157
-
158
- // Get rid of the internal frame.
159
- __ LeaveInternalFrame();
160
-
161
- // If this call did not replace a call but patched other code then there will
162
- // be an unwanted return address left on the stack. Here we get rid of that.
163
- if (convert_call_to_jmp) {
164
- __ addq(rsp, Immediate(kPointerSize));
165
- }
166
-
167
- // Now that the break point has been handled, resume normal execution by
168
- // jumping to the target address intended by the caller and that was
169
- // overwritten by the address of DebugBreakXXX.
170
- ExternalReference after_break_target =
171
- ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate());
172
- __ movq(kScratchRegister, after_break_target);
173
- __ jmp(Operand(kScratchRegister, 0));
174
- }
175
-
176
-
177
- void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
178
- // Register state for IC load call (from ic-x64.cc).
179
- // ----------- S t a t e -------------
180
- // -- rax : receiver
181
- // -- rcx : name
182
- // -----------------------------------
183
- Generate_DebugBreakCallHelper(masm, rax.bit() | rcx.bit(), 0, false);
184
- }
185
-
186
-
187
- void Debug::GenerateStoreICDebugBreak(MacroAssembler* masm) {
188
- // Register state for IC store call (from ic-x64.cc).
189
- // ----------- S t a t e -------------
190
- // -- rax : value
191
- // -- rcx : name
192
- // -- rdx : receiver
193
- // -----------------------------------
194
- Generate_DebugBreakCallHelper(
195
- masm, rax.bit() | rcx.bit() | rdx.bit(), 0, false);
196
- }
197
-
198
-
199
- void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) {
200
- // Register state for keyed IC load call (from ic-x64.cc).
201
- // ----------- S t a t e -------------
202
- // -- rax : key
203
- // -- rdx : receiver
204
- // -----------------------------------
205
- Generate_DebugBreakCallHelper(masm, rax.bit() | rdx.bit(), 0, false);
206
- }
207
-
208
-
209
- void Debug::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) {
210
- // Register state for keyed IC load call (from ic-x64.cc).
211
- // ----------- S t a t e -------------
212
- // -- rax : value
213
- // -- rcx : key
214
- // -- rdx : receiver
215
- // -----------------------------------
216
- Generate_DebugBreakCallHelper(
217
- masm, rax.bit() | rcx.bit() | rdx.bit(), 0, false);
218
- }
219
-
220
-
221
- void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
222
- // Register state for IC call call (from ic-x64.cc)
223
- // ----------- S t a t e -------------
224
- // -- rcx: function name
225
- // -----------------------------------
226
- Generate_DebugBreakCallHelper(masm, rcx.bit(), 0, false);
227
- }
228
-
229
-
230
- void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) {
231
- // Register state just before return from JS function (from codegen-x64.cc).
232
- // rax is the actual number of arguments not encoded as a smi, see comment
233
- // above IC call.
234
- // ----------- S t a t e -------------
235
- // -- rax: number of arguments
236
- // -----------------------------------
237
- // The number of arguments in rax is not smi encoded.
238
- Generate_DebugBreakCallHelper(masm, rdi.bit(), rax.bit(), false);
239
- }
240
-
241
-
242
- void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
243
- // Register state just before return from JS function (from codegen-x64.cc).
244
- // ----------- S t a t e -------------
245
- // -- rax: return value
246
- // -----------------------------------
247
- Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true);
248
- }
249
-
250
-
251
- void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) {
252
- // Register state for stub CallFunction (from CallFunctionStub in ic-x64.cc).
253
- // ----------- S t a t e -------------
254
- // No registers used on entry.
255
- // -----------------------------------
256
- Generate_DebugBreakCallHelper(masm, 0, 0, false);
257
- }
258
-
259
-
260
- void Debug::GenerateSlot(MacroAssembler* masm) {
261
- // Generate enough nop's to make space for a call instruction.
262
- Label check_codesize;
263
- __ bind(&check_codesize);
264
- __ RecordDebugBreakSlot();
265
- for (int i = 0; i < Assembler::kDebugBreakSlotLength; i++) {
266
- __ nop();
267
- }
268
- ASSERT_EQ(Assembler::kDebugBreakSlotLength,
269
- masm->SizeOfCodeGeneratedSince(&check_codesize));
270
- }
271
-
272
-
273
- void Debug::GenerateSlotDebugBreak(MacroAssembler* masm) {
274
- // In the places where a debug break slot is inserted no registers can contain
275
- // object pointers.
276
- Generate_DebugBreakCallHelper(masm, 0, 0, true);
277
- }
278
-
279
-
280
- void Debug::GeneratePlainReturnLiveEdit(MacroAssembler* masm) {
281
- masm->ret(0);
282
- }
283
-
284
-
285
- void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) {
286
- ExternalReference restarter_frame_function_slot =
287
- ExternalReference(Debug_Address::RestarterFrameFunctionPointer(),
288
- masm->isolate());
289
- __ movq(rax, restarter_frame_function_slot);
290
- __ movq(Operand(rax, 0), Immediate(0));
291
-
292
- // We do not know our frame height, but set rsp based on rbp.
293
- __ lea(rsp, Operand(rbp, -1 * kPointerSize));
294
-
295
- __ pop(rdi); // Function.
296
- __ pop(rbp);
297
-
298
- // Load context from the function.
299
- __ movq(rsi, FieldOperand(rdi, JSFunction::kContextOffset));
300
-
301
- // Get function code.
302
- __ movq(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
303
- __ movq(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset));
304
- __ lea(rdx, FieldOperand(rdx, Code::kHeaderSize));
305
-
306
- // Re-run JSFunction, rdi is function, rsi is context.
307
- __ jmp(rdx);
308
- }
309
-
310
- const bool Debug::kFrameDropperSupported = true;
311
-
312
- #undef __
313
-
314
- #endif // ENABLE_DEBUGGER_SUPPORT
315
-
316
- } } // namespace v8::internal
317
-
318
- #endif // V8_TARGET_ARCH_X64
@@ -1,815 +0,0 @@
1
- // Copyright 2011 the V8 project authors. All rights reserved.
2
- // Redistribution and use in source and binary forms, with or without
3
- // modification, are permitted provided that the following conditions are
4
- // met:
5
- //
6
- // * Redistributions of source code must retain the above copyright
7
- // notice, this list of conditions and the following disclaimer.
8
- // * Redistributions in binary form must reproduce the above
9
- // copyright notice, this list of conditions and the following
10
- // disclaimer in the documentation and/or other materials provided
11
- // with the distribution.
12
- // * Neither the name of Google Inc. nor the names of its
13
- // contributors may be used to endorse or promote products derived
14
- // from this software without specific prior written permission.
15
- //
16
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
-
28
- #include "v8.h"
29
-
30
- #if defined(V8_TARGET_ARCH_X64)
31
-
32
- #include "codegen.h"
33
- #include "deoptimizer.h"
34
- #include "full-codegen.h"
35
- #include "safepoint-table.h"
36
-
37
- namespace v8 {
38
- namespace internal {
39
-
40
-
41
- int Deoptimizer::table_entry_size_ = 10;
42
-
43
-
44
- int Deoptimizer::patch_size() {
45
- return MacroAssembler::kCallInstructionLength;
46
- }
47
-
48
-
49
- #ifdef DEBUG
50
- // Overwrites code with int3 instructions.
51
- static void ZapCodeRange(Address from, Address to) {
52
- CHECK(from <= to);
53
- int length = static_cast<int>(to - from);
54
- CodePatcher destroyer(from, length);
55
- while (length-- > 0) {
56
- destroyer.masm()->int3();
57
- }
58
- }
59
- #endif
60
-
61
-
62
- // Iterate through the entries of a SafepointTable that corresponds to
63
- // deoptimization points.
64
- class SafepointTableDeoptimiztionEntryIterator {
65
- public:
66
- explicit SafepointTableDeoptimiztionEntryIterator(Code* code)
67
- : code_(code), table_(code), index_(-1), limit_(table_.length()) {
68
- FindNextIndex();
69
- }
70
-
71
- SafepointEntry Next(Address* pc) {
72
- if (index_ >= limit_) {
73
- *pc = NULL;
74
- return SafepointEntry(); // Invalid entry.
75
- }
76
- *pc = code_->instruction_start() + table_.GetPcOffset(index_);
77
- SafepointEntry entry = table_.GetEntry(index_);
78
- FindNextIndex();
79
- return entry;
80
- }
81
-
82
- private:
83
- void FindNextIndex() {
84
- ASSERT(index_ < limit_);
85
- while (++index_ < limit_) {
86
- if (table_.GetEntry(index_).deoptimization_index() !=
87
- Safepoint::kNoDeoptimizationIndex) {
88
- return;
89
- }
90
- }
91
- }
92
-
93
- Code* code_;
94
- SafepointTable table_;
95
- // Index of next deoptimization entry. If negative after calling
96
- // FindNextIndex, there are no more, and Next will return an invalid
97
- // SafepointEntry.
98
- int index_;
99
- // Table length.
100
- int limit_;
101
- };
102
-
103
-
104
- void Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(Handle<Code> code) {
105
- // TODO(1276): Implement.
106
- }
107
-
108
-
109
- void Deoptimizer::DeoptimizeFunction(JSFunction* function) {
110
- HandleScope scope;
111
- AssertNoAllocation no_allocation;
112
-
113
- if (!function->IsOptimized()) return;
114
-
115
- // Get the optimized code.
116
- Code* code = function->code();
117
-
118
- // Invalidate the relocation information, as it will become invalid by the
119
- // code patching below, and is not needed any more.
120
- code->InvalidateRelocation();
121
-
122
- // For each return after a safepoint insert a absolute call to the
123
- // corresponding deoptimization entry, or a short call to an absolute
124
- // jump if space is short. The absolute jumps are put in a table just
125
- // before the safepoint table (space was allocated there when the Code
126
- // object was created, if necessary).
127
-
128
- Address instruction_start = function->code()->instruction_start();
129
- Address jump_table_address =
130
- instruction_start + function->code()->safepoint_table_offset();
131
- Address previous_pc = instruction_start;
132
-
133
- SafepointTableDeoptimiztionEntryIterator deoptimizations(function->code());
134
- Address entry_pc = NULL;
135
-
136
- SafepointEntry current_entry = deoptimizations.Next(&entry_pc);
137
- while (current_entry.is_valid()) {
138
- int gap_code_size = current_entry.gap_code_size();
139
- unsigned deoptimization_index = current_entry.deoptimization_index();
140
-
141
- #ifdef DEBUG
142
- // Destroy the code which is not supposed to run again.
143
- ZapCodeRange(previous_pc, entry_pc);
144
- #endif
145
- // Position where Call will be patched in.
146
- Address call_address = entry_pc + gap_code_size;
147
- // End of call instruction, if using a direct call to a 64-bit address.
148
- Address call_end_address =
149
- call_address + MacroAssembler::kCallInstructionLength;
150
-
151
- // Find next deoptimization entry, if any.
152
- Address next_pc = NULL;
153
- SafepointEntry next_entry = deoptimizations.Next(&next_pc);
154
-
155
- if (!next_entry.is_valid() || next_pc >= call_end_address) {
156
- // Room enough to write a long call instruction.
157
- CodePatcher patcher(call_address, Assembler::kCallInstructionLength);
158
- patcher.masm()->Call(GetDeoptimizationEntry(deoptimization_index, LAZY),
159
- RelocInfo::NONE);
160
- previous_pc = call_end_address;
161
- } else {
162
- // Not room enough for a long Call instruction. Write a short call
163
- // instruction to a long jump placed elsewhere in the code.
164
- Address short_call_end_address =
165
- call_address + MacroAssembler::kShortCallInstructionLength;
166
- ASSERT(next_pc >= short_call_end_address);
167
-
168
- // Write jump in jump-table.
169
- jump_table_address -= MacroAssembler::kJumpInstructionLength;
170
- CodePatcher jump_patcher(jump_table_address,
171
- MacroAssembler::kJumpInstructionLength);
172
- jump_patcher.masm()->Jump(
173
- GetDeoptimizationEntry(deoptimization_index, LAZY),
174
- RelocInfo::NONE);
175
-
176
- // Write call to jump at call_offset.
177
- CodePatcher call_patcher(call_address,
178
- MacroAssembler::kShortCallInstructionLength);
179
- call_patcher.masm()->call(jump_table_address);
180
- previous_pc = short_call_end_address;
181
- }
182
-
183
- // Continue with next deoptimization entry.
184
- current_entry = next_entry;
185
- entry_pc = next_pc;
186
- }
187
-
188
- #ifdef DEBUG
189
- // Destroy the code which is not supposed to run again.
190
- ZapCodeRange(previous_pc, jump_table_address);
191
- #endif
192
-
193
- // Add the deoptimizing code to the list.
194
- DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code);
195
- DeoptimizerData* data = code->GetIsolate()->deoptimizer_data();
196
- node->set_next(data->deoptimizing_code_list_);
197
- data->deoptimizing_code_list_ = node;
198
-
199
- // Set the code for the function to non-optimized version.
200
- function->ReplaceCode(function->shared()->code());
201
-
202
- if (FLAG_trace_deopt) {
203
- PrintF("[forced deoptimization: ");
204
- function->PrintName();
205
- PrintF(" / %" V8PRIxPTR "]\n", reinterpret_cast<intptr_t>(function));
206
- #ifdef DEBUG
207
- if (FLAG_print_code) {
208
- code->PrintLn();
209
- }
210
- #endif
211
- }
212
- }
213
-
214
-
215
- void Deoptimizer::PatchStackCheckCodeAt(Address pc_after,
216
- Code* check_code,
217
- Code* replacement_code) {
218
- Address call_target_address = pc_after - kIntSize;
219
- ASSERT(check_code->entry() ==
220
- Assembler::target_address_at(call_target_address));
221
- // The stack check code matches the pattern:
222
- //
223
- // cmp rsp, <limit>
224
- // jae ok
225
- // call <stack guard>
226
- // test rax, <loop nesting depth>
227
- // ok: ...
228
- //
229
- // We will patch away the branch so the code is:
230
- //
231
- // cmp rsp, <limit> ;; Not changed
232
- // nop
233
- // nop
234
- // call <on-stack replacment>
235
- // test rax, <loop nesting depth>
236
- // ok:
237
- //
238
- ASSERT(*(call_target_address - 3) == 0x73 && // jae
239
- *(call_target_address - 2) == 0x07 && // offset
240
- *(call_target_address - 1) == 0xe8); // call
241
- *(call_target_address - 3) = 0x90; // nop
242
- *(call_target_address - 2) = 0x90; // nop
243
- Assembler::set_target_address_at(call_target_address,
244
- replacement_code->entry());
245
- }
246
-
247
-
248
- void Deoptimizer::RevertStackCheckCodeAt(Address pc_after,
249
- Code* check_code,
250
- Code* replacement_code) {
251
- Address call_target_address = pc_after - kIntSize;
252
- ASSERT(replacement_code->entry() ==
253
- Assembler::target_address_at(call_target_address));
254
- // Replace the nops from patching (Deoptimizer::PatchStackCheckCode) to
255
- // restore the conditional branch.
256
- ASSERT(*(call_target_address - 3) == 0x90 && // nop
257
- *(call_target_address - 2) == 0x90 && // nop
258
- *(call_target_address - 1) == 0xe8); // call
259
- *(call_target_address - 3) = 0x73; // jae
260
- *(call_target_address - 2) = 0x07; // offset
261
- Assembler::set_target_address_at(call_target_address,
262
- check_code->entry());
263
- }
264
-
265
-
266
- static int LookupBailoutId(DeoptimizationInputData* data, unsigned ast_id) {
267
- ByteArray* translations = data->TranslationByteArray();
268
- int length = data->DeoptCount();
269
- for (int i = 0; i < length; i++) {
270
- if (static_cast<unsigned>(data->AstId(i)->value()) == ast_id) {
271
- TranslationIterator it(translations, data->TranslationIndex(i)->value());
272
- int value = it.Next();
273
- ASSERT(Translation::BEGIN == static_cast<Translation::Opcode>(value));
274
- // Read the number of frames.
275
- value = it.Next();
276
- if (value == 1) return i;
277
- }
278
- }
279
- UNREACHABLE();
280
- return -1;
281
- }
282
-
283
-
284
- void Deoptimizer::DoComputeOsrOutputFrame() {
285
- DeoptimizationInputData* data = DeoptimizationInputData::cast(
286
- optimized_code_->deoptimization_data());
287
- unsigned ast_id = data->OsrAstId()->value();
288
- // TODO(kasperl): This should not be the bailout_id_. It should be
289
- // the ast id. Confusing.
290
- ASSERT(bailout_id_ == ast_id);
291
-
292
- int bailout_id = LookupBailoutId(data, ast_id);
293
- unsigned translation_index = data->TranslationIndex(bailout_id)->value();
294
- ByteArray* translations = data->TranslationByteArray();
295
-
296
- TranslationIterator iterator(translations, translation_index);
297
- Translation::Opcode opcode =
298
- static_cast<Translation::Opcode>(iterator.Next());
299
- ASSERT(Translation::BEGIN == opcode);
300
- USE(opcode);
301
- int count = iterator.Next();
302
- ASSERT(count == 1);
303
- USE(count);
304
-
305
- opcode = static_cast<Translation::Opcode>(iterator.Next());
306
- USE(opcode);
307
- ASSERT(Translation::FRAME == opcode);
308
- unsigned node_id = iterator.Next();
309
- USE(node_id);
310
- ASSERT(node_id == ast_id);
311
- JSFunction* function = JSFunction::cast(ComputeLiteral(iterator.Next()));
312
- USE(function);
313
- ASSERT(function == function_);
314
- unsigned height = iterator.Next();
315
- unsigned height_in_bytes = height * kPointerSize;
316
- USE(height_in_bytes);
317
-
318
- unsigned fixed_size = ComputeFixedSize(function_);
319
- unsigned input_frame_size = static_cast<unsigned>(input_->GetFrameSize());
320
- ASSERT(fixed_size + height_in_bytes == input_frame_size);
321
-
322
- unsigned stack_slot_size = optimized_code_->stack_slots() * kPointerSize;
323
- unsigned outgoing_height = data->ArgumentsStackHeight(bailout_id)->value();
324
- unsigned outgoing_size = outgoing_height * kPointerSize;
325
- unsigned output_frame_size = fixed_size + stack_slot_size + outgoing_size;
326
- ASSERT(outgoing_size == 0); // OSR does not happen in the middle of a call.
327
-
328
- if (FLAG_trace_osr) {
329
- PrintF("[on-stack replacement: begin 0x%08" V8PRIxPTR " ",
330
- reinterpret_cast<intptr_t>(function_));
331
- function_->PrintName();
332
- PrintF(" => node=%u, frame=%d->%d]\n",
333
- ast_id,
334
- input_frame_size,
335
- output_frame_size);
336
- }
337
-
338
- // There's only one output frame in the OSR case.
339
- output_count_ = 1;
340
- output_ = new FrameDescription*[1];
341
- output_[0] = new(output_frame_size) FrameDescription(
342
- output_frame_size, function_);
343
-
344
- // Clear the incoming parameters in the optimized frame to avoid
345
- // confusing the garbage collector.
346
- unsigned output_offset = output_frame_size - kPointerSize;
347
- int parameter_count = function_->shared()->formal_parameter_count() + 1;
348
- for (int i = 0; i < parameter_count; ++i) {
349
- output_[0]->SetFrameSlot(output_offset, 0);
350
- output_offset -= kPointerSize;
351
- }
352
-
353
- // Translate the incoming parameters. This may overwrite some of the
354
- // incoming argument slots we've just cleared.
355
- int input_offset = input_frame_size - kPointerSize;
356
- bool ok = true;
357
- int limit = input_offset - (parameter_count * kPointerSize);
358
- while (ok && input_offset > limit) {
359
- ok = DoOsrTranslateCommand(&iterator, &input_offset);
360
- }
361
-
362
- // There are no translation commands for the caller's pc and fp, the
363
- // context, and the function. Set them up explicitly.
364
- for (int i = StandardFrameConstants::kCallerPCOffset;
365
- ok && i >= StandardFrameConstants::kMarkerOffset;
366
- i -= kPointerSize) {
367
- intptr_t input_value = input_->GetFrameSlot(input_offset);
368
- if (FLAG_trace_osr) {
369
- const char* name = "UNKNOWN";
370
- switch (i) {
371
- case StandardFrameConstants::kCallerPCOffset:
372
- name = "caller's pc";
373
- break;
374
- case StandardFrameConstants::kCallerFPOffset:
375
- name = "fp";
376
- break;
377
- case StandardFrameConstants::kContextOffset:
378
- name = "context";
379
- break;
380
- case StandardFrameConstants::kMarkerOffset:
381
- name = "function";
382
- break;
383
- }
384
- PrintF(" [rsp + %d] <- 0x%08" V8PRIxPTR " ; [rsp + %d] "
385
- "(fixed part - %s)\n",
386
- output_offset,
387
- input_value,
388
- input_offset,
389
- name);
390
- }
391
- output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset));
392
- input_offset -= kPointerSize;
393
- output_offset -= kPointerSize;
394
- }
395
-
396
- // Translate the rest of the frame.
397
- while (ok && input_offset >= 0) {
398
- ok = DoOsrTranslateCommand(&iterator, &input_offset);
399
- }
400
-
401
- // If translation of any command failed, continue using the input frame.
402
- if (!ok) {
403
- delete output_[0];
404
- output_[0] = input_;
405
- output_[0]->SetPc(reinterpret_cast<intptr_t>(from_));
406
- } else {
407
- // Setup the frame pointer and the context pointer.
408
- output_[0]->SetRegister(rbp.code(), input_->GetRegister(rbp.code()));
409
- output_[0]->SetRegister(rsi.code(), input_->GetRegister(rsi.code()));
410
-
411
- unsigned pc_offset = data->OsrPcOffset()->value();
412
- intptr_t pc = reinterpret_cast<intptr_t>(
413
- optimized_code_->entry() + pc_offset);
414
- output_[0]->SetPc(pc);
415
- }
416
- Code* continuation =
417
- function->GetIsolate()->builtins()->builtin(Builtins::kNotifyOSR);
418
- output_[0]->SetContinuation(
419
- reinterpret_cast<intptr_t>(continuation->entry()));
420
-
421
- if (FLAG_trace_osr) {
422
- PrintF("[on-stack replacement translation %s: 0x%08" V8PRIxPTR " ",
423
- ok ? "finished" : "aborted",
424
- reinterpret_cast<intptr_t>(function));
425
- function->PrintName();
426
- PrintF(" => pc=0x%0" V8PRIxPTR "]\n", output_[0]->GetPc());
427
- }
428
- }
429
-
430
-
431
- void Deoptimizer::DoComputeFrame(TranslationIterator* iterator,
432
- int frame_index) {
433
- // Read the ast node id, function, and frame height for this output frame.
434
- Translation::Opcode opcode =
435
- static_cast<Translation::Opcode>(iterator->Next());
436
- USE(opcode);
437
- ASSERT(Translation::FRAME == opcode);
438
- int node_id = iterator->Next();
439
- JSFunction* function = JSFunction::cast(ComputeLiteral(iterator->Next()));
440
- unsigned height = iterator->Next();
441
- unsigned height_in_bytes = height * kPointerSize;
442
- if (FLAG_trace_deopt) {
443
- PrintF(" translating ");
444
- function->PrintName();
445
- PrintF(" => node=%d, height=%d\n", node_id, height_in_bytes);
446
- }
447
-
448
- // The 'fixed' part of the frame consists of the incoming parameters and
449
- // the part described by JavaScriptFrameConstants.
450
- unsigned fixed_frame_size = ComputeFixedSize(function);
451
- unsigned input_frame_size = static_cast<unsigned>(input_->GetFrameSize());
452
- unsigned output_frame_size = height_in_bytes + fixed_frame_size;
453
-
454
- // Allocate and store the output frame description.
455
- FrameDescription* output_frame =
456
- new(output_frame_size) FrameDescription(output_frame_size, function);
457
-
458
- bool is_bottommost = (0 == frame_index);
459
- bool is_topmost = (output_count_ - 1 == frame_index);
460
- ASSERT(frame_index >= 0 && frame_index < output_count_);
461
- ASSERT(output_[frame_index] == NULL);
462
- output_[frame_index] = output_frame;
463
-
464
- // The top address for the bottommost output frame can be computed from
465
- // the input frame pointer and the output frame's height. For all
466
- // subsequent output frames, it can be computed from the previous one's
467
- // top address and the current frame's size.
468
- intptr_t top_address;
469
- if (is_bottommost) {
470
- // 2 = context and function in the frame.
471
- top_address =
472
- input_->GetRegister(rbp.code()) - (2 * kPointerSize) - height_in_bytes;
473
- } else {
474
- top_address = output_[frame_index - 1]->GetTop() - output_frame_size;
475
- }
476
- output_frame->SetTop(top_address);
477
-
478
- // Compute the incoming parameter translation.
479
- int parameter_count = function->shared()->formal_parameter_count() + 1;
480
- unsigned output_offset = output_frame_size;
481
- unsigned input_offset = input_frame_size;
482
- for (int i = 0; i < parameter_count; ++i) {
483
- output_offset -= kPointerSize;
484
- DoTranslateCommand(iterator, frame_index, output_offset);
485
- }
486
- input_offset -= (parameter_count * kPointerSize);
487
-
488
- // There are no translation commands for the caller's pc and fp, the
489
- // context, and the function. Synthesize their values and set them up
490
- // explicitly.
491
- //
492
- // The caller's pc for the bottommost output frame is the same as in the
493
- // input frame. For all subsequent output frames, it can be read from the
494
- // previous one. This frame's pc can be computed from the non-optimized
495
- // function code and AST id of the bailout.
496
- output_offset -= kPointerSize;
497
- input_offset -= kPointerSize;
498
- intptr_t value;
499
- if (is_bottommost) {
500
- value = input_->GetFrameSlot(input_offset);
501
- } else {
502
- value = output_[frame_index - 1]->GetPc();
503
- }
504
- output_frame->SetFrameSlot(output_offset, value);
505
- if (FLAG_trace_deopt) {
506
- PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
507
- V8PRIxPTR " ; caller's pc\n",
508
- top_address + output_offset, output_offset, value);
509
- }
510
-
511
- // The caller's frame pointer for the bottommost output frame is the same
512
- // as in the input frame. For all subsequent output frames, it can be
513
- // read from the previous one. Also compute and set this frame's frame
514
- // pointer.
515
- output_offset -= kPointerSize;
516
- input_offset -= kPointerSize;
517
- if (is_bottommost) {
518
- value = input_->GetFrameSlot(input_offset);
519
- } else {
520
- value = output_[frame_index - 1]->GetFp();
521
- }
522
- output_frame->SetFrameSlot(output_offset, value);
523
- intptr_t fp_value = top_address + output_offset;
524
- ASSERT(!is_bottommost || input_->GetRegister(rbp.code()) == fp_value);
525
- output_frame->SetFp(fp_value);
526
- if (is_topmost) output_frame->SetRegister(rbp.code(), fp_value);
527
- if (FLAG_trace_deopt) {
528
- PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
529
- V8PRIxPTR " ; caller's fp\n",
530
- fp_value, output_offset, value);
531
- }
532
-
533
- // For the bottommost output frame the context can be gotten from the input
534
- // frame. For all subsequent output frames it can be gotten from the function
535
- // so long as we don't inline functions that need local contexts.
536
- output_offset -= kPointerSize;
537
- input_offset -= kPointerSize;
538
- if (is_bottommost) {
539
- value = input_->GetFrameSlot(input_offset);
540
- } else {
541
- value = reinterpret_cast<intptr_t>(function->context());
542
- }
543
- output_frame->SetFrameSlot(output_offset, value);
544
- if (is_topmost) output_frame->SetRegister(rsi.code(), value);
545
- if (FLAG_trace_deopt) {
546
- PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
547
- V8PRIxPTR "; context\n",
548
- top_address + output_offset, output_offset, value);
549
- }
550
-
551
- // The function was mentioned explicitly in the BEGIN_FRAME.
552
- output_offset -= kPointerSize;
553
- input_offset -= kPointerSize;
554
- value = reinterpret_cast<intptr_t>(function);
555
- // The function for the bottommost output frame should also agree with the
556
- // input frame.
557
- ASSERT(!is_bottommost || input_->GetFrameSlot(input_offset) == value);
558
- output_frame->SetFrameSlot(output_offset, value);
559
- if (FLAG_trace_deopt) {
560
- PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
561
- V8PRIxPTR "; function\n",
562
- top_address + output_offset, output_offset, value);
563
- }
564
-
565
- // Translate the rest of the frame.
566
- for (unsigned i = 0; i < height; ++i) {
567
- output_offset -= kPointerSize;
568
- DoTranslateCommand(iterator, frame_index, output_offset);
569
- }
570
- ASSERT(0 == output_offset);
571
-
572
- // Compute this frame's PC, state, and continuation.
573
- Code* non_optimized_code = function->shared()->code();
574
- FixedArray* raw_data = non_optimized_code->deoptimization_data();
575
- DeoptimizationOutputData* data = DeoptimizationOutputData::cast(raw_data);
576
- Address start = non_optimized_code->instruction_start();
577
- unsigned pc_and_state = GetOutputInfo(data, node_id, function->shared());
578
- unsigned pc_offset = FullCodeGenerator::PcField::decode(pc_and_state);
579
- intptr_t pc_value = reinterpret_cast<intptr_t>(start + pc_offset);
580
- output_frame->SetPc(pc_value);
581
-
582
- FullCodeGenerator::State state =
583
- FullCodeGenerator::StateField::decode(pc_and_state);
584
- output_frame->SetState(Smi::FromInt(state));
585
-
586
- // Set the continuation for the topmost frame.
587
- if (is_topmost) {
588
- Code* continuation = (bailout_type_ == EAGER)
589
- ? isolate_->builtins()->builtin(Builtins::kNotifyDeoptimized)
590
- : isolate_->builtins()->builtin(Builtins::kNotifyLazyDeoptimized);
591
- output_frame->SetContinuation(
592
- reinterpret_cast<intptr_t>(continuation->entry()));
593
- }
594
-
595
- if (output_count_ - 1 == frame_index) iterator->Done();
596
- }
597
-
598
-
599
- #define __ masm()->
600
-
601
- void Deoptimizer::EntryGenerator::Generate() {
602
- GeneratePrologue();
603
-
604
- // Save all general purpose registers before messing with them.
605
- const int kNumberOfRegisters = Register::kNumRegisters;
606
-
607
- const int kDoubleRegsSize = kDoubleSize *
608
- XMMRegister::kNumAllocatableRegisters;
609
- __ subq(rsp, Immediate(kDoubleRegsSize));
610
-
611
- for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) {
612
- XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i);
613
- int offset = i * kDoubleSize;
614
- __ movsd(Operand(rsp, offset), xmm_reg);
615
- }
616
-
617
- // We push all registers onto the stack, even though we do not need
618
- // to restore all later.
619
- for (int i = 0; i < kNumberOfRegisters; i++) {
620
- Register r = Register::toRegister(i);
621
- __ push(r);
622
- }
623
-
624
- const int kSavedRegistersAreaSize = kNumberOfRegisters * kPointerSize +
625
- kDoubleRegsSize;
626
-
627
- // When calling new_deoptimizer_function we need to pass the last argument
628
- // on the stack on windows and in r8 on linux. The remaining arguments are
629
- // all passed in registers (different ones on linux and windows though).
630
-
631
- #ifdef _WIN64
632
- Register arg4 = r9;
633
- Register arg3 = r8;
634
- Register arg2 = rdx;
635
- Register arg1 = rcx;
636
- #else
637
- Register arg4 = rcx;
638
- Register arg3 = rdx;
639
- Register arg2 = rsi;
640
- Register arg1 = rdi;
641
- #endif
642
-
643
- // We use this to keep the value of the fifth argument temporarily.
644
- // Unfortunately we can't store it directly in r8 (used for passing
645
- // this on linux), since it is another parameter passing register on windows.
646
- Register arg5 = r11;
647
-
648
- // Get the bailout id from the stack.
649
- __ movq(arg3, Operand(rsp, kSavedRegistersAreaSize));
650
-
651
- // Get the address of the location in the code object if possible
652
- // and compute the fp-to-sp delta in register arg5.
653
- if (type() == EAGER) {
654
- __ Set(arg4, 0);
655
- __ lea(arg5, Operand(rsp, kSavedRegistersAreaSize + 1 * kPointerSize));
656
- } else {
657
- __ movq(arg4, Operand(rsp, kSavedRegistersAreaSize + 1 * kPointerSize));
658
- __ lea(arg5, Operand(rsp, kSavedRegistersAreaSize + 2 * kPointerSize));
659
- }
660
-
661
- __ subq(arg5, rbp);
662
- __ neg(arg5);
663
-
664
- // Allocate a new deoptimizer object.
665
- __ PrepareCallCFunction(6);
666
- __ movq(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
667
- __ movq(arg1, rax);
668
- __ movq(arg2, Immediate(type()));
669
- // Args 3 and 4 are already in the right registers.
670
-
671
- // On windows put the arguments on the stack (PrepareCallCFunction
672
- // has created space for this). On linux pass the arguments in r8 and r9.
673
- #ifdef _WIN64
674
- __ movq(Operand(rsp, 4 * kPointerSize), arg5);
675
- __ LoadAddress(arg5, ExternalReference::isolate_address());
676
- __ movq(Operand(rsp, 5 * kPointerSize), arg5);
677
- #else
678
- __ movq(r8, arg5);
679
- __ LoadAddress(r9, ExternalReference::isolate_address());
680
- #endif
681
-
682
- Isolate* isolate = masm()->isolate();
683
-
684
- __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate), 6);
685
- // Preserve deoptimizer object in register rax and get the input
686
- // frame descriptor pointer.
687
- __ movq(rbx, Operand(rax, Deoptimizer::input_offset()));
688
-
689
- // Fill in the input registers.
690
- for (int i = kNumberOfRegisters -1; i >= 0; i--) {
691
- int offset = (i * kPointerSize) + FrameDescription::registers_offset();
692
- __ pop(Operand(rbx, offset));
693
- }
694
-
695
- // Fill in the double input registers.
696
- int double_regs_offset = FrameDescription::double_registers_offset();
697
- for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) {
698
- int dst_offset = i * kDoubleSize + double_regs_offset;
699
- __ pop(Operand(rbx, dst_offset));
700
- }
701
-
702
- // Remove the bailout id from the stack.
703
- if (type() == EAGER) {
704
- __ addq(rsp, Immediate(kPointerSize));
705
- } else {
706
- __ addq(rsp, Immediate(2 * kPointerSize));
707
- }
708
-
709
- // Compute a pointer to the unwinding limit in register rcx; that is
710
- // the first stack slot not part of the input frame.
711
- __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset()));
712
- __ addq(rcx, rsp);
713
-
714
- // Unwind the stack down to - but not including - the unwinding
715
- // limit and copy the contents of the activation frame to the input
716
- // frame description.
717
- __ lea(rdx, Operand(rbx, FrameDescription::frame_content_offset()));
718
- Label pop_loop;
719
- __ bind(&pop_loop);
720
- __ pop(Operand(rdx, 0));
721
- __ addq(rdx, Immediate(sizeof(intptr_t)));
722
- __ cmpq(rcx, rsp);
723
- __ j(not_equal, &pop_loop);
724
-
725
- // Compute the output frame in the deoptimizer.
726
- __ push(rax);
727
- __ PrepareCallCFunction(2);
728
- __ movq(arg1, rax);
729
- __ LoadAddress(arg2, ExternalReference::isolate_address());
730
- __ CallCFunction(
731
- ExternalReference::compute_output_frames_function(isolate), 2);
732
- __ pop(rax);
733
-
734
- // Replace the current frame with the output frames.
735
- Label outer_push_loop, inner_push_loop;
736
- // Outer loop state: rax = current FrameDescription**, rdx = one past the
737
- // last FrameDescription**.
738
- __ movl(rdx, Operand(rax, Deoptimizer::output_count_offset()));
739
- __ movq(rax, Operand(rax, Deoptimizer::output_offset()));
740
- __ lea(rdx, Operand(rax, rdx, times_8, 0));
741
- __ bind(&outer_push_loop);
742
- // Inner loop state: rbx = current FrameDescription*, rcx = loop index.
743
- __ movq(rbx, Operand(rax, 0));
744
- __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset()));
745
- __ bind(&inner_push_loop);
746
- __ subq(rcx, Immediate(sizeof(intptr_t)));
747
- __ push(Operand(rbx, rcx, times_1, FrameDescription::frame_content_offset()));
748
- __ testq(rcx, rcx);
749
- __ j(not_zero, &inner_push_loop);
750
- __ addq(rax, Immediate(kPointerSize));
751
- __ cmpq(rax, rdx);
752
- __ j(below, &outer_push_loop);
753
-
754
- // In case of OSR, we have to restore the XMM registers.
755
- if (type() == OSR) {
756
- for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) {
757
- XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i);
758
- int src_offset = i * kDoubleSize + double_regs_offset;
759
- __ movsd(xmm_reg, Operand(rbx, src_offset));
760
- }
761
- }
762
-
763
- // Push state, pc, and continuation from the last output frame.
764
- if (type() != OSR) {
765
- __ push(Operand(rbx, FrameDescription::state_offset()));
766
- }
767
- __ push(Operand(rbx, FrameDescription::pc_offset()));
768
- __ push(Operand(rbx, FrameDescription::continuation_offset()));
769
-
770
- // Push the registers from the last output frame.
771
- for (int i = 0; i < kNumberOfRegisters; i++) {
772
- int offset = (i * kPointerSize) + FrameDescription::registers_offset();
773
- __ push(Operand(rbx, offset));
774
- }
775
-
776
- // Restore the registers from the stack.
777
- for (int i = kNumberOfRegisters - 1; i >= 0 ; i--) {
778
- Register r = Register::toRegister(i);
779
- // Do not restore rsp, simply pop the value into the next register
780
- // and overwrite this afterwards.
781
- if (r.is(rsp)) {
782
- ASSERT(i > 0);
783
- r = Register::toRegister(i - 1);
784
- }
785
- __ pop(r);
786
- }
787
-
788
- // Set up the roots register.
789
- __ InitializeRootRegister();
790
- __ InitializeSmiConstantRegister();
791
-
792
- // Return to the continuation point.
793
- __ ret(0);
794
- }
795
-
796
-
797
- void Deoptimizer::TableEntryGenerator::GeneratePrologue() {
798
- // Create a sequence of deoptimization entries.
799
- Label done;
800
- for (int i = 0; i < count(); i++) {
801
- int start = masm()->pc_offset();
802
- USE(start);
803
- __ push_imm32(i);
804
- __ jmp(&done);
805
- ASSERT(masm()->pc_offset() - start == table_entry_size_);
806
- }
807
- __ bind(&done);
808
- }
809
-
810
- #undef __
811
-
812
-
813
- } } // namespace v8::internal
814
-
815
- #endif // V8_TARGET_ARCH_X64