therubyracer 0.9.0beta2 → 0.9.0beta3

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 (920) hide show
  1. data/.gitmodules +3 -0
  2. data/ext/v8/upstream/Makefile +1 -2
  3. data/ext/v8/upstream/v8/.gitignore +33 -0
  4. data/ext/v8/upstream/v8/AUTHORS +42 -0
  5. data/ext/v8/upstream/v8/ChangeLog +2663 -0
  6. data/ext/v8/upstream/{3.1.8 → v8}/LICENSE +0 -0
  7. data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.strongtalk +0 -0
  8. data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.v8 +0 -0
  9. data/ext/v8/upstream/{3.1.8 → v8}/LICENSE.valgrind +0 -0
  10. data/ext/v8/upstream/v8/SConstruct +1473 -0
  11. data/ext/v8/upstream/{3.1.8 → v8}/build/README.txt +0 -0
  12. data/ext/v8/upstream/{3.1.8 → v8}/build/all.gyp +0 -0
  13. data/ext/v8/upstream/{3.1.8 → v8}/build/armu.gypi +0 -0
  14. data/ext/v8/upstream/{3.1.8 → v8}/build/common.gypi +0 -0
  15. data/ext/v8/upstream/{3.1.8 → v8}/build/gyp_v8 +0 -0
  16. data/ext/v8/upstream/v8/include/v8-debug.h +394 -0
  17. data/ext/v8/upstream/v8/include/v8-preparser.h +116 -0
  18. data/ext/v8/upstream/v8/include/v8-profiler.h +505 -0
  19. data/ext/v8/upstream/v8/include/v8-testing.h +104 -0
  20. data/ext/v8/upstream/v8/include/v8.h +4000 -0
  21. data/ext/v8/upstream/{3.1.8 → v8}/include/v8stdint.h +0 -0
  22. data/ext/v8/upstream/v8/preparser/SConscript +38 -0
  23. data/ext/v8/upstream/v8/preparser/preparser-process.cc +169 -0
  24. data/ext/v8/upstream/v8/src/SConscript +380 -0
  25. data/ext/v8/upstream/v8/src/accessors.cc +766 -0
  26. data/ext/v8/upstream/{3.1.8 → v8}/src/accessors.h +0 -0
  27. data/ext/v8/upstream/v8/src/allocation-inl.h +49 -0
  28. data/ext/v8/upstream/v8/src/allocation.cc +122 -0
  29. data/ext/v8/upstream/v8/src/allocation.h +143 -0
  30. data/ext/v8/upstream/v8/src/api.cc +5678 -0
  31. data/ext/v8/upstream/v8/src/api.h +572 -0
  32. data/ext/v8/upstream/{3.1.8 → v8}/src/apinatives.js +0 -0
  33. data/ext/v8/upstream/v8/src/apiutils.h +73 -0
  34. data/ext/v8/upstream/v8/src/arguments.h +116 -0
  35. data/ext/v8/upstream/v8/src/arm/assembler-arm-inl.h +353 -0
  36. data/ext/v8/upstream/v8/src/arm/assembler-arm.cc +2877 -0
  37. data/ext/v8/upstream/v8/src/arm/assembler-arm.h +1382 -0
  38. data/ext/v8/upstream/v8/src/arm/builtins-arm.cc +1634 -0
  39. data/ext/v8/upstream/v8/src/arm/code-stubs-arm.cc +6917 -0
  40. data/ext/v8/upstream/v8/src/arm/code-stubs-arm.h +623 -0
  41. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/codegen-arm-inl.h +0 -0
  42. data/ext/v8/upstream/v8/src/arm/codegen-arm.cc +7437 -0
  43. data/ext/v8/upstream/v8/src/arm/codegen-arm.h +595 -0
  44. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/constants-arm.cc +0 -0
  45. data/ext/v8/upstream/v8/src/arm/constants-arm.h +778 -0
  46. data/ext/v8/upstream/v8/src/arm/cpu-arm.cc +149 -0
  47. data/ext/v8/upstream/v8/src/arm/debug-arm.cc +317 -0
  48. data/ext/v8/upstream/v8/src/arm/deoptimizer-arm.cc +737 -0
  49. data/ext/v8/upstream/v8/src/arm/disasm-arm.cc +1503 -0
  50. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/frames-arm.cc +0 -0
  51. data/ext/v8/upstream/v8/src/arm/frames-arm.h +168 -0
  52. data/ext/v8/upstream/v8/src/arm/full-codegen-arm.cc +4374 -0
  53. data/ext/v8/upstream/v8/src/arm/ic-arm.cc +1793 -0
  54. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/jump-target-arm.cc +0 -0
  55. data/ext/v8/upstream/v8/src/arm/lithium-arm.cc +2120 -0
  56. data/ext/v8/upstream/v8/src/arm/lithium-arm.h +2179 -0
  57. data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.cc +4132 -0
  58. data/ext/v8/upstream/v8/src/arm/lithium-codegen-arm.h +329 -0
  59. data/ext/v8/upstream/v8/src/arm/lithium-gap-resolver-arm.cc +305 -0
  60. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/lithium-gap-resolver-arm.h +0 -0
  61. data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.cc +2939 -0
  62. data/ext/v8/upstream/v8/src/arm/macro-assembler-arm.h +1071 -0
  63. data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.cc +1287 -0
  64. data/ext/v8/upstream/v8/src/arm/regexp-macro-assembler-arm.h +253 -0
  65. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm-inl.h +0 -0
  66. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm.cc +0 -0
  67. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/register-allocator-arm.h +0 -0
  68. data/ext/v8/upstream/v8/src/arm/simulator-arm.cc +3288 -0
  69. data/ext/v8/upstream/v8/src/arm/simulator-arm.h +413 -0
  70. data/ext/v8/upstream/v8/src/arm/stub-cache-arm.cc +4034 -0
  71. data/ext/v8/upstream/{3.1.8 → v8}/src/arm/virtual-frame-arm-inl.h +0 -0
  72. data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.cc +843 -0
  73. data/ext/v8/upstream/v8/src/arm/virtual-frame-arm.h +523 -0
  74. data/ext/v8/upstream/v8/src/array.js +1249 -0
  75. data/ext/v8/upstream/v8/src/assembler.cc +1067 -0
  76. data/ext/v8/upstream/v8/src/assembler.h +823 -0
  77. data/ext/v8/upstream/v8/src/ast-inl.h +112 -0
  78. data/ext/v8/upstream/v8/src/ast.cc +1078 -0
  79. data/ext/v8/upstream/v8/src/ast.h +2234 -0
  80. data/ext/v8/upstream/v8/src/atomicops.h +167 -0
  81. data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_arm_gcc.h +0 -0
  82. data/ext/v8/upstream/v8/src/atomicops_internals_mips_gcc.h +169 -0
  83. data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_gcc.cc +0 -0
  84. data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_gcc.h +0 -0
  85. data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_macosx.h +0 -0
  86. data/ext/v8/upstream/{3.1.8 → v8}/src/atomicops_internals_x86_msvc.h +0 -0
  87. data/ext/v8/upstream/{3.1.8 → v8}/src/bignum-dtoa.cc +0 -0
  88. data/ext/v8/upstream/{3.1.8 → v8}/src/bignum-dtoa.h +0 -0
  89. data/ext/v8/upstream/{3.1.8 → v8}/src/bignum.cc +0 -0
  90. data/ext/v8/upstream/{3.1.8 → v8}/src/bignum.h +0 -0
  91. data/ext/v8/upstream/v8/src/bootstrapper.cc +2138 -0
  92. data/ext/v8/upstream/v8/src/bootstrapper.h +185 -0
  93. data/ext/v8/upstream/v8/src/builtins.cc +1708 -0
  94. data/ext/v8/upstream/v8/src/builtins.h +368 -0
  95. data/ext/v8/upstream/{3.1.8 → v8}/src/bytecodes-irregexp.h +0 -0
  96. data/ext/v8/upstream/{3.1.8 → v8}/src/cached-powers.cc +0 -0
  97. data/ext/v8/upstream/{3.1.8 → v8}/src/cached-powers.h +0 -0
  98. data/ext/v8/upstream/{3.1.8 → v8}/src/char-predicates-inl.h +0 -0
  99. data/ext/v8/upstream/{3.1.8 → v8}/src/char-predicates.h +0 -0
  100. data/ext/v8/upstream/v8/src/checks.cc +110 -0
  101. data/ext/v8/upstream/v8/src/checks.h +296 -0
  102. data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue-inl.h +0 -0
  103. data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue.cc +0 -0
  104. data/ext/v8/upstream/{3.1.8 → v8}/src/circular-queue.h +0 -0
  105. data/ext/v8/upstream/v8/src/code-stubs.cc +240 -0
  106. data/ext/v8/upstream/v8/src/code-stubs.h +971 -0
  107. data/ext/v8/upstream/{3.1.8 → v8}/src/code.h +0 -0
  108. data/ext/v8/upstream/v8/src/codegen-inl.h +68 -0
  109. data/ext/v8/upstream/v8/src/codegen.cc +505 -0
  110. data/ext/v8/upstream/v8/src/codegen.h +245 -0
  111. data/ext/v8/upstream/v8/src/compilation-cache.cc +540 -0
  112. data/ext/v8/upstream/v8/src/compilation-cache.h +287 -0
  113. data/ext/v8/upstream/v8/src/compiler.cc +792 -0
  114. data/ext/v8/upstream/v8/src/compiler.h +307 -0
  115. data/ext/v8/upstream/v8/src/contexts.cc +327 -0
  116. data/ext/v8/upstream/v8/src/contexts.h +382 -0
  117. data/ext/v8/upstream/{3.1.8 → v8}/src/conversions-inl.h +0 -0
  118. data/ext/v8/upstream/v8/src/conversions.cc +1125 -0
  119. data/ext/v8/upstream/{3.1.8 → v8}/src/conversions.h +0 -0
  120. data/ext/v8/upstream/v8/src/counters.cc +93 -0
  121. data/ext/v8/upstream/v8/src/counters.h +254 -0
  122. data/ext/v8/upstream/v8/src/cpu-profiler-inl.h +101 -0
  123. data/ext/v8/upstream/v8/src/cpu-profiler.cc +606 -0
  124. data/ext/v8/upstream/v8/src/cpu-profiler.h +305 -0
  125. data/ext/v8/upstream/v8/src/cpu.h +67 -0
  126. data/ext/v8/upstream/v8/src/d8-debug.cc +367 -0
  127. data/ext/v8/upstream/v8/src/d8-debug.h +158 -0
  128. data/ext/v8/upstream/v8/src/d8-posix.cc +695 -0
  129. data/ext/v8/upstream/{3.1.8 → v8}/src/d8-readline.cc +0 -0
  130. data/ext/v8/upstream/{3.1.8 → v8}/src/d8-windows.cc +0 -0
  131. data/ext/v8/upstream/v8/src/d8.cc +796 -0
  132. data/ext/v8/upstream/v8/src/d8.gyp +88 -0
  133. data/ext/v8/upstream/{3.1.8 → v8}/src/d8.h +0 -0
  134. data/ext/v8/upstream/{3.1.8 → v8}/src/d8.js +0 -0
  135. data/ext/v8/upstream/{3.1.8 → v8}/src/data-flow.cc +0 -0
  136. data/ext/v8/upstream/v8/src/data-flow.h +379 -0
  137. data/ext/v8/upstream/{3.1.8 → v8}/src/date.js +0 -0
  138. data/ext/v8/upstream/{3.1.8 → v8}/src/dateparser-inl.h +0 -0
  139. data/ext/v8/upstream/{3.1.8 → v8}/src/dateparser.cc +0 -0
  140. data/ext/v8/upstream/v8/src/dateparser.h +265 -0
  141. data/ext/v8/upstream/v8/src/debug-agent.cc +447 -0
  142. data/ext/v8/upstream/v8/src/debug-agent.h +129 -0
  143. data/ext/v8/upstream/{3.1.8 → v8}/src/debug-debugger.js +0 -0
  144. data/ext/v8/upstream/v8/src/debug.cc +3188 -0
  145. data/ext/v8/upstream/v8/src/debug.h +1055 -0
  146. data/ext/v8/upstream/v8/src/deoptimizer.cc +1296 -0
  147. data/ext/v8/upstream/v8/src/deoptimizer.h +629 -0
  148. data/ext/v8/upstream/v8/src/disasm.h +80 -0
  149. data/ext/v8/upstream/v8/src/disassembler.cc +339 -0
  150. data/ext/v8/upstream/{3.1.8 → v8}/src/disassembler.h +0 -0
  151. data/ext/v8/upstream/{3.1.8 → v8}/src/diy-fp.cc +0 -0
  152. data/ext/v8/upstream/{3.1.8 → v8}/src/diy-fp.h +0 -0
  153. data/ext/v8/upstream/{3.1.8 → v8}/src/double.h +0 -0
  154. data/ext/v8/upstream/{3.1.8 → v8}/src/dtoa.cc +0 -0
  155. data/ext/v8/upstream/{3.1.8 → v8}/src/dtoa.h +0 -0
  156. data/ext/v8/upstream/v8/src/execution.cc +791 -0
  157. data/ext/v8/upstream/v8/src/execution.h +291 -0
  158. data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.cc +250 -0
  159. data/ext/v8/upstream/v8/src/extensions/experimental/break-iterator.h +89 -0
  160. data/ext/v8/upstream/v8/src/extensions/experimental/experimental.gyp +55 -0
  161. data/ext/v8/upstream/v8/src/extensions/experimental/i18n-extension.cc +284 -0
  162. data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/experimental/i18n-extension.h +0 -0
  163. data/ext/v8/upstream/v8/src/extensions/externalize-string-extension.cc +141 -0
  164. data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/externalize-string-extension.h +0 -0
  165. data/ext/v8/upstream/v8/src/extensions/gc-extension.cc +58 -0
  166. data/ext/v8/upstream/{3.1.8 → v8}/src/extensions/gc-extension.h +0 -0
  167. data/ext/v8/upstream/v8/src/factory.cc +1194 -0
  168. data/ext/v8/upstream/v8/src/factory.h +436 -0
  169. data/ext/v8/upstream/{3.1.8 → v8}/src/fast-dtoa.cc +0 -0
  170. data/ext/v8/upstream/{3.1.8 → v8}/src/fast-dtoa.h +0 -0
  171. data/ext/v8/upstream/{3.1.8 → v8}/src/fixed-dtoa.cc +0 -0
  172. data/ext/v8/upstream/{3.1.8 → v8}/src/fixed-dtoa.h +0 -0
  173. data/ext/v8/upstream/v8/src/flag-definitions.h +556 -0
  174. data/ext/v8/upstream/{3.1.8 → v8}/src/flags.cc +0 -0
  175. data/ext/v8/upstream/{3.1.8 → v8}/src/flags.h +0 -0
  176. data/ext/v8/upstream/v8/src/frame-element.cc +37 -0
  177. data/ext/v8/upstream/v8/src/frame-element.h +269 -0
  178. data/ext/v8/upstream/v8/src/frames-inl.h +236 -0
  179. data/ext/v8/upstream/v8/src/frames.cc +1273 -0
  180. data/ext/v8/upstream/v8/src/frames.h +854 -0
  181. data/ext/v8/upstream/v8/src/full-codegen.cc +1385 -0
  182. data/ext/v8/upstream/v8/src/full-codegen.h +753 -0
  183. data/ext/v8/upstream/v8/src/func-name-inferrer.cc +91 -0
  184. data/ext/v8/upstream/v8/src/func-name-inferrer.h +111 -0
  185. data/ext/v8/upstream/v8/src/gdb-jit.cc +1548 -0
  186. data/ext/v8/upstream/{3.1.8 → v8}/src/gdb-jit.h +0 -0
  187. data/ext/v8/upstream/v8/src/global-handles.cc +596 -0
  188. data/ext/v8/upstream/v8/src/global-handles.h +239 -0
  189. data/ext/v8/upstream/v8/src/globals.h +325 -0
  190. data/ext/v8/upstream/v8/src/handles-inl.h +177 -0
  191. data/ext/v8/upstream/v8/src/handles.cc +965 -0
  192. data/ext/v8/upstream/v8/src/handles.h +372 -0
  193. data/ext/v8/upstream/{3.1.8 → v8}/src/hashmap.cc +0 -0
  194. data/ext/v8/upstream/v8/src/hashmap.h +121 -0
  195. data/ext/v8/upstream/v8/src/heap-inl.h +703 -0
  196. data/ext/v8/upstream/v8/src/heap-profiler.cc +1173 -0
  197. data/ext/v8/upstream/v8/src/heap-profiler.h +396 -0
  198. data/ext/v8/upstream/v8/src/heap.cc +5856 -0
  199. data/ext/v8/upstream/v8/src/heap.h +2264 -0
  200. data/ext/v8/upstream/v8/src/hydrogen-instructions.cc +1639 -0
  201. data/ext/v8/upstream/v8/src/hydrogen-instructions.h +3657 -0
  202. data/ext/v8/upstream/v8/src/hydrogen.cc +6011 -0
  203. data/ext/v8/upstream/v8/src/hydrogen.h +1137 -0
  204. data/ext/v8/upstream/v8/src/ia32/assembler-ia32-inl.h +430 -0
  205. data/ext/v8/upstream/v8/src/ia32/assembler-ia32.cc +2846 -0
  206. data/ext/v8/upstream/v8/src/ia32/assembler-ia32.h +1159 -0
  207. data/ext/v8/upstream/v8/src/ia32/builtins-ia32.cc +1596 -0
  208. data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.cc +6549 -0
  209. data/ext/v8/upstream/v8/src/ia32/code-stubs-ia32.h +495 -0
  210. data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/codegen-ia32-inl.h +0 -0
  211. data/ext/v8/upstream/v8/src/ia32/codegen-ia32.cc +10385 -0
  212. data/ext/v8/upstream/v8/src/ia32/codegen-ia32.h +801 -0
  213. data/ext/v8/upstream/v8/src/ia32/cpu-ia32.cc +88 -0
  214. data/ext/v8/upstream/v8/src/ia32/debug-ia32.cc +312 -0
  215. data/ext/v8/upstream/v8/src/ia32/deoptimizer-ia32.cc +774 -0
  216. data/ext/v8/upstream/v8/src/ia32/disasm-ia32.cc +1620 -0
  217. data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/frames-ia32.cc +0 -0
  218. data/ext/v8/upstream/v8/src/ia32/frames-ia32.h +140 -0
  219. data/ext/v8/upstream/v8/src/ia32/full-codegen-ia32.cc +4357 -0
  220. data/ext/v8/upstream/v8/src/ia32/ic-ia32.cc +1779 -0
  221. data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/jump-target-ia32.cc +0 -0
  222. data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.cc +4158 -0
  223. data/ext/v8/upstream/v8/src/ia32/lithium-codegen-ia32.h +318 -0
  224. data/ext/v8/upstream/v8/src/ia32/lithium-gap-resolver-ia32.cc +466 -0
  225. data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/lithium-gap-resolver-ia32.h +0 -0
  226. data/ext/v8/upstream/v8/src/ia32/lithium-ia32.cc +2181 -0
  227. data/ext/v8/upstream/v8/src/ia32/lithium-ia32.h +2235 -0
  228. data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.cc +2056 -0
  229. data/ext/v8/upstream/v8/src/ia32/macro-assembler-ia32.h +807 -0
  230. data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.cc +1264 -0
  231. data/ext/v8/upstream/v8/src/ia32/regexp-macro-assembler-ia32.h +216 -0
  232. data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/register-allocator-ia32-inl.h +0 -0
  233. data/ext/v8/upstream/v8/src/ia32/register-allocator-ia32.cc +157 -0
  234. data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/register-allocator-ia32.h +0 -0
  235. data/ext/v8/upstream/{3.1.8 → v8}/src/ia32/simulator-ia32.cc +0 -0
  236. data/ext/v8/upstream/v8/src/ia32/simulator-ia32.h +72 -0
  237. data/ext/v8/upstream/v8/src/ia32/stub-cache-ia32.cc +3711 -0
  238. data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.cc +1366 -0
  239. data/ext/v8/upstream/v8/src/ia32/virtual-frame-ia32.h +650 -0
  240. data/ext/v8/upstream/v8/src/ic-inl.h +130 -0
  241. data/ext/v8/upstream/v8/src/ic.cc +2389 -0
  242. data/ext/v8/upstream/v8/src/ic.h +675 -0
  243. data/ext/v8/upstream/{3.1.8 → v8}/src/inspector.cc +0 -0
  244. data/ext/v8/upstream/{3.1.8 → v8}/src/inspector.h +0 -0
  245. data/ext/v8/upstream/v8/src/interpreter-irregexp.cc +659 -0
  246. data/ext/v8/upstream/v8/src/interpreter-irregexp.h +49 -0
  247. data/ext/v8/upstream/v8/src/isolate.cc +883 -0
  248. data/ext/v8/upstream/v8/src/isolate.h +1306 -0
  249. data/ext/v8/upstream/v8/src/json.js +342 -0
  250. data/ext/v8/upstream/v8/src/jsregexp.cc +5371 -0
  251. data/ext/v8/upstream/v8/src/jsregexp.h +1483 -0
  252. data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-heavy-inl.h +0 -0
  253. data/ext/v8/upstream/v8/src/jump-target-heavy.cc +427 -0
  254. data/ext/v8/upstream/v8/src/jump-target-heavy.h +238 -0
  255. data/ext/v8/upstream/v8/src/jump-target-inl.h +48 -0
  256. data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-light-inl.h +0 -0
  257. data/ext/v8/upstream/v8/src/jump-target-light.cc +111 -0
  258. data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target-light.h +0 -0
  259. data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target.cc +0 -0
  260. data/ext/v8/upstream/{3.1.8 → v8}/src/jump-target.h +0 -0
  261. data/ext/v8/upstream/{3.1.8 → v8}/src/list-inl.h +0 -0
  262. data/ext/v8/upstream/{3.1.8 → v8}/src/list.h +0 -0
  263. data/ext/v8/upstream/v8/src/lithium-allocator-inl.h +142 -0
  264. data/ext/v8/upstream/v8/src/lithium-allocator.cc +2105 -0
  265. data/ext/v8/upstream/v8/src/lithium-allocator.h +630 -0
  266. data/ext/v8/upstream/v8/src/lithium.cc +169 -0
  267. data/ext/v8/upstream/{3.1.8 → v8}/src/lithium.h +0 -0
  268. data/ext/v8/upstream/{3.1.8 → v8}/src/liveedit-debugger.js +0 -0
  269. data/ext/v8/upstream/v8/src/liveedit.cc +1693 -0
  270. data/ext/v8/upstream/v8/src/liveedit.h +179 -0
  271. data/ext/v8/upstream/{3.1.8 → v8}/src/liveobjectlist-inl.h +0 -0
  272. data/ext/v8/upstream/v8/src/liveobjectlist.cc +2589 -0
  273. data/ext/v8/upstream/v8/src/liveobjectlist.h +322 -0
  274. data/ext/v8/upstream/{3.1.8 → v8}/src/log-inl.h +0 -0
  275. data/ext/v8/upstream/v8/src/log-utils.cc +423 -0
  276. data/ext/v8/upstream/v8/src/log-utils.h +229 -0
  277. data/ext/v8/upstream/v8/src/log.cc +1666 -0
  278. data/ext/v8/upstream/v8/src/log.h +446 -0
  279. data/ext/v8/upstream/{3.1.8 → v8}/src/macro-assembler.h +0 -0
  280. data/ext/v8/upstream/{3.1.8 → v8}/src/macros.py +0 -0
  281. data/ext/v8/upstream/v8/src/mark-compact.cc +3092 -0
  282. data/ext/v8/upstream/v8/src/mark-compact.h +506 -0
  283. data/ext/v8/upstream/{3.1.8 → v8}/src/math.js +0 -0
  284. data/ext/v8/upstream/v8/src/messages.cc +166 -0
  285. data/ext/v8/upstream/{3.1.8 → v8}/src/messages.h +0 -0
  286. data/ext/v8/upstream/v8/src/messages.js +1090 -0
  287. data/ext/v8/upstream/v8/src/mips/assembler-mips-inl.h +335 -0
  288. data/ext/v8/upstream/v8/src/mips/assembler-mips.cc +2093 -0
  289. data/ext/v8/upstream/v8/src/mips/assembler-mips.h +1066 -0
  290. data/ext/v8/upstream/v8/src/mips/builtins-mips.cc +148 -0
  291. data/ext/v8/upstream/v8/src/mips/code-stubs-mips.cc +752 -0
  292. data/ext/v8/upstream/v8/src/mips/code-stubs-mips.h +511 -0
  293. data/ext/v8/upstream/v8/src/mips/codegen-mips-inl.h +64 -0
  294. data/ext/v8/upstream/v8/src/mips/codegen-mips.cc +1213 -0
  295. data/ext/v8/upstream/v8/src/mips/codegen-mips.h +633 -0
  296. data/ext/v8/upstream/v8/src/mips/constants-mips.cc +352 -0
  297. data/ext/v8/upstream/v8/src/mips/constants-mips.h +723 -0
  298. data/ext/v8/upstream/v8/src/mips/cpu-mips.cc +90 -0
  299. data/ext/v8/upstream/v8/src/mips/debug-mips.cc +155 -0
  300. data/ext/v8/upstream/v8/src/mips/deoptimizer-mips.cc +91 -0
  301. data/ext/v8/upstream/v8/src/mips/disasm-mips.cc +1023 -0
  302. data/ext/v8/upstream/v8/src/mips/frames-mips.cc +48 -0
  303. data/ext/v8/upstream/v8/src/mips/frames-mips.h +179 -0
  304. data/ext/v8/upstream/v8/src/mips/full-codegen-mips.cc +727 -0
  305. data/ext/v8/upstream/v8/src/mips/ic-mips.cc +244 -0
  306. data/ext/v8/upstream/v8/src/mips/jump-target-mips.cc +80 -0
  307. data/ext/v8/upstream/v8/src/mips/lithium-codegen-mips.h +65 -0
  308. data/ext/v8/upstream/v8/src/mips/lithium-mips.h +304 -0
  309. data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.cc +3327 -0
  310. data/ext/v8/upstream/v8/src/mips/macro-assembler-mips.h +1058 -0
  311. data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.cc +478 -0
  312. data/ext/v8/upstream/v8/src/mips/regexp-macro-assembler-mips.h +250 -0
  313. data/ext/v8/upstream/v8/src/mips/register-allocator-mips-inl.h +134 -0
  314. data/ext/v8/upstream/{3.1.8 → v8}/src/mips/register-allocator-mips.cc +0 -0
  315. data/ext/v8/upstream/v8/src/mips/register-allocator-mips.h +47 -0
  316. data/ext/v8/upstream/v8/src/mips/simulator-mips.cc +2438 -0
  317. data/ext/v8/upstream/v8/src/mips/simulator-mips.h +394 -0
  318. data/ext/v8/upstream/v8/src/mips/stub-cache-mips.cc +601 -0
  319. data/ext/v8/upstream/v8/src/mips/virtual-frame-mips-inl.h +58 -0
  320. data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.cc +307 -0
  321. data/ext/v8/upstream/v8/src/mips/virtual-frame-mips.h +530 -0
  322. data/ext/v8/upstream/v8/src/mirror-debugger.js +2381 -0
  323. data/ext/v8/upstream/v8/src/mksnapshot.cc +256 -0
  324. data/ext/v8/upstream/{3.1.8 → v8}/src/natives.h +0 -0
  325. data/ext/v8/upstream/v8/src/objects-debug.cc +722 -0
  326. data/ext/v8/upstream/v8/src/objects-inl.h +4166 -0
  327. data/ext/v8/upstream/v8/src/objects-printer.cc +801 -0
  328. data/ext/v8/upstream/v8/src/objects-visiting.cc +142 -0
  329. data/ext/v8/upstream/v8/src/objects-visiting.h +422 -0
  330. data/ext/v8/upstream/v8/src/objects.cc +10296 -0
  331. data/ext/v8/upstream/v8/src/objects.h +6662 -0
  332. data/ext/v8/upstream/v8/src/parser.cc +5168 -0
  333. data/ext/v8/upstream/v8/src/parser.h +823 -0
  334. data/ext/v8/upstream/v8/src/platform-cygwin.cc +811 -0
  335. data/ext/v8/upstream/v8/src/platform-freebsd.cc +854 -0
  336. data/ext/v8/upstream/v8/src/platform-linux.cc +1120 -0
  337. data/ext/v8/upstream/v8/src/platform-macos.cc +865 -0
  338. data/ext/v8/upstream/v8/src/platform-nullos.cc +504 -0
  339. data/ext/v8/upstream/v8/src/platform-openbsd.cc +672 -0
  340. data/ext/v8/upstream/v8/src/platform-posix.cc +424 -0
  341. data/ext/v8/upstream/v8/src/platform-solaris.cc +796 -0
  342. data/ext/v8/upstream/v8/src/platform-tls-mac.h +62 -0
  343. data/ext/v8/upstream/v8/src/platform-tls-win32.h +62 -0
  344. data/ext/v8/upstream/v8/src/platform-tls.h +50 -0
  345. data/ext/v8/upstream/v8/src/platform-win32.cc +2072 -0
  346. data/ext/v8/upstream/v8/src/platform.h +693 -0
  347. data/ext/v8/upstream/v8/src/preparse-data.cc +185 -0
  348. data/ext/v8/upstream/{3.1.8 → v8}/src/preparse-data.h +0 -0
  349. data/ext/v8/upstream/v8/src/preparser-api.cc +219 -0
  350. data/ext/v8/upstream/v8/src/preparser.cc +1205 -0
  351. data/ext/v8/upstream/{3.1.8 → v8}/src/preparser.h +0 -0
  352. data/ext/v8/upstream/v8/src/prettyprinter.cc +1530 -0
  353. data/ext/v8/upstream/v8/src/prettyprinter.h +223 -0
  354. data/ext/v8/upstream/{3.1.8 → v8}/src/profile-generator-inl.h +0 -0
  355. data/ext/v8/upstream/v8/src/profile-generator.cc +3095 -0
  356. data/ext/v8/upstream/v8/src/profile-generator.h +1125 -0
  357. data/ext/v8/upstream/v8/src/property.cc +102 -0
  358. data/ext/v8/upstream/v8/src/property.h +348 -0
  359. data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
  360. data/ext/v8/upstream/v8/src/regexp-macro-assembler-irregexp.cc +470 -0
  361. data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-irregexp.h +0 -0
  362. data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-tracer.cc +0 -0
  363. data/ext/v8/upstream/{3.1.8 → v8}/src/regexp-macro-assembler-tracer.h +0 -0
  364. data/ext/v8/upstream/v8/src/regexp-macro-assembler.cc +266 -0
  365. data/ext/v8/upstream/v8/src/regexp-macro-assembler.h +236 -0
  366. data/ext/v8/upstream/v8/src/regexp-stack.cc +111 -0
  367. data/ext/v8/upstream/v8/src/regexp-stack.h +147 -0
  368. data/ext/v8/upstream/v8/src/regexp.js +483 -0
  369. data/ext/v8/upstream/v8/src/register-allocator-inl.h +141 -0
  370. data/ext/v8/upstream/v8/src/register-allocator.cc +98 -0
  371. data/ext/v8/upstream/v8/src/register-allocator.h +310 -0
  372. data/ext/v8/upstream/v8/src/rewriter.cc +1024 -0
  373. data/ext/v8/upstream/{3.1.8 → v8}/src/rewriter.h +0 -0
  374. data/ext/v8/upstream/v8/src/runtime-profiler.cc +478 -0
  375. data/ext/v8/upstream/v8/src/runtime-profiler.h +192 -0
  376. data/ext/v8/upstream/v8/src/runtime.cc +11949 -0
  377. data/ext/v8/upstream/v8/src/runtime.h +643 -0
  378. data/ext/v8/upstream/{3.1.8 → v8}/src/runtime.js +0 -0
  379. data/ext/v8/upstream/v8/src/safepoint-table.cc +256 -0
  380. data/ext/v8/upstream/v8/src/safepoint-table.h +269 -0
  381. data/ext/v8/upstream/v8/src/scanner-base.cc +964 -0
  382. data/ext/v8/upstream/v8/src/scanner-base.h +664 -0
  383. data/ext/v8/upstream/v8/src/scanner.cc +584 -0
  384. data/ext/v8/upstream/v8/src/scanner.h +196 -0
  385. data/ext/v8/upstream/v8/src/scopeinfo.cc +631 -0
  386. data/ext/v8/upstream/v8/src/scopeinfo.h +249 -0
  387. data/ext/v8/upstream/v8/src/scopes.cc +1093 -0
  388. data/ext/v8/upstream/v8/src/scopes.h +508 -0
  389. data/ext/v8/upstream/v8/src/serialize.cc +1574 -0
  390. data/ext/v8/upstream/v8/src/serialize.h +589 -0
  391. data/ext/v8/upstream/{3.1.8 → v8}/src/shell.h +0 -0
  392. data/ext/v8/upstream/{3.1.8 → v8}/src/simulator.h +0 -0
  393. data/ext/v8/upstream/v8/src/small-pointer-list.h +163 -0
  394. data/ext/v8/upstream/{3.1.8 → v8}/src/smart-pointer.h +0 -0
  395. data/ext/v8/upstream/v8/src/snapshot-common.cc +82 -0
  396. data/ext/v8/upstream/{3.1.8 → v8}/src/snapshot-empty.cc +0 -0
  397. data/ext/v8/upstream/v8/src/snapshot.h +73 -0
  398. data/ext/v8/upstream/v8/src/spaces-inl.h +529 -0
  399. data/ext/v8/upstream/v8/src/spaces.cc +3147 -0
  400. data/ext/v8/upstream/v8/src/spaces.h +2368 -0
  401. data/ext/v8/upstream/{3.1.8 → v8}/src/splay-tree-inl.h +0 -0
  402. data/ext/v8/upstream/{3.1.8 → v8}/src/splay-tree.h +0 -0
  403. data/ext/v8/upstream/v8/src/string-search.cc +41 -0
  404. data/ext/v8/upstream/v8/src/string-search.h +568 -0
  405. data/ext/v8/upstream/v8/src/string-stream.cc +592 -0
  406. data/ext/v8/upstream/{3.1.8 → v8}/src/string-stream.h +0 -0
  407. data/ext/v8/upstream/v8/src/string.js +915 -0
  408. data/ext/v8/upstream/{3.1.8 → v8}/src/strtod.cc +0 -0
  409. data/ext/v8/upstream/{3.1.8 → v8}/src/strtod.h +0 -0
  410. data/ext/v8/upstream/v8/src/stub-cache.cc +1940 -0
  411. data/ext/v8/upstream/v8/src/stub-cache.h +866 -0
  412. data/ext/v8/upstream/{3.1.8 → v8}/src/third_party/valgrind/valgrind.h +0 -0
  413. data/ext/v8/upstream/v8/src/token.cc +63 -0
  414. data/ext/v8/upstream/v8/src/token.h +288 -0
  415. data/ext/v8/upstream/v8/src/top.cc +983 -0
  416. data/ext/v8/upstream/v8/src/type-info.cc +472 -0
  417. data/ext/v8/upstream/v8/src/type-info.h +290 -0
  418. data/ext/v8/upstream/{3.1.8 → v8}/src/unbound-queue-inl.h +0 -0
  419. data/ext/v8/upstream/{3.1.8 → v8}/src/unbound-queue.h +0 -0
  420. data/ext/v8/upstream/{3.1.8 → v8}/src/unicode-inl.h +0 -0
  421. data/ext/v8/upstream/v8/src/unicode.cc +1624 -0
  422. data/ext/v8/upstream/v8/src/unicode.h +280 -0
  423. data/ext/v8/upstream/{3.1.8 → v8}/src/uri.js +0 -0
  424. data/ext/v8/upstream/{3.1.8 → v8}/src/utils.cc +0 -0
  425. data/ext/v8/upstream/v8/src/utils.h +796 -0
  426. data/ext/v8/upstream/v8/src/v8-counters.cc +62 -0
  427. data/ext/v8/upstream/v8/src/v8-counters.h +311 -0
  428. data/ext/v8/upstream/v8/src/v8.cc +215 -0
  429. data/ext/v8/upstream/v8/src/v8.h +130 -0
  430. data/ext/v8/upstream/{3.1.8 → v8}/src/v8checks.h +0 -0
  431. data/ext/v8/upstream/{3.1.8 → v8}/src/v8dll-main.cc +0 -0
  432. data/ext/v8/upstream/v8/src/v8globals.h +486 -0
  433. data/ext/v8/upstream/{3.1.8/src/memory.h → v8/src/v8memory.h} +0 -0
  434. data/ext/v8/upstream/v8/src/v8natives.js +1293 -0
  435. data/ext/v8/upstream/{3.1.8 → v8}/src/v8preparserdll-main.cc +0 -0
  436. data/ext/v8/upstream/v8/src/v8threads.cc +453 -0
  437. data/ext/v8/upstream/v8/src/v8threads.h +164 -0
  438. data/ext/v8/upstream/v8/src/v8utils.h +317 -0
  439. data/ext/v8/upstream/{3.1.8 → v8}/src/variables.cc +0 -0
  440. data/ext/v8/upstream/v8/src/variables.h +212 -0
  441. data/ext/v8/upstream/v8/src/version.cc +116 -0
  442. data/ext/v8/upstream/v8/src/version.h +68 -0
  443. data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-heavy-inl.h +0 -0
  444. data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-heavy.cc +0 -0
  445. data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-inl.h +0 -0
  446. data/ext/v8/upstream/v8/src/virtual-frame-light-inl.h +171 -0
  447. data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame-light.cc +0 -0
  448. data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame.cc +0 -0
  449. data/ext/v8/upstream/{3.1.8 → v8}/src/virtual-frame.h +0 -0
  450. data/ext/v8/upstream/v8/src/vm-state-inl.h +138 -0
  451. data/ext/v8/upstream/v8/src/vm-state.h +70 -0
  452. data/ext/v8/upstream/v8/src/win32-headers.h +96 -0
  453. data/ext/v8/upstream/v8/src/x64/assembler-x64-inl.h +456 -0
  454. data/ext/v8/upstream/v8/src/x64/assembler-x64.cc +2954 -0
  455. data/ext/v8/upstream/v8/src/x64/assembler-x64.h +1630 -0
  456. data/ext/v8/upstream/v8/src/x64/builtins-x64.cc +1493 -0
  457. data/ext/v8/upstream/v8/src/x64/code-stubs-x64.cc +5132 -0
  458. data/ext/v8/upstream/v8/src/x64/code-stubs-x64.h +477 -0
  459. data/ext/v8/upstream/{3.1.8 → v8}/src/x64/codegen-x64-inl.h +0 -0
  460. data/ext/v8/upstream/v8/src/x64/codegen-x64.cc +8843 -0
  461. data/ext/v8/upstream/v8/src/x64/codegen-x64.h +753 -0
  462. data/ext/v8/upstream/v8/src/x64/cpu-x64.cc +88 -0
  463. data/ext/v8/upstream/v8/src/x64/debug-x64.cc +318 -0
  464. data/ext/v8/upstream/v8/src/x64/deoptimizer-x64.cc +815 -0
  465. data/ext/v8/upstream/v8/src/x64/disasm-x64.cc +1752 -0
  466. data/ext/v8/upstream/{3.1.8 → v8}/src/x64/frames-x64.cc +0 -0
  467. data/ext/v8/upstream/v8/src/x64/frames-x64.h +130 -0
  468. data/ext/v8/upstream/v8/src/x64/full-codegen-x64.cc +4339 -0
  469. data/ext/v8/upstream/v8/src/x64/ic-x64.cc +1752 -0
  470. data/ext/v8/upstream/{3.1.8 → v8}/src/x64/jump-target-x64.cc +0 -0
  471. data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.cc +3970 -0
  472. data/ext/v8/upstream/v8/src/x64/lithium-codegen-x64.h +318 -0
  473. data/ext/v8/upstream/{3.1.8 → v8}/src/x64/lithium-gap-resolver-x64.cc +0 -0
  474. data/ext/v8/upstream/{3.1.8 → v8}/src/x64/lithium-gap-resolver-x64.h +0 -0
  475. data/ext/v8/upstream/v8/src/x64/lithium-x64.cc +2115 -0
  476. data/ext/v8/upstream/v8/src/x64/lithium-x64.h +2161 -0
  477. data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.cc +2911 -0
  478. data/ext/v8/upstream/v8/src/x64/macro-assembler-x64.h +1984 -0
  479. data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.cc +1398 -0
  480. data/ext/v8/upstream/v8/src/x64/regexp-macro-assembler-x64.h +282 -0
  481. data/ext/v8/upstream/v8/src/x64/register-allocator-x64-inl.h +87 -0
  482. data/ext/v8/upstream/v8/src/x64/register-allocator-x64.cc +95 -0
  483. data/ext/v8/upstream/{3.1.8 → v8}/src/x64/register-allocator-x64.h +0 -0
  484. data/ext/v8/upstream/{3.1.8 → v8}/src/x64/simulator-x64.cc +0 -0
  485. data/ext/v8/upstream/v8/src/x64/simulator-x64.h +71 -0
  486. data/ext/v8/upstream/v8/src/x64/stub-cache-x64.cc +3460 -0
  487. data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.cc +1296 -0
  488. data/ext/v8/upstream/v8/src/x64/virtual-frame-x64.h +597 -0
  489. data/ext/v8/upstream/v8/src/zone-inl.h +129 -0
  490. data/ext/v8/upstream/v8/src/zone.cc +196 -0
  491. data/ext/v8/upstream/v8/src/zone.h +236 -0
  492. data/ext/v8/upstream/{3.1.8 → v8}/tools/codemap.js +0 -0
  493. data/ext/v8/upstream/{3.1.8 → v8}/tools/consarray.js +0 -0
  494. data/ext/v8/upstream/{3.1.8 → v8}/tools/csvparser.js +0 -0
  495. data/ext/v8/upstream/{3.1.8 → v8}/tools/disasm.py +0 -0
  496. data/ext/v8/upstream/v8/tools/freebsd-tick-processor +10 -0
  497. data/ext/v8/upstream/{3.1.8 → v8}/tools/gc-nvp-trace-processor.py +0 -0
  498. data/ext/v8/upstream/{3.1.8 → v8}/tools/generate-ten-powers.scm +0 -0
  499. data/ext/v8/upstream/{3.1.8 → v8}/tools/grokdump.py +0 -0
  500. data/ext/v8/upstream/v8/tools/gyp/v8.gyp +844 -0
  501. data/ext/v8/upstream/{3.1.8 → v8}/tools/js2c.py +0 -0
  502. data/ext/v8/upstream/{3.1.8 → v8}/tools/jsmin.py +0 -0
  503. data/ext/v8/upstream/v8/tools/linux-tick-processor +35 -0
  504. data/ext/v8/upstream/{3.1.8 → v8}/tools/ll_prof.py +0 -0
  505. data/ext/v8/upstream/{3.1.8 → v8}/tools/logreader.js +0 -0
  506. data/ext/v8/upstream/{3.1.8 → v8}/tools/mac-nm +0 -0
  507. data/ext/v8/upstream/{3.1.8 → v8}/tools/mac-tick-processor +0 -0
  508. data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/README +0 -0
  509. data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/SConstruct +0 -0
  510. data/ext/v8/upstream/{3.1.8 → v8}/tools/oom_dump/oom_dump.cc +0 -0
  511. data/ext/v8/upstream/{3.1.8 → v8}/tools/presubmit.py +0 -0
  512. data/ext/v8/upstream/{3.1.8 → v8}/tools/process-heap-prof.py +0 -0
  513. data/ext/v8/upstream/{3.1.8 → v8}/tools/profile.js +0 -0
  514. data/ext/v8/upstream/{3.1.8 → v8}/tools/profile_view.js +0 -0
  515. data/ext/v8/upstream/{3.1.8 → v8}/tools/run-valgrind.py +0 -0
  516. data/ext/v8/upstream/{3.1.8 → v8}/tools/splaytree.js +0 -0
  517. data/ext/v8/upstream/{3.1.8 → v8}/tools/stats-viewer.py +0 -0
  518. data/ext/v8/upstream/v8/tools/test.py +1490 -0
  519. data/ext/v8/upstream/{3.1.8 → v8}/tools/tickprocessor-driver.js +0 -0
  520. data/ext/v8/upstream/v8/tools/tickprocessor.js +877 -0
  521. data/ext/v8/upstream/{3.1.8 → v8}/tools/utils.py +0 -0
  522. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/README.txt +0 -0
  523. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/arm.vsprops +0 -0
  524. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/common.vsprops +0 -0
  525. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8.vcproj +0 -0
  526. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8_arm.vcproj +0 -0
  527. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8_x64.vcproj +0 -0
  528. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/d8js2c.cmd +0 -0
  529. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/debug.vsprops +0 -0
  530. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/ia32.vsprops +0 -0
  531. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/js2c.cmd +0 -0
  532. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/release.vsprops +0 -0
  533. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8.sln +0 -0
  534. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8.vcproj +0 -0
  535. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_arm.sln +0 -0
  536. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_arm.vcproj +0 -0
  537. data/ext/v8/upstream/v8/tools/visual_studio/v8_base.vcproj +1308 -0
  538. data/ext/v8/upstream/v8/tools/visual_studio/v8_base_arm.vcproj +1238 -0
  539. data/ext/v8/upstream/v8/tools/visual_studio/v8_base_x64.vcproj +1300 -0
  540. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest.vcproj +0 -0
  541. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
  542. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
  543. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
  544. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
  545. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
  546. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
  547. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
  548. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample.vcproj +0 -0
  549. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -0
  550. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -0
  551. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
  552. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
  553. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
  554. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
  555. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_x64.sln +0 -0
  556. data/ext/v8/upstream/{3.1.8 → v8}/tools/visual_studio/v8_x64.vcproj +0 -0
  557. data/ext/v8/upstream/v8/tools/visual_studio/x64.vsprops +18 -0
  558. data/ext/v8/upstream/{3.1.8 → v8}/tools/windows-tick-processor.bat +0 -0
  559. data/ext/v8/v8_callbacks.cpp +52 -92
  560. data/ext/v8/v8_date.cpp +2 -3
  561. data/ext/v8/v8_object.cpp +4 -0
  562. data/ext/v8/v8_template.cpp +2 -2
  563. data/ext/v8/v8_try_catch.cpp +8 -38
  564. data/lib/v8/version.rb +1 -1
  565. data/spec/ext/ext_spec_helper.rb +2 -20
  566. data/spec/ext/object_spec.rb +0 -12
  567. data/spec/ext/try_catch_spec.rb +29 -1
  568. data/spec/spec_helper.rb +1 -0
  569. data/spec/v8/portal/proxies_spec.rb +1 -84
  570. data/specmem/handle_memspec.rb +41 -0
  571. data/specmem/object_memspec.rb +16 -0
  572. data/specmem/proxies_memspec.rb +86 -0
  573. data/specmem/spec_helper.rb +24 -0
  574. data/therubyracer.gemspec +7 -2
  575. metadata +564 -541
  576. data/ext/v8/upstream/3.1.8/.gitignore +0 -31
  577. data/ext/v8/upstream/3.1.8/AUTHORS +0 -40
  578. data/ext/v8/upstream/3.1.8/ChangeLog +0 -2566
  579. data/ext/v8/upstream/3.1.8/SConstruct +0 -1192
  580. data/ext/v8/upstream/3.1.8/include/v8-debug.h +0 -384
  581. data/ext/v8/upstream/3.1.8/include/v8-preparser.h +0 -116
  582. data/ext/v8/upstream/3.1.8/include/v8-profiler.h +0 -426
  583. data/ext/v8/upstream/3.1.8/include/v8-testing.h +0 -99
  584. data/ext/v8/upstream/3.1.8/include/v8.h +0 -3846
  585. data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +0 -206
  586. data/ext/v8/upstream/3.1.8/src/SConscript +0 -356
  587. data/ext/v8/upstream/3.1.8/src/accessors.cc +0 -907
  588. data/ext/v8/upstream/3.1.8/src/allocation.cc +0 -204
  589. data/ext/v8/upstream/3.1.8/src/allocation.h +0 -176
  590. data/ext/v8/upstream/3.1.8/src/api.cc +0 -5191
  591. data/ext/v8/upstream/3.1.8/src/api.h +0 -508
  592. data/ext/v8/upstream/3.1.8/src/apiutils.h +0 -80
  593. data/ext/v8/upstream/3.1.8/src/arguments.h +0 -105
  594. data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +0 -352
  595. data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +0 -2756
  596. data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +0 -1294
  597. data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +0 -1628
  598. data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +0 -6783
  599. data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +0 -657
  600. data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +0 -7403
  601. data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +0 -595
  602. data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +0 -769
  603. data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +0 -147
  604. data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +0 -315
  605. data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +0 -700
  606. data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +0 -1439
  607. data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +0 -168
  608. data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +0 -4230
  609. data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +0 -1799
  610. data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +0 -2041
  611. data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +0 -2046
  612. data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +0 -3822
  613. data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +0 -312
  614. data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +0 -303
  615. data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +0 -2701
  616. data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +0 -1015
  617. data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +0 -1280
  618. data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +0 -252
  619. data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +0 -3165
  620. data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +0 -402
  621. data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +0 -4077
  622. data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +0 -843
  623. data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +0 -520
  624. data/ext/v8/upstream/3.1.8/src/array.js +0 -1231
  625. data/ext/v8/upstream/3.1.8/src/assembler.cc +0 -973
  626. data/ext/v8/upstream/3.1.8/src/assembler.h +0 -787
  627. data/ext/v8/upstream/3.1.8/src/ast-inl.h +0 -107
  628. data/ext/v8/upstream/3.1.8/src/ast.cc +0 -1067
  629. data/ext/v8/upstream/3.1.8/src/ast.h +0 -2177
  630. data/ext/v8/upstream/3.1.8/src/atomicops.h +0 -165
  631. data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +0 -1888
  632. data/ext/v8/upstream/3.1.8/src/bootstrapper.h +0 -118
  633. data/ext/v8/upstream/3.1.8/src/builtins.cc +0 -1586
  634. data/ext/v8/upstream/3.1.8/src/builtins.h +0 -339
  635. data/ext/v8/upstream/3.1.8/src/checks.cc +0 -110
  636. data/ext/v8/upstream/3.1.8/src/checks.h +0 -292
  637. data/ext/v8/upstream/3.1.8/src/code-stubs.cc +0 -230
  638. data/ext/v8/upstream/3.1.8/src/code-stubs.h +0 -950
  639. data/ext/v8/upstream/3.1.8/src/codegen-inl.h +0 -64
  640. data/ext/v8/upstream/3.1.8/src/codegen.cc +0 -495
  641. data/ext/v8/upstream/3.1.8/src/codegen.h +0 -245
  642. data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +0 -654
  643. data/ext/v8/upstream/3.1.8/src/compilation-cache.h +0 -112
  644. data/ext/v8/upstream/3.1.8/src/compiler.cc +0 -806
  645. data/ext/v8/upstream/3.1.8/src/compiler.h +0 -290
  646. data/ext/v8/upstream/3.1.8/src/contexts.cc +0 -320
  647. data/ext/v8/upstream/3.1.8/src/contexts.h +0 -376
  648. data/ext/v8/upstream/3.1.8/src/conversions.cc +0 -1069
  649. data/ext/v8/upstream/3.1.8/src/counters.cc +0 -78
  650. data/ext/v8/upstream/3.1.8/src/counters.h +0 -242
  651. data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +0 -100
  652. data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +0 -554
  653. data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +0 -291
  654. data/ext/v8/upstream/3.1.8/src/cpu.h +0 -65
  655. data/ext/v8/upstream/3.1.8/src/d8-debug.cc +0 -367
  656. data/ext/v8/upstream/3.1.8/src/d8-debug.h +0 -157
  657. data/ext/v8/upstream/3.1.8/src/d8-posix.cc +0 -693
  658. data/ext/v8/upstream/3.1.8/src/d8.cc +0 -792
  659. data/ext/v8/upstream/3.1.8/src/d8.gyp +0 -85
  660. data/ext/v8/upstream/3.1.8/src/data-flow.h +0 -379
  661. data/ext/v8/upstream/3.1.8/src/dateparser.h +0 -263
  662. data/ext/v8/upstream/3.1.8/src/debug-agent.cc +0 -446
  663. data/ext/v8/upstream/3.1.8/src/debug-agent.h +0 -131
  664. data/ext/v8/upstream/3.1.8/src/debug.cc +0 -3085
  665. data/ext/v8/upstream/3.1.8/src/debug.h +0 -1025
  666. data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +0 -1185
  667. data/ext/v8/upstream/3.1.8/src/deoptimizer.h +0 -529
  668. data/ext/v8/upstream/3.1.8/src/disasm.h +0 -77
  669. data/ext/v8/upstream/3.1.8/src/disassembler.cc +0 -338
  670. data/ext/v8/upstream/3.1.8/src/execution.cc +0 -735
  671. data/ext/v8/upstream/3.1.8/src/execution.h +0 -322
  672. data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +0 -53
  673. data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +0 -264
  674. data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +0 -141
  675. data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +0 -58
  676. data/ext/v8/upstream/3.1.8/src/factory.cc +0 -1087
  677. data/ext/v8/upstream/3.1.8/src/factory.h +0 -432
  678. data/ext/v8/upstream/3.1.8/src/flag-definitions.h +0 -552
  679. data/ext/v8/upstream/3.1.8/src/frame-element.cc +0 -42
  680. data/ext/v8/upstream/3.1.8/src/frame-element.h +0 -277
  681. data/ext/v8/upstream/3.1.8/src/frames-inl.h +0 -210
  682. data/ext/v8/upstream/3.1.8/src/frames.cc +0 -1232
  683. data/ext/v8/upstream/3.1.8/src/frames.h +0 -826
  684. data/ext/v8/upstream/3.1.8/src/full-codegen.cc +0 -1382
  685. data/ext/v8/upstream/3.1.8/src/full-codegen.h +0 -751
  686. data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +0 -90
  687. data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +0 -111
  688. data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +0 -1547
  689. data/ext/v8/upstream/3.1.8/src/global-handles.cc +0 -534
  690. data/ext/v8/upstream/3.1.8/src/global-handles.h +0 -181
  691. data/ext/v8/upstream/3.1.8/src/globals.h +0 -325
  692. data/ext/v8/upstream/3.1.8/src/handles-inl.h +0 -80
  693. data/ext/v8/upstream/3.1.8/src/handles.cc +0 -910
  694. data/ext/v8/upstream/3.1.8/src/handles.h +0 -424
  695. data/ext/v8/upstream/3.1.8/src/hashmap.h +0 -121
  696. data/ext/v8/upstream/3.1.8/src/heap-inl.h +0 -587
  697. data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +0 -1128
  698. data/ext/v8/upstream/3.1.8/src/heap-profiler.h +0 -381
  699. data/ext/v8/upstream/3.1.8/src/heap.cc +0 -5610
  700. data/ext/v8/upstream/3.1.8/src/heap.h +0 -2218
  701. data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +0 -1490
  702. data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +0 -3493
  703. data/ext/v8/upstream/3.1.8/src/hydrogen.cc +0 -6056
  704. data/ext/v8/upstream/3.1.8/src/hydrogen.h +0 -1091
  705. data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +0 -429
  706. data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +0 -2800
  707. data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +0 -1093
  708. data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +0 -1590
  709. data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +0 -6624
  710. data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +0 -536
  711. data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +0 -10354
  712. data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +0 -798
  713. data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +0 -87
  714. data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +0 -309
  715. data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +0 -664
  716. data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +0 -1597
  717. data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +0 -140
  718. data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +0 -4278
  719. data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +0 -1786
  720. data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +0 -3880
  721. data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +0 -309
  722. data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +0 -460
  723. data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +0 -2095
  724. data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +0 -2127
  725. data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +0 -2031
  726. data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +0 -798
  727. data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +0 -1253
  728. data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +0 -215
  729. data/ext/v8/upstream/3.1.8/src/ia32/register-allocator-ia32.cc +0 -157
  730. data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +0 -72
  731. data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +0 -3732
  732. data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +0 -1360
  733. data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +0 -646
  734. data/ext/v8/upstream/3.1.8/src/ic-inl.h +0 -129
  735. data/ext/v8/upstream/3.1.8/src/ic.cc +0 -2333
  736. data/ext/v8/upstream/3.1.8/src/ic.h +0 -639
  737. data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +0 -655
  738. data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.h +0 -48
  739. data/ext/v8/upstream/3.1.8/src/json.js +0 -342
  740. data/ext/v8/upstream/3.1.8/src/jsregexp.cc +0 -5340
  741. data/ext/v8/upstream/3.1.8/src/jsregexp.h +0 -1484
  742. data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +0 -430
  743. data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +0 -244
  744. data/ext/v8/upstream/3.1.8/src/jump-target-inl.h +0 -48
  745. data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +0 -111
  746. data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +0 -140
  747. data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +0 -2093
  748. data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +0 -644
  749. data/ext/v8/upstream/3.1.8/src/lithium.cc +0 -168
  750. data/ext/v8/upstream/3.1.8/src/liveedit.cc +0 -1650
  751. data/ext/v8/upstream/3.1.8/src/liveedit.h +0 -174
  752. data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +0 -2527
  753. data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +0 -322
  754. data/ext/v8/upstream/3.1.8/src/log-utils.cc +0 -336
  755. data/ext/v8/upstream/3.1.8/src/log-utils.h +0 -232
  756. data/ext/v8/upstream/3.1.8/src/log.cc +0 -1608
  757. data/ext/v8/upstream/3.1.8/src/log.h +0 -379
  758. data/ext/v8/upstream/3.1.8/src/mark-compact.cc +0 -2957
  759. data/ext/v8/upstream/3.1.8/src/mark-compact.h +0 -433
  760. data/ext/v8/upstream/3.1.8/src/messages.cc +0 -164
  761. data/ext/v8/upstream/3.1.8/src/messages.js +0 -1071
  762. data/ext/v8/upstream/3.1.8/src/mips/assembler-mips-inl.h +0 -215
  763. data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.cc +0 -1219
  764. data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +0 -667
  765. data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +0 -205
  766. data/ext/v8/upstream/3.1.8/src/mips/codegen-mips-inl.h +0 -70
  767. data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.cc +0 -1437
  768. data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +0 -431
  769. data/ext/v8/upstream/3.1.8/src/mips/constants-mips.cc +0 -328
  770. data/ext/v8/upstream/3.1.8/src/mips/constants-mips.h +0 -525
  771. data/ext/v8/upstream/3.1.8/src/mips/cpu-mips.cc +0 -73
  772. data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +0 -127
  773. data/ext/v8/upstream/3.1.8/src/mips/disasm-mips.cc +0 -787
  774. data/ext/v8/upstream/3.1.8/src/mips/fast-codegen-mips.cc +0 -77
  775. data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +0 -96
  776. data/ext/v8/upstream/3.1.8/src/mips/frames-mips.h +0 -164
  777. data/ext/v8/upstream/3.1.8/src/mips/full-codegen-mips.cc +0 -277
  778. data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +0 -208
  779. data/ext/v8/upstream/3.1.8/src/mips/jump-target-mips.cc +0 -175
  780. data/ext/v8/upstream/3.1.8/src/mips/macro-assembler-mips.cc +0 -1326
  781. data/ext/v8/upstream/3.1.8/src/mips/macro-assembler-mips.h +0 -461
  782. data/ext/v8/upstream/3.1.8/src/mips/register-allocator-mips-inl.h +0 -137
  783. data/ext/v8/upstream/3.1.8/src/mips/register-allocator-mips.h +0 -46
  784. data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +0 -1650
  785. data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +0 -311
  786. data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +0 -418
  787. data/ext/v8/upstream/3.1.8/src/mips/virtual-frame-mips.cc +0 -319
  788. data/ext/v8/upstream/3.1.8/src/mips/virtual-frame-mips.h +0 -548
  789. data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +0 -2380
  790. data/ext/v8/upstream/3.1.8/src/mksnapshot.cc +0 -256
  791. data/ext/v8/upstream/3.1.8/src/objects-debug.cc +0 -722
  792. data/ext/v8/upstream/3.1.8/src/objects-inl.h +0 -3946
  793. data/ext/v8/upstream/3.1.8/src/objects-printer.cc +0 -801
  794. data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +0 -142
  795. data/ext/v8/upstream/3.1.8/src/objects-visiting.h +0 -401
  796. data/ext/v8/upstream/3.1.8/src/objects.cc +0 -10044
  797. data/ext/v8/upstream/3.1.8/src/objects.h +0 -6571
  798. data/ext/v8/upstream/3.1.8/src/parser.cc +0 -5165
  799. data/ext/v8/upstream/3.1.8/src/parser.h +0 -802
  800. data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +0 -745
  801. data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +0 -702
  802. data/ext/v8/upstream/3.1.8/src/platform-linux.cc +0 -981
  803. data/ext/v8/upstream/3.1.8/src/platform-macos.cc +0 -732
  804. data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +0 -498
  805. data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +0 -657
  806. data/ext/v8/upstream/3.1.8/src/platform-posix.cc +0 -399
  807. data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +0 -714
  808. data/ext/v8/upstream/3.1.8/src/platform-win32.cc +0 -1974
  809. data/ext/v8/upstream/3.1.8/src/platform.h +0 -636
  810. data/ext/v8/upstream/3.1.8/src/preparse-data.cc +0 -183
  811. data/ext/v8/upstream/3.1.8/src/preparser-api.cc +0 -213
  812. data/ext/v8/upstream/3.1.8/src/preparser.cc +0 -1205
  813. data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +0 -1539
  814. data/ext/v8/upstream/3.1.8/src/prettyprinter.h +0 -223
  815. data/ext/v8/upstream/3.1.8/src/profile-generator.cc +0 -2899
  816. data/ext/v8/upstream/3.1.8/src/profile-generator.h +0 -1151
  817. data/ext/v8/upstream/3.1.8/src/property.cc +0 -96
  818. data/ext/v8/upstream/3.1.8/src/property.h +0 -337
  819. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +0 -470
  820. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +0 -257
  821. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +0 -231
  822. data/ext/v8/upstream/3.1.8/src/regexp-stack.cc +0 -103
  823. data/ext/v8/upstream/3.1.8/src/regexp-stack.h +0 -123
  824. data/ext/v8/upstream/3.1.8/src/regexp.js +0 -483
  825. data/ext/v8/upstream/3.1.8/src/register-allocator-inl.h +0 -141
  826. data/ext/v8/upstream/3.1.8/src/register-allocator.cc +0 -104
  827. data/ext/v8/upstream/3.1.8/src/register-allocator.h +0 -320
  828. data/ext/v8/upstream/3.1.8/src/rewriter.cc +0 -1023
  829. data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +0 -443
  830. data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +0 -77
  831. data/ext/v8/upstream/3.1.8/src/runtime.cc +0 -11592
  832. data/ext/v8/upstream/3.1.8/src/runtime.h +0 -582
  833. data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +0 -253
  834. data/ext/v8/upstream/3.1.8/src/safepoint-table.h +0 -263
  835. data/ext/v8/upstream/3.1.8/src/scanner-base.cc +0 -971
  836. data/ext/v8/upstream/3.1.8/src/scanner-base.h +0 -653
  837. data/ext/v8/upstream/3.1.8/src/scanner.cc +0 -586
  838. data/ext/v8/upstream/3.1.8/src/scanner.h +0 -194
  839. data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +0 -636
  840. data/ext/v8/upstream/3.1.8/src/scopeinfo.h +0 -238
  841. data/ext/v8/upstream/3.1.8/src/scopes.cc +0 -1063
  842. data/ext/v8/upstream/3.1.8/src/scopes.h +0 -494
  843. data/ext/v8/upstream/3.1.8/src/serialize.cc +0 -1535
  844. data/ext/v8/upstream/3.1.8/src/serialize.h +0 -584
  845. data/ext/v8/upstream/3.1.8/src/snapshot-common.cc +0 -82
  846. data/ext/v8/upstream/3.1.8/src/snapshot.h +0 -71
  847. data/ext/v8/upstream/3.1.8/src/spaces-inl.h +0 -524
  848. data/ext/v8/upstream/3.1.8/src/spaces.cc +0 -3254
  849. data/ext/v8/upstream/3.1.8/src/spaces.h +0 -2362
  850. data/ext/v8/upstream/3.1.8/src/string-search.cc +0 -40
  851. data/ext/v8/upstream/3.1.8/src/string-search.h +0 -567
  852. data/ext/v8/upstream/3.1.8/src/string-stream.cc +0 -584
  853. data/ext/v8/upstream/3.1.8/src/string.js +0 -915
  854. data/ext/v8/upstream/3.1.8/src/stub-cache.cc +0 -1878
  855. data/ext/v8/upstream/3.1.8/src/stub-cache.h +0 -849
  856. data/ext/v8/upstream/3.1.8/src/token.cc +0 -63
  857. data/ext/v8/upstream/3.1.8/src/token.h +0 -288
  858. data/ext/v8/upstream/3.1.8/src/top.cc +0 -1152
  859. data/ext/v8/upstream/3.1.8/src/top.h +0 -608
  860. data/ext/v8/upstream/3.1.8/src/type-info.cc +0 -406
  861. data/ext/v8/upstream/3.1.8/src/type-info.h +0 -283
  862. data/ext/v8/upstream/3.1.8/src/unicode.cc +0 -1624
  863. data/ext/v8/upstream/3.1.8/src/unicode.h +0 -280
  864. data/ext/v8/upstream/3.1.8/src/utils.h +0 -793
  865. data/ext/v8/upstream/3.1.8/src/v8-counters.cc +0 -55
  866. data/ext/v8/upstream/3.1.8/src/v8-counters.h +0 -290
  867. data/ext/v8/upstream/3.1.8/src/v8.cc +0 -270
  868. data/ext/v8/upstream/3.1.8/src/v8.h +0 -127
  869. data/ext/v8/upstream/3.1.8/src/v8globals.h +0 -480
  870. data/ext/v8/upstream/3.1.8/src/v8natives.js +0 -1252
  871. data/ext/v8/upstream/3.1.8/src/v8threads.cc +0 -440
  872. data/ext/v8/upstream/3.1.8/src/v8threads.h +0 -157
  873. data/ext/v8/upstream/3.1.8/src/v8utils.h +0 -354
  874. data/ext/v8/upstream/3.1.8/src/variables.h +0 -212
  875. data/ext/v8/upstream/3.1.8/src/version.cc +0 -95
  876. data/ext/v8/upstream/3.1.8/src/version.h +0 -64
  877. data/ext/v8/upstream/3.1.8/src/virtual-frame-light-inl.h +0 -170
  878. data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +0 -134
  879. data/ext/v8/upstream/3.1.8/src/vm-state.h +0 -68
  880. data/ext/v8/upstream/3.1.8/src/win32-headers.h +0 -95
  881. data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +0 -455
  882. data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +0 -3162
  883. data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +0 -1584
  884. data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +0 -1492
  885. data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +0 -5150
  886. data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +0 -519
  887. data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +0 -8835
  888. data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +0 -750
  889. data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +0 -86
  890. data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +0 -316
  891. data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +0 -781
  892. data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +0 -1737
  893. data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +0 -130
  894. data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +0 -3984
  895. data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +0 -1761
  896. data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +0 -3639
  897. data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +0 -305
  898. data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +0 -2044
  899. data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +0 -2052
  900. data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +0 -2660
  901. data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +0 -1852
  902. data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +0 -1382
  903. data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +0 -278
  904. data/ext/v8/upstream/3.1.8/src/x64/register-allocator-x64-inl.h +0 -87
  905. data/ext/v8/upstream/3.1.8/src/x64/register-allocator-x64.cc +0 -91
  906. data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +0 -71
  907. data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +0 -3509
  908. data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +0 -1292
  909. data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +0 -593
  910. data/ext/v8/upstream/3.1.8/src/zone-inl.h +0 -83
  911. data/ext/v8/upstream/3.1.8/src/zone.cc +0 -195
  912. data/ext/v8/upstream/3.1.8/src/zone.h +0 -233
  913. data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +0 -869
  914. data/ext/v8/upstream/3.1.8/tools/linux-tick-processor +0 -33
  915. data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +0 -863
  916. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +0 -1296
  917. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +0 -1234
  918. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +0 -1296
  919. data/ext/v8/upstream/3.1.8/tools/visual_studio/x64.vsprops +0 -17
  920. data/spec/ext/mem_spec.rb +0 -42
@@ -1,2052 +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
- #ifndef V8_X64_LITHIUM_X64_H_
29
- #define V8_X64_LITHIUM_X64_H_
30
-
31
- #include "hydrogen.h"
32
- #include "lithium-allocator.h"
33
- #include "lithium.h"
34
- #include "safepoint-table.h"
35
-
36
- namespace v8 {
37
- namespace internal {
38
-
39
- // Forward declarations.
40
- class LCodeGen;
41
-
42
- #define LITHIUM_ALL_INSTRUCTION_LIST(V) \
43
- V(ControlInstruction) \
44
- V(Call) \
45
- LITHIUM_CONCRETE_INSTRUCTION_LIST(V)
46
-
47
-
48
- #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
49
- V(AccessArgumentsAt) \
50
- V(AddI) \
51
- V(ApplyArguments) \
52
- V(ArgumentsElements) \
53
- V(ArgumentsLength) \
54
- V(ArithmeticD) \
55
- V(ArithmeticT) \
56
- V(ArrayLiteral) \
57
- V(BitI) \
58
- V(BitNotI) \
59
- V(BoundsCheck) \
60
- V(Branch) \
61
- V(CallConstantFunction) \
62
- V(CallFunction) \
63
- V(CallGlobal) \
64
- V(CallKeyed) \
65
- V(CallKnownGlobal) \
66
- V(CallNamed) \
67
- V(CallNew) \
68
- V(CallRuntime) \
69
- V(CallStub) \
70
- V(CheckFunction) \
71
- V(CheckInstanceType) \
72
- V(CheckMap) \
73
- V(CheckPrototypeMaps) \
74
- V(CheckSmi) \
75
- V(CmpID) \
76
- V(CmpIDAndBranch) \
77
- V(CmpJSObjectEq) \
78
- V(CmpJSObjectEqAndBranch) \
79
- V(CmpMapAndBranch) \
80
- V(CmpT) \
81
- V(CmpTAndBranch) \
82
- V(ConstantD) \
83
- V(ConstantI) \
84
- V(ConstantT) \
85
- V(Context) \
86
- V(DeleteProperty) \
87
- V(Deoptimize) \
88
- V(DivI) \
89
- V(DoubleToI) \
90
- V(FunctionLiteral) \
91
- V(Gap) \
92
- V(GlobalObject) \
93
- V(GlobalReceiver) \
94
- V(Goto) \
95
- V(FixedArrayLength) \
96
- V(InstanceOf) \
97
- V(InstanceOfAndBranch) \
98
- V(InstanceOfKnownGlobal) \
99
- V(Integer32ToDouble) \
100
- V(IsNull) \
101
- V(IsNullAndBranch) \
102
- V(IsObject) \
103
- V(IsObjectAndBranch) \
104
- V(IsSmi) \
105
- V(IsSmiAndBranch) \
106
- V(JSArrayLength) \
107
- V(HasInstanceType) \
108
- V(HasInstanceTypeAndBranch) \
109
- V(HasCachedArrayIndex) \
110
- V(HasCachedArrayIndexAndBranch) \
111
- V(ClassOfTest) \
112
- V(ClassOfTestAndBranch) \
113
- V(Label) \
114
- V(LazyBailout) \
115
- V(LoadContextSlot) \
116
- V(LoadElements) \
117
- V(LoadGlobal) \
118
- V(LoadKeyedFastElement) \
119
- V(LoadKeyedGeneric) \
120
- V(LoadNamedField) \
121
- V(LoadNamedGeneric) \
122
- V(LoadFunctionPrototype) \
123
- V(LoadPixelArrayElement) \
124
- V(LoadPixelArrayExternalPointer) \
125
- V(ModI) \
126
- V(MulI) \
127
- V(NumberTagD) \
128
- V(NumberTagI) \
129
- V(NumberUntagD) \
130
- V(ObjectLiteral) \
131
- V(OsrEntry) \
132
- V(OuterContext) \
133
- V(Parameter) \
134
- V(PixelArrayLength) \
135
- V(Power) \
136
- V(PushArgument) \
137
- V(RegExpLiteral) \
138
- V(Return) \
139
- V(ShiftI) \
140
- V(SmiTag) \
141
- V(SmiUntag) \
142
- V(StackCheck) \
143
- V(StoreContextSlot) \
144
- V(StoreGlobal) \
145
- V(StoreKeyedFastElement) \
146
- V(StoreKeyedGeneric) \
147
- V(StoreNamedField) \
148
- V(StoreNamedGeneric) \
149
- V(StorePixelArrayElement) \
150
- V(StringCharCodeAt) \
151
- V(StringLength) \
152
- V(SubI) \
153
- V(TaggedToI) \
154
- V(Throw) \
155
- V(Typeof) \
156
- V(TypeofIs) \
157
- V(TypeofIsAndBranch) \
158
- V(IsConstructCall) \
159
- V(IsConstructCallAndBranch) \
160
- V(UnaryMathOperation) \
161
- V(UnknownOSRValue) \
162
- V(ValueOf)
163
-
164
-
165
- #define DECLARE_INSTRUCTION(type) \
166
- virtual bool Is##type() const { return true; } \
167
- static L##type* cast(LInstruction* instr) { \
168
- ASSERT(instr->Is##type()); \
169
- return reinterpret_cast<L##type*>(instr); \
170
- }
171
-
172
-
173
- #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
174
- virtual void CompileToNative(LCodeGen* generator); \
175
- virtual const char* Mnemonic() const { return mnemonic; } \
176
- DECLARE_INSTRUCTION(type)
177
-
178
-
179
- #define DECLARE_HYDROGEN_ACCESSOR(type) \
180
- H##type* hydrogen() const { \
181
- return H##type::cast(hydrogen_value()); \
182
- }
183
-
184
-
185
- class LInstruction: public ZoneObject {
186
- public:
187
- LInstruction()
188
- : environment_(NULL),
189
- hydrogen_value_(NULL),
190
- is_call_(false),
191
- is_save_doubles_(false) { }
192
-
193
- virtual ~LInstruction() { }
194
-
195
- virtual void CompileToNative(LCodeGen* generator) = 0;
196
- virtual const char* Mnemonic() const = 0;
197
- virtual void PrintTo(StringStream* stream);
198
- virtual void PrintDataTo(StringStream* stream) = 0;
199
- virtual void PrintOutputOperandTo(StringStream* stream) = 0;
200
-
201
- // Declare virtual type testers.
202
- #define DECLARE_DO(type) virtual bool Is##type() const { return false; }
203
- LITHIUM_ALL_INSTRUCTION_LIST(DECLARE_DO)
204
- #undef DECLARE_DO
205
-
206
- virtual bool IsControl() const { return false; }
207
- virtual void SetBranchTargets(int true_block_id, int false_block_id) { }
208
-
209
- void set_environment(LEnvironment* env) { environment_ = env; }
210
- LEnvironment* environment() const { return environment_; }
211
- bool HasEnvironment() const { return environment_ != NULL; }
212
-
213
- void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
214
- LPointerMap* pointer_map() const { return pointer_map_.get(); }
215
- bool HasPointerMap() const { return pointer_map_.is_set(); }
216
-
217
- void set_hydrogen_value(HValue* value) { hydrogen_value_ = value; }
218
- HValue* hydrogen_value() const { return hydrogen_value_; }
219
-
220
- void set_deoptimization_environment(LEnvironment* env) {
221
- deoptimization_environment_.set(env);
222
- }
223
- LEnvironment* deoptimization_environment() const {
224
- return deoptimization_environment_.get();
225
- }
226
- bool HasDeoptimizationEnvironment() const {
227
- return deoptimization_environment_.is_set();
228
- }
229
-
230
- void MarkAsCall() { is_call_ = true; }
231
- void MarkAsSaveDoubles() { is_save_doubles_ = true; }
232
-
233
- // Interface to the register allocator and iterators.
234
- bool IsMarkedAsCall() const { return is_call_; }
235
- bool IsMarkedAsSaveDoubles() const { return is_save_doubles_; }
236
-
237
- virtual bool HasResult() const = 0;
238
- virtual LOperand* result() = 0;
239
-
240
- virtual int InputCount() = 0;
241
- virtual LOperand* InputAt(int i) = 0;
242
- virtual int TempCount() = 0;
243
- virtual LOperand* TempAt(int i) = 0;
244
-
245
- LOperand* FirstInput() { return InputAt(0); }
246
- LOperand* Output() { return HasResult() ? result() : NULL; }
247
-
248
- #ifdef DEBUG
249
- void VerifyCall();
250
- #endif
251
-
252
- private:
253
- LEnvironment* environment_;
254
- SetOncePointer<LPointerMap> pointer_map_;
255
- HValue* hydrogen_value_;
256
- SetOncePointer<LEnvironment> deoptimization_environment_;
257
- bool is_call_;
258
- bool is_save_doubles_;
259
- };
260
-
261
-
262
- template<typename ElementType, int NumElements>
263
- class OperandContainer {
264
- public:
265
- OperandContainer() {
266
- for (int i = 0; i < NumElements; i++) elems_[i] = NULL;
267
- }
268
- int length() { return NumElements; }
269
- ElementType& operator[](int i) {
270
- ASSERT(i < length());
271
- return elems_[i];
272
- }
273
- void PrintOperandsTo(StringStream* stream);
274
-
275
- private:
276
- ElementType elems_[NumElements];
277
- };
278
-
279
-
280
- template<typename ElementType>
281
- class OperandContainer<ElementType, 0> {
282
- public:
283
- int length() { return 0; }
284
- void PrintOperandsTo(StringStream* stream) { }
285
- ElementType& operator[](int i) {
286
- UNREACHABLE();
287
- static ElementType t = 0;
288
- return t;
289
- }
290
- };
291
-
292
-
293
- // R = number of result operands (0 or 1).
294
- // I = number of input operands.
295
- // T = number of temporary operands.
296
- template<int R, int I, int T>
297
- class LTemplateInstruction: public LInstruction {
298
- public:
299
- // Allow 0 or 1 output operands.
300
- STATIC_ASSERT(R == 0 || R == 1);
301
- virtual bool HasResult() const { return R != 0; }
302
- void set_result(LOperand* operand) { results_[0] = operand; }
303
- LOperand* result() { return results_[0]; }
304
-
305
- int InputCount() { return I; }
306
- LOperand* InputAt(int i) { return inputs_[i]; }
307
-
308
- int TempCount() { return T; }
309
- LOperand* TempAt(int i) { return temps_[i]; }
310
-
311
- virtual void PrintDataTo(StringStream* stream);
312
- virtual void PrintOutputOperandTo(StringStream* stream);
313
-
314
- protected:
315
- OperandContainer<LOperand*, R> results_;
316
- OperandContainer<LOperand*, I> inputs_;
317
- OperandContainer<LOperand*, T> temps_;
318
- };
319
-
320
-
321
- class LGap: public LTemplateInstruction<0, 0, 0> {
322
- public:
323
- explicit LGap(HBasicBlock* block)
324
- : block_(block) {
325
- parallel_moves_[BEFORE] = NULL;
326
- parallel_moves_[START] = NULL;
327
- parallel_moves_[END] = NULL;
328
- parallel_moves_[AFTER] = NULL;
329
- }
330
-
331
- DECLARE_CONCRETE_INSTRUCTION(Gap, "gap")
332
- virtual void PrintDataTo(StringStream* stream);
333
-
334
- bool IsRedundant() const;
335
-
336
- HBasicBlock* block() const { return block_; }
337
-
338
- enum InnerPosition {
339
- BEFORE,
340
- START,
341
- END,
342
- AFTER,
343
- FIRST_INNER_POSITION = BEFORE,
344
- LAST_INNER_POSITION = AFTER
345
- };
346
-
347
- LParallelMove* GetOrCreateParallelMove(InnerPosition pos) {
348
- if (parallel_moves_[pos] == NULL) parallel_moves_[pos] = new LParallelMove;
349
- return parallel_moves_[pos];
350
- }
351
-
352
- LParallelMove* GetParallelMove(InnerPosition pos) {
353
- return parallel_moves_[pos];
354
- }
355
-
356
- private:
357
- LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1];
358
- HBasicBlock* block_;
359
- };
360
-
361
-
362
- class LGoto: public LTemplateInstruction<0, 0, 0> {
363
- public:
364
- LGoto(int block_id, bool include_stack_check = false)
365
- : block_id_(block_id), include_stack_check_(include_stack_check) { }
366
-
367
- DECLARE_CONCRETE_INSTRUCTION(Goto, "goto")
368
- virtual void PrintDataTo(StringStream* stream);
369
- virtual bool IsControl() const { return true; }
370
-
371
- int block_id() const { return block_id_; }
372
- bool include_stack_check() const { return include_stack_check_; }
373
-
374
- private:
375
- int block_id_;
376
- bool include_stack_check_;
377
- };
378
-
379
-
380
- class LLazyBailout: public LTemplateInstruction<0, 0, 0> {
381
- public:
382
- LLazyBailout() : gap_instructions_size_(0) { }
383
-
384
- DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
385
-
386
- void set_gap_instructions_size(int gap_instructions_size) {
387
- gap_instructions_size_ = gap_instructions_size;
388
- }
389
- int gap_instructions_size() { return gap_instructions_size_; }
390
-
391
- private:
392
- int gap_instructions_size_;
393
- };
394
-
395
-
396
- class LDeoptimize: public LTemplateInstruction<0, 0, 0> {
397
- public:
398
- DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize")
399
- };
400
-
401
-
402
- class LLabel: public LGap {
403
- public:
404
- explicit LLabel(HBasicBlock* block)
405
- : LGap(block), replacement_(NULL) { }
406
-
407
- DECLARE_CONCRETE_INSTRUCTION(Label, "label")
408
-
409
- virtual void PrintDataTo(StringStream* stream);
410
-
411
- int block_id() const { return block()->block_id(); }
412
- bool is_loop_header() const { return block()->IsLoopHeader(); }
413
- Label* label() { return &label_; }
414
- LLabel* replacement() const { return replacement_; }
415
- void set_replacement(LLabel* label) { replacement_ = label; }
416
- bool HasReplacement() const { return replacement_ != NULL; }
417
-
418
- private:
419
- Label label_;
420
- LLabel* replacement_;
421
- };
422
-
423
-
424
- class LParameter: public LTemplateInstruction<1, 0, 0> {
425
- public:
426
- DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
427
- };
428
-
429
-
430
- class LCallStub: public LTemplateInstruction<1, 0, 0> {
431
- public:
432
- DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
433
- DECLARE_HYDROGEN_ACCESSOR(CallStub)
434
-
435
- TranscendentalCache::Type transcendental_type() {
436
- return hydrogen()->transcendental_type();
437
- }
438
- };
439
-
440
-
441
- class LUnknownOSRValue: public LTemplateInstruction<1, 0, 0> {
442
- public:
443
- DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
444
- };
445
-
446
-
447
- template<int I, int T>
448
- class LControlInstruction: public LTemplateInstruction<0, I, T> {
449
- public:
450
- DECLARE_INSTRUCTION(ControlInstruction)
451
- virtual bool IsControl() const { return true; }
452
-
453
- int true_block_id() const { return true_block_id_; }
454
- int false_block_id() const { return false_block_id_; }
455
- void SetBranchTargets(int true_block_id, int false_block_id) {
456
- true_block_id_ = true_block_id;
457
- false_block_id_ = false_block_id;
458
- }
459
-
460
- private:
461
- int true_block_id_;
462
- int false_block_id_;
463
- };
464
-
465
-
466
- class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
467
- public:
468
- LApplyArguments(LOperand* function,
469
- LOperand* receiver,
470
- LOperand* length,
471
- LOperand* elements) {
472
- inputs_[0] = function;
473
- inputs_[1] = receiver;
474
- inputs_[2] = length;
475
- inputs_[3] = elements;
476
- }
477
-
478
- DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments")
479
-
480
- LOperand* function() { return inputs_[0]; }
481
- LOperand* receiver() { return inputs_[1]; }
482
- LOperand* length() { return inputs_[2]; }
483
- LOperand* elements() { return inputs_[3]; }
484
- };
485
-
486
-
487
- class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
488
- public:
489
- LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) {
490
- inputs_[0] = arguments;
491
- inputs_[1] = length;
492
- inputs_[2] = index;
493
- }
494
-
495
- DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
496
-
497
- LOperand* arguments() { return inputs_[0]; }
498
- LOperand* length() { return inputs_[1]; }
499
- LOperand* index() { return inputs_[2]; }
500
-
501
- virtual void PrintDataTo(StringStream* stream);
502
- };
503
-
504
-
505
- class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
506
- public:
507
- explicit LArgumentsLength(LOperand* elements) {
508
- inputs_[0] = elements;
509
- }
510
-
511
- DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
512
- };
513
-
514
-
515
- class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
516
- public:
517
- LArgumentsElements() { }
518
-
519
- DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
520
- };
521
-
522
-
523
- class LModI: public LTemplateInstruction<1, 2, 1> {
524
- public:
525
- LModI(LOperand* left, LOperand* right, LOperand* temp) {
526
- inputs_[0] = left;
527
- inputs_[1] = right;
528
- temps_[0] = temp;
529
- }
530
-
531
- DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
532
- DECLARE_HYDROGEN_ACCESSOR(Mod)
533
- };
534
-
535
-
536
- class LDivI: public LTemplateInstruction<1, 2, 1> {
537
- public:
538
- LDivI(LOperand* left, LOperand* right, LOperand* temp) {
539
- inputs_[0] = left;
540
- inputs_[1] = right;
541
- temps_[0] = temp;
542
- }
543
-
544
- DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
545
- DECLARE_HYDROGEN_ACCESSOR(Div)
546
- };
547
-
548
-
549
- class LMulI: public LTemplateInstruction<1, 2, 0> {
550
- public:
551
- LMulI(LOperand* left, LOperand* right) {
552
- inputs_[0] = left;
553
- inputs_[1] = right;
554
- }
555
-
556
- DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
557
- DECLARE_HYDROGEN_ACCESSOR(Mul)
558
- };
559
-
560
-
561
- class LCmpID: public LTemplateInstruction<1, 2, 0> {
562
- public:
563
- LCmpID(LOperand* left, LOperand* right) {
564
- inputs_[0] = left;
565
- inputs_[1] = right;
566
- }
567
-
568
- DECLARE_CONCRETE_INSTRUCTION(CmpID, "cmp-id")
569
- DECLARE_HYDROGEN_ACCESSOR(Compare)
570
-
571
- Token::Value op() const { return hydrogen()->token(); }
572
- bool is_double() const {
573
- return hydrogen()->GetInputRepresentation().IsDouble();
574
- }
575
- };
576
-
577
-
578
- class LCmpIDAndBranch: public LControlInstruction<2, 0> {
579
- public:
580
- LCmpIDAndBranch(LOperand* left, LOperand* right) {
581
- inputs_[0] = left;
582
- inputs_[1] = right;
583
- }
584
-
585
- DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch")
586
- DECLARE_HYDROGEN_ACCESSOR(Compare)
587
-
588
- Token::Value op() const { return hydrogen()->token(); }
589
- bool is_double() const {
590
- return hydrogen()->GetInputRepresentation().IsDouble();
591
- }
592
-
593
- virtual void PrintDataTo(StringStream* stream);
594
- };
595
-
596
-
597
- class LUnaryMathOperation: public LTemplateInstruction<1, 1, 0> {
598
- public:
599
- explicit LUnaryMathOperation(LOperand* value) {
600
- inputs_[0] = value;
601
- }
602
-
603
- DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation")
604
- DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
605
-
606
- virtual void PrintDataTo(StringStream* stream);
607
- BuiltinFunctionId op() const { return hydrogen()->op(); }
608
- };
609
-
610
-
611
- class LCmpJSObjectEq: public LTemplateInstruction<1, 2, 0> {
612
- public:
613
- LCmpJSObjectEq(LOperand* left, LOperand* right) {
614
- inputs_[0] = left;
615
- inputs_[1] = right;
616
- }
617
-
618
- DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEq, "cmp-jsobject-eq")
619
- };
620
-
621
-
622
- class LCmpJSObjectEqAndBranch: public LControlInstruction<2, 0> {
623
- public:
624
- LCmpJSObjectEqAndBranch(LOperand* left, LOperand* right) {
625
- inputs_[0] = left;
626
- inputs_[1] = right;
627
- }
628
-
629
- DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEqAndBranch,
630
- "cmp-jsobject-eq-and-branch")
631
- };
632
-
633
-
634
- class LIsNull: public LTemplateInstruction<1, 1, 0> {
635
- public:
636
- explicit LIsNull(LOperand* value) {
637
- inputs_[0] = value;
638
- }
639
-
640
- DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null")
641
- DECLARE_HYDROGEN_ACCESSOR(IsNull)
642
-
643
- bool is_strict() const { return hydrogen()->is_strict(); }
644
- };
645
-
646
-
647
- class LIsNullAndBranch: public LControlInstruction<1, 1> {
648
- public:
649
- LIsNullAndBranch(LOperand* value, LOperand* temp) {
650
- inputs_[0] = value;
651
- temps_[0] = temp;
652
- }
653
-
654
- DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch")
655
- DECLARE_HYDROGEN_ACCESSOR(IsNull)
656
-
657
- bool is_strict() const { return hydrogen()->is_strict(); }
658
-
659
- virtual void PrintDataTo(StringStream* stream);
660
- };
661
-
662
-
663
- class LIsObject: public LTemplateInstruction<1, 1, 0> {
664
- public:
665
- explicit LIsObject(LOperand* value) {
666
- inputs_[0] = value;
667
- }
668
-
669
- DECLARE_CONCRETE_INSTRUCTION(IsObject, "is-object")
670
- };
671
-
672
-
673
- class LIsObjectAndBranch: public LControlInstruction<1, 0> {
674
- public:
675
- explicit LIsObjectAndBranch(LOperand* value) {
676
- inputs_[0] = value;
677
- }
678
-
679
- DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
680
-
681
- virtual void PrintDataTo(StringStream* stream);
682
- };
683
-
684
-
685
- class LIsSmi: public LTemplateInstruction<1, 1, 0> {
686
- public:
687
- explicit LIsSmi(LOperand* value) {
688
- inputs_[0] = value;
689
- }
690
-
691
- DECLARE_CONCRETE_INSTRUCTION(IsSmi, "is-smi")
692
- DECLARE_HYDROGEN_ACCESSOR(IsSmi)
693
- };
694
-
695
-
696
- class LIsSmiAndBranch: public LControlInstruction<1, 0> {
697
- public:
698
- explicit LIsSmiAndBranch(LOperand* value) {
699
- inputs_[0] = value;
700
- }
701
-
702
- DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
703
-
704
- virtual void PrintDataTo(StringStream* stream);
705
- };
706
-
707
-
708
- class LHasInstanceType: public LTemplateInstruction<1, 1, 0> {
709
- public:
710
- explicit LHasInstanceType(LOperand* value) {
711
- inputs_[0] = value;
712
- }
713
-
714
- DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type")
715
- DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
716
- };
717
-
718
-
719
- class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> {
720
- public:
721
- explicit LHasInstanceTypeAndBranch(LOperand* value) {
722
- inputs_[0] = value;
723
- }
724
-
725
- DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
726
- "has-instance-type-and-branch")
727
- DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
728
-
729
- virtual void PrintDataTo(StringStream* stream);
730
- };
731
-
732
-
733
- class LHasCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
734
- public:
735
- explicit LHasCachedArrayIndex(LOperand* value) {
736
- inputs_[0] = value;
737
- }
738
-
739
- DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has-cached-array-index")
740
- DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndex)
741
- };
742
-
743
-
744
- class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
745
- public:
746
- explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
747
- inputs_[0] = value;
748
- }
749
-
750
- DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
751
- "has-cached-array-index-and-branch")
752
- virtual void PrintDataTo(StringStream* stream);
753
- };
754
-
755
-
756
- class LClassOfTest: public LTemplateInstruction<1, 1, 1> {
757
- public:
758
- LClassOfTest(LOperand* value, LOperand* temp) {
759
- inputs_[0] = value;
760
- temps_[0] = temp;
761
- }
762
-
763
- DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class-of-test")
764
- DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
765
-
766
- virtual void PrintDataTo(StringStream* stream);
767
- };
768
-
769
-
770
- class LClassOfTestAndBranch: public LControlInstruction<1, 1> {
771
- public:
772
- LClassOfTestAndBranch(LOperand* value, LOperand* temp) {
773
- inputs_[0] = value;
774
- temps_[0] = temp;
775
- }
776
-
777
- DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch,
778
- "class-of-test-and-branch")
779
- DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
780
-
781
- virtual void PrintDataTo(StringStream* stream);
782
- };
783
-
784
-
785
- class LCmpT: public LTemplateInstruction<1, 2, 0> {
786
- public:
787
- LCmpT(LOperand* left, LOperand* right) {
788
- inputs_[0] = left;
789
- inputs_[1] = right;
790
- }
791
-
792
- DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
793
- DECLARE_HYDROGEN_ACCESSOR(Compare)
794
-
795
- Token::Value op() const { return hydrogen()->token(); }
796
- };
797
-
798
-
799
- class LCmpTAndBranch: public LControlInstruction<2, 0> {
800
- public:
801
- LCmpTAndBranch(LOperand* left, LOperand* right) {
802
- inputs_[0] = left;
803
- inputs_[1] = right;
804
- }
805
-
806
- DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch")
807
- DECLARE_HYDROGEN_ACCESSOR(Compare)
808
-
809
- Token::Value op() const { return hydrogen()->token(); }
810
- };
811
-
812
-
813
- class LInstanceOf: public LTemplateInstruction<1, 2, 0> {
814
- public:
815
- LInstanceOf(LOperand* left, LOperand* right) {
816
- inputs_[0] = left;
817
- inputs_[1] = right;
818
- }
819
-
820
- DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
821
- };
822
-
823
-
824
- class LInstanceOfAndBranch: public LControlInstruction<2, 0> {
825
- public:
826
- LInstanceOfAndBranch(LOperand* left, LOperand* right) {
827
- inputs_[0] = left;
828
- inputs_[1] = right;
829
- }
830
-
831
- DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch")
832
- };
833
-
834
-
835
- class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 0> {
836
- public:
837
- explicit LInstanceOfKnownGlobal(LOperand* value) {
838
- inputs_[0] = value;
839
- }
840
-
841
- DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
842
- "instance-of-known-global")
843
- DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
844
-
845
- Handle<JSFunction> function() const { return hydrogen()->function(); }
846
- };
847
-
848
-
849
- class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
850
- public:
851
- LBoundsCheck(LOperand* index, LOperand* length) {
852
- inputs_[0] = index;
853
- inputs_[1] = length;
854
- }
855
-
856
- LOperand* index() { return inputs_[0]; }
857
- LOperand* length() { return inputs_[1]; }
858
-
859
- DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
860
- };
861
-
862
-
863
- class LBitI: public LTemplateInstruction<1, 2, 0> {
864
- public:
865
- LBitI(Token::Value op, LOperand* left, LOperand* right)
866
- : op_(op) {
867
- inputs_[0] = left;
868
- inputs_[1] = right;
869
- }
870
-
871
- Token::Value op() const { return op_; }
872
-
873
- DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
874
-
875
- private:
876
- Token::Value op_;
877
- };
878
-
879
-
880
- class LShiftI: public LTemplateInstruction<1, 2, 0> {
881
- public:
882
- LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
883
- : op_(op), can_deopt_(can_deopt) {
884
- inputs_[0] = left;
885
- inputs_[1] = right;
886
- }
887
-
888
- Token::Value op() const { return op_; }
889
-
890
- bool can_deopt() const { return can_deopt_; }
891
-
892
- DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i")
893
-
894
- private:
895
- Token::Value op_;
896
- bool can_deopt_;
897
- };
898
-
899
-
900
- class LSubI: public LTemplateInstruction<1, 2, 0> {
901
- public:
902
- LSubI(LOperand* left, LOperand* right) {
903
- inputs_[0] = left;
904
- inputs_[1] = right;
905
- }
906
-
907
- DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i")
908
- DECLARE_HYDROGEN_ACCESSOR(Sub)
909
- };
910
-
911
-
912
- class LConstantI: public LTemplateInstruction<1, 0, 0> {
913
- public:
914
- DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i")
915
- DECLARE_HYDROGEN_ACCESSOR(Constant)
916
-
917
- int32_t value() const { return hydrogen()->Integer32Value(); }
918
- };
919
-
920
-
921
- class LConstantD: public LTemplateInstruction<1, 0, 1> {
922
- public:
923
- explicit LConstantD(LOperand* temp) {
924
- temps_[0] = temp;
925
- }
926
- DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
927
- DECLARE_HYDROGEN_ACCESSOR(Constant)
928
-
929
- double value() const { return hydrogen()->DoubleValue(); }
930
- };
931
-
932
-
933
- class LConstantT: public LTemplateInstruction<1, 0, 0> {
934
- public:
935
- DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
936
- DECLARE_HYDROGEN_ACCESSOR(Constant)
937
-
938
- Handle<Object> value() const { return hydrogen()->handle(); }
939
- };
940
-
941
-
942
- class LBranch: public LControlInstruction<1, 0> {
943
- public:
944
- explicit LBranch(LOperand* value) {
945
- inputs_[0] = value;
946
- }
947
-
948
- DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
949
- DECLARE_HYDROGEN_ACCESSOR(Value)
950
-
951
- virtual void PrintDataTo(StringStream* stream);
952
- };
953
-
954
-
955
- class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> {
956
- public:
957
- explicit LCmpMapAndBranch(LOperand* value) {
958
- inputs_[0] = value;
959
- }
960
-
961
- DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
962
- DECLARE_HYDROGEN_ACCESSOR(CompareMap)
963
-
964
- virtual bool IsControl() const { return true; }
965
-
966
- Handle<Map> map() const { return hydrogen()->map(); }
967
- int true_block_id() const {
968
- return hydrogen()->FirstSuccessor()->block_id();
969
- }
970
- int false_block_id() const {
971
- return hydrogen()->SecondSuccessor()->block_id();
972
- }
973
- };
974
-
975
-
976
- class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
977
- public:
978
- explicit LJSArrayLength(LOperand* value) {
979
- inputs_[0] = value;
980
- }
981
-
982
- DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
983
- DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
984
- };
985
-
986
-
987
- class LPixelArrayLength: public LTemplateInstruction<1, 1, 0> {
988
- public:
989
- explicit LPixelArrayLength(LOperand* value) {
990
- inputs_[0] = value;
991
- }
992
-
993
- DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel-array-length")
994
- DECLARE_HYDROGEN_ACCESSOR(PixelArrayLength)
995
- };
996
-
997
-
998
- class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
999
- public:
1000
- explicit LFixedArrayLength(LOperand* value) {
1001
- inputs_[0] = value;
1002
- }
1003
-
1004
- DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
1005
- DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength)
1006
- };
1007
-
1008
-
1009
- class LValueOf: public LTemplateInstruction<1, 1, 0> {
1010
- public:
1011
- explicit LValueOf(LOperand* value) {
1012
- inputs_[0] = value;
1013
- }
1014
-
1015
- DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
1016
- DECLARE_HYDROGEN_ACCESSOR(ValueOf)
1017
- };
1018
-
1019
-
1020
- class LThrow: public LTemplateInstruction<0, 1, 0> {
1021
- public:
1022
- explicit LThrow(LOperand* value) {
1023
- inputs_[0] = value;
1024
- }
1025
-
1026
- DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
1027
- };
1028
-
1029
-
1030
- class LBitNotI: public LTemplateInstruction<1, 1, 0> {
1031
- public:
1032
- explicit LBitNotI(LOperand* value) {
1033
- inputs_[0] = value;
1034
- }
1035
-
1036
- DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
1037
- };
1038
-
1039
-
1040
- class LAddI: public LTemplateInstruction<1, 2, 0> {
1041
- public:
1042
- LAddI(LOperand* left, LOperand* right) {
1043
- inputs_[0] = left;
1044
- inputs_[1] = right;
1045
- }
1046
-
1047
- DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
1048
- DECLARE_HYDROGEN_ACCESSOR(Add)
1049
- };
1050
-
1051
-
1052
- class LPower: public LTemplateInstruction<1, 2, 0> {
1053
- public:
1054
- LPower(LOperand* left, LOperand* right) {
1055
- inputs_[0] = left;
1056
- inputs_[1] = right;
1057
- }
1058
-
1059
- DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1060
- DECLARE_HYDROGEN_ACCESSOR(Power)
1061
- };
1062
-
1063
-
1064
- class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
1065
- public:
1066
- LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
1067
- : op_(op) {
1068
- inputs_[0] = left;
1069
- inputs_[1] = right;
1070
- }
1071
-
1072
- Token::Value op() const { return op_; }
1073
-
1074
- virtual void CompileToNative(LCodeGen* generator);
1075
- virtual const char* Mnemonic() const;
1076
-
1077
- private:
1078
- Token::Value op_;
1079
- };
1080
-
1081
-
1082
- class LArithmeticT: public LTemplateInstruction<1, 2, 0> {
1083
- public:
1084
- LArithmeticT(Token::Value op, LOperand* left, LOperand* right)
1085
- : op_(op) {
1086
- inputs_[0] = left;
1087
- inputs_[1] = right;
1088
- }
1089
-
1090
- virtual void CompileToNative(LCodeGen* generator);
1091
- virtual const char* Mnemonic() const;
1092
-
1093
- Token::Value op() const { return op_; }
1094
-
1095
- private:
1096
- Token::Value op_;
1097
- };
1098
-
1099
-
1100
- class LReturn: public LTemplateInstruction<0, 1, 0> {
1101
- public:
1102
- explicit LReturn(LOperand* value) {
1103
- inputs_[0] = value;
1104
- }
1105
-
1106
- DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1107
- };
1108
-
1109
-
1110
- class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1111
- public:
1112
- explicit LLoadNamedField(LOperand* object) {
1113
- inputs_[0] = object;
1114
- }
1115
-
1116
- DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1117
- DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1118
- };
1119
-
1120
-
1121
- class LLoadNamedGeneric: public LTemplateInstruction<1, 1, 0> {
1122
- public:
1123
- explicit LLoadNamedGeneric(LOperand* object) {
1124
- inputs_[0] = object;
1125
- }
1126
-
1127
- DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1128
- DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
1129
-
1130
- LOperand* object() { return inputs_[0]; }
1131
- Handle<Object> name() const { return hydrogen()->name(); }
1132
- };
1133
-
1134
-
1135
- class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 0> {
1136
- public:
1137
- explicit LLoadFunctionPrototype(LOperand* function) {
1138
- inputs_[0] = function;
1139
- }
1140
-
1141
- DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1142
- DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1143
-
1144
- LOperand* function() { return inputs_[0]; }
1145
- };
1146
-
1147
-
1148
- class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1149
- public:
1150
- explicit LLoadElements(LOperand* object) {
1151
- inputs_[0] = object;
1152
- }
1153
-
1154
- DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1155
- };
1156
-
1157
-
1158
- class LLoadPixelArrayExternalPointer: public LTemplateInstruction<1, 1, 0> {
1159
- public:
1160
- explicit LLoadPixelArrayExternalPointer(LOperand* object) {
1161
- inputs_[0] = object;
1162
- }
1163
-
1164
- DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer,
1165
- "load-pixel-array-external-pointer")
1166
- };
1167
-
1168
-
1169
- class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
1170
- public:
1171
- LLoadKeyedFastElement(LOperand* elements, LOperand* key) {
1172
- inputs_[0] = elements;
1173
- inputs_[1] = key;
1174
- }
1175
-
1176
- DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1177
- DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1178
-
1179
- LOperand* elements() { return inputs_[0]; }
1180
- LOperand* key() { return inputs_[1]; }
1181
- };
1182
-
1183
-
1184
- class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> {
1185
- public:
1186
- LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) {
1187
- inputs_[0] = external_pointer;
1188
- inputs_[1] = key;
1189
- }
1190
-
1191
- DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement,
1192
- "load-pixel-array-element")
1193
- DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement)
1194
-
1195
- LOperand* external_pointer() { return inputs_[0]; }
1196
- LOperand* key() { return inputs_[1]; }
1197
- };
1198
-
1199
-
1200
- class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1201
- public:
1202
- LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1203
- inputs_[0] = obj;
1204
- inputs_[1] = key;
1205
- }
1206
-
1207
- DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1208
-
1209
- LOperand* object() { return inputs_[0]; }
1210
- LOperand* key() { return inputs_[1]; }
1211
- };
1212
-
1213
-
1214
- class LLoadGlobal: public LTemplateInstruction<1, 0, 0> {
1215
- public:
1216
- DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global")
1217
- DECLARE_HYDROGEN_ACCESSOR(LoadGlobal)
1218
- };
1219
-
1220
-
1221
- class LStoreGlobal: public LTemplateInstruction<0, 1, 1> {
1222
- public:
1223
- explicit LStoreGlobal(LOperand* value, LOperand* temp) {
1224
- inputs_[0] = value;
1225
- temps_[0] = temp;
1226
- }
1227
-
1228
- DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
1229
- DECLARE_HYDROGEN_ACCESSOR(StoreGlobal)
1230
- };
1231
-
1232
-
1233
- class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1234
- public:
1235
- explicit LLoadContextSlot(LOperand* context) {
1236
- inputs_[0] = context;
1237
- }
1238
-
1239
- DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1240
- DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1241
-
1242
- LOperand* context() { return InputAt(0); }
1243
- int slot_index() { return hydrogen()->slot_index(); }
1244
-
1245
- virtual void PrintDataTo(StringStream* stream);
1246
- };
1247
-
1248
-
1249
- class LStoreContextSlot: public LTemplateInstruction<0, 2, 0> {
1250
- public:
1251
- LStoreContextSlot(LOperand* context, LOperand* value) {
1252
- inputs_[0] = context;
1253
- inputs_[1] = value;
1254
- }
1255
-
1256
- DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
1257
- DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
1258
-
1259
- LOperand* context() { return InputAt(0); }
1260
- LOperand* value() { return InputAt(1); }
1261
- int slot_index() { return hydrogen()->slot_index(); }
1262
- int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); }
1263
-
1264
- virtual void PrintDataTo(StringStream* stream);
1265
- };
1266
-
1267
-
1268
- class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1269
- public:
1270
- explicit LPushArgument(LOperand* value) {
1271
- inputs_[0] = value;
1272
- }
1273
-
1274
- DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
1275
- };
1276
-
1277
-
1278
- class LContext: public LTemplateInstruction<1, 0, 0> {
1279
- public:
1280
- DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1281
- };
1282
-
1283
-
1284
- class LOuterContext: public LTemplateInstruction<1, 1, 0> {
1285
- public:
1286
- explicit LOuterContext(LOperand* context) {
1287
- inputs_[0] = context;
1288
- }
1289
-
1290
- DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
1291
-
1292
- LOperand* context() { return InputAt(0); }
1293
- };
1294
-
1295
-
1296
- class LGlobalObject: public LTemplateInstruction<1, 0, 0> {
1297
- public:
1298
- DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
1299
- };
1300
-
1301
-
1302
- class LGlobalReceiver: public LTemplateInstruction<1, 0, 0> {
1303
- public:
1304
- DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
1305
- };
1306
-
1307
-
1308
- class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> {
1309
- public:
1310
- DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
1311
- DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
1312
-
1313
- virtual void PrintDataTo(StringStream* stream);
1314
-
1315
- Handle<JSFunction> function() { return hydrogen()->function(); }
1316
- int arity() const { return hydrogen()->argument_count() - 1; }
1317
- };
1318
-
1319
-
1320
- class LCallKeyed: public LTemplateInstruction<1, 1, 0> {
1321
- public:
1322
- explicit LCallKeyed(LOperand* key) {
1323
- inputs_[0] = key;
1324
- }
1325
-
1326
- DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
1327
- DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
1328
-
1329
- LOperand* key() { return inputs_[0]; }
1330
-
1331
- virtual void PrintDataTo(StringStream* stream);
1332
-
1333
- int arity() const { return hydrogen()->argument_count() - 1; }
1334
- };
1335
-
1336
-
1337
- class LCallNamed: public LTemplateInstruction<1, 0, 0> {
1338
- public:
1339
- DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
1340
- DECLARE_HYDROGEN_ACCESSOR(CallNamed)
1341
-
1342
- virtual void PrintDataTo(StringStream* stream);
1343
-
1344
- Handle<String> name() const { return hydrogen()->name(); }
1345
- int arity() const { return hydrogen()->argument_count() - 1; }
1346
- };
1347
-
1348
-
1349
- class LCallFunction: public LTemplateInstruction<1, 0, 0> {
1350
- public:
1351
- LCallFunction() {}
1352
-
1353
- DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1354
- DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1355
-
1356
- int arity() const { return hydrogen()->argument_count() - 2; }
1357
- };
1358
-
1359
-
1360
- class LCallGlobal: public LTemplateInstruction<1, 0, 0> {
1361
- public:
1362
- DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
1363
- DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
1364
-
1365
- virtual void PrintDataTo(StringStream* stream);
1366
-
1367
- Handle<String> name() const {return hydrogen()->name(); }
1368
- int arity() const { return hydrogen()->argument_count() - 1; }
1369
- };
1370
-
1371
-
1372
- class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> {
1373
- public:
1374
- DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
1375
- DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
1376
-
1377
- virtual void PrintDataTo(StringStream* stream);
1378
-
1379
- Handle<JSFunction> target() const { return hydrogen()->target(); }
1380
- int arity() const { return hydrogen()->argument_count() - 1; }
1381
- };
1382
-
1383
-
1384
- class LCallNew: public LTemplateInstruction<1, 1, 0> {
1385
- public:
1386
- explicit LCallNew(LOperand* constructor) {
1387
- inputs_[0] = constructor;
1388
- }
1389
-
1390
- DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
1391
- DECLARE_HYDROGEN_ACCESSOR(CallNew)
1392
-
1393
- virtual void PrintDataTo(StringStream* stream);
1394
-
1395
- int arity() const { return hydrogen()->argument_count() - 1; }
1396
- };
1397
-
1398
-
1399
- class LCallRuntime: public LTemplateInstruction<1, 0, 0> {
1400
- public:
1401
- DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime")
1402
- DECLARE_HYDROGEN_ACCESSOR(CallRuntime)
1403
-
1404
- Runtime::Function* function() const { return hydrogen()->function(); }
1405
- int arity() const { return hydrogen()->argument_count(); }
1406
- };
1407
-
1408
-
1409
- class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
1410
- public:
1411
- explicit LInteger32ToDouble(LOperand* value) {
1412
- inputs_[0] = value;
1413
- }
1414
-
1415
- DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double")
1416
- };
1417
-
1418
-
1419
- class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
1420
- public:
1421
- explicit LNumberTagI(LOperand* value) {
1422
- inputs_[0] = value;
1423
- }
1424
-
1425
- DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
1426
- };
1427
-
1428
-
1429
- class LNumberTagD: public LTemplateInstruction<1, 1, 1> {
1430
- public:
1431
- explicit LNumberTagD(LOperand* value, LOperand* temp) {
1432
- inputs_[0] = value;
1433
- temps_[0] = temp;
1434
- }
1435
-
1436
- DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
1437
- };
1438
-
1439
-
1440
- // Sometimes truncating conversion from a tagged value to an int32.
1441
- class LDoubleToI: public LTemplateInstruction<1, 1, 0> {
1442
- public:
1443
- explicit LDoubleToI(LOperand* value) {
1444
- inputs_[0] = value;
1445
- }
1446
-
1447
- DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
1448
- DECLARE_HYDROGEN_ACCESSOR(Change)
1449
-
1450
- bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1451
- };
1452
-
1453
-
1454
- // Truncating conversion from a tagged value to an int32.
1455
- class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
1456
- public:
1457
- LTaggedToI(LOperand* value, LOperand* temp) {
1458
- inputs_[0] = value;
1459
- temps_[0] = temp;
1460
- }
1461
-
1462
- DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
1463
- DECLARE_HYDROGEN_ACCESSOR(Change)
1464
-
1465
- bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1466
- };
1467
-
1468
-
1469
- class LSmiTag: public LTemplateInstruction<1, 1, 0> {
1470
- public:
1471
- explicit LSmiTag(LOperand* value) {
1472
- inputs_[0] = value;
1473
- }
1474
-
1475
- DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag")
1476
- };
1477
-
1478
-
1479
- class LNumberUntagD: public LTemplateInstruction<1, 1, 0> {
1480
- public:
1481
- explicit LNumberUntagD(LOperand* value) {
1482
- inputs_[0] = value;
1483
- }
1484
-
1485
- DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
1486
- };
1487
-
1488
-
1489
- class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
1490
- public:
1491
- LSmiUntag(LOperand* value, bool needs_check)
1492
- : needs_check_(needs_check) {
1493
- inputs_[0] = value;
1494
- }
1495
-
1496
- DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
1497
-
1498
- bool needs_check() const { return needs_check_; }
1499
-
1500
- private:
1501
- bool needs_check_;
1502
- };
1503
-
1504
-
1505
- class LStoreNamedField: public LTemplateInstruction<0, 2, 1> {
1506
- public:
1507
- LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) {
1508
- inputs_[0] = object;
1509
- inputs_[1] = value;
1510
- temps_[0] = temp;
1511
- }
1512
-
1513
- DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
1514
- DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
1515
-
1516
- virtual void PrintDataTo(StringStream* stream);
1517
-
1518
- LOperand* object() { return inputs_[0]; }
1519
- LOperand* value() { return inputs_[1]; }
1520
-
1521
- Handle<Object> name() const { return hydrogen()->name(); }
1522
- bool is_in_object() { return hydrogen()->is_in_object(); }
1523
- int offset() { return hydrogen()->offset(); }
1524
- bool needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); }
1525
- Handle<Map> transition() const { return hydrogen()->transition(); }
1526
- };
1527
-
1528
-
1529
- class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> {
1530
- public:
1531
- LStoreNamedGeneric(LOperand* object, LOperand* value) {
1532
- inputs_[0] = object;
1533
- inputs_[1] = value;
1534
- }
1535
-
1536
- DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1537
- DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1538
-
1539
- virtual void PrintDataTo(StringStream* stream);
1540
-
1541
- LOperand* object() { return inputs_[0]; }
1542
- LOperand* value() { return inputs_[1]; }
1543
- Handle<Object> name() const { return hydrogen()->name(); }
1544
- };
1545
-
1546
-
1547
- class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
1548
- public:
1549
- LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) {
1550
- inputs_[0] = obj;
1551
- inputs_[1] = key;
1552
- inputs_[2] = val;
1553
- }
1554
-
1555
- DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement,
1556
- "store-keyed-fast-element")
1557
- DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1558
-
1559
- virtual void PrintDataTo(StringStream* stream);
1560
-
1561
- LOperand* object() { return inputs_[0]; }
1562
- LOperand* key() { return inputs_[1]; }
1563
- LOperand* value() { return inputs_[2]; }
1564
- };
1565
-
1566
-
1567
- class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 0> {
1568
- public:
1569
- LStorePixelArrayElement(LOperand* external_pointer,
1570
- LOperand* key,
1571
- LOperand* val) {
1572
- inputs_[0] = external_pointer;
1573
- inputs_[1] = key;
1574
- inputs_[2] = val;
1575
- }
1576
-
1577
- DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement,
1578
- "store-pixel-array-element")
1579
- DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement)
1580
-
1581
- LOperand* external_pointer() { return inputs_[0]; }
1582
- LOperand* key() { return inputs_[1]; }
1583
- LOperand* value() { return inputs_[2]; }
1584
- };
1585
-
1586
-
1587
- class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> {
1588
- public:
1589
- LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) {
1590
- inputs_[0] = object;
1591
- inputs_[1] = key;
1592
- inputs_[2] = value;
1593
- }
1594
-
1595
- DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1596
-
1597
- virtual void PrintDataTo(StringStream* stream);
1598
-
1599
- LOperand* object() { return inputs_[0]; }
1600
- LOperand* key() { return inputs_[1]; }
1601
- LOperand* value() { return inputs_[2]; }
1602
- };
1603
-
1604
-
1605
- class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> {
1606
- public:
1607
- LStringCharCodeAt(LOperand* string, LOperand* index) {
1608
- inputs_[0] = string;
1609
- inputs_[1] = index;
1610
- }
1611
-
1612
- DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1613
- DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1614
-
1615
- LOperand* string() { return inputs_[0]; }
1616
- LOperand* index() { return inputs_[1]; }
1617
- };
1618
-
1619
-
1620
- class LStringLength: public LTemplateInstruction<1, 1, 0> {
1621
- public:
1622
- explicit LStringLength(LOperand* string) {
1623
- inputs_[0] = string;
1624
- }
1625
-
1626
- DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
1627
- DECLARE_HYDROGEN_ACCESSOR(StringLength)
1628
-
1629
- LOperand* string() { return inputs_[0]; }
1630
- };
1631
-
1632
-
1633
- class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
1634
- public:
1635
- explicit LCheckFunction(LOperand* value) {
1636
- inputs_[0] = value;
1637
- }
1638
-
1639
- DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
1640
- DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
1641
- };
1642
-
1643
-
1644
- class LCheckInstanceType: public LTemplateInstruction<0, 1, 0> {
1645
- public:
1646
- explicit LCheckInstanceType(LOperand* value) {
1647
- inputs_[0] = value;
1648
- }
1649
-
1650
- DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type")
1651
- DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType)
1652
- };
1653
-
1654
-
1655
- class LCheckMap: public LTemplateInstruction<0, 1, 0> {
1656
- public:
1657
- explicit LCheckMap(LOperand* value) {
1658
- inputs_[0] = value;
1659
- }
1660
-
1661
- DECLARE_CONCRETE_INSTRUCTION(CheckMap, "check-map")
1662
- DECLARE_HYDROGEN_ACCESSOR(CheckMap)
1663
- };
1664
-
1665
-
1666
- class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> {
1667
- public:
1668
- explicit LCheckPrototypeMaps(LOperand* temp) {
1669
- temps_[0] = temp;
1670
- }
1671
-
1672
- DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
1673
- DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
1674
-
1675
- Handle<JSObject> prototype() const { return hydrogen()->prototype(); }
1676
- Handle<JSObject> holder() const { return hydrogen()->holder(); }
1677
- };
1678
-
1679
-
1680
- class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
1681
- public:
1682
- LCheckSmi(LOperand* value, Condition condition)
1683
- : condition_(condition) {
1684
- inputs_[0] = value;
1685
- }
1686
-
1687
- Condition condition() const { return condition_; }
1688
-
1689
- virtual void CompileToNative(LCodeGen* generator);
1690
- virtual const char* Mnemonic() const {
1691
- return (condition_ == zero) ? "check-non-smi" : "check-smi";
1692
- }
1693
-
1694
- private:
1695
- Condition condition_;
1696
- };
1697
-
1698
-
1699
- class LArrayLiteral: public LTemplateInstruction<1, 0, 0> {
1700
- public:
1701
- DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
1702
- DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
1703
- };
1704
-
1705
-
1706
- class LObjectLiteral: public LTemplateInstruction<1, 0, 0> {
1707
- public:
1708
- DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal")
1709
- DECLARE_HYDROGEN_ACCESSOR(ObjectLiteral)
1710
- };
1711
-
1712
-
1713
- class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
1714
- public:
1715
- DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
1716
- DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
1717
- };
1718
-
1719
-
1720
- class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
1721
- public:
1722
- DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
1723
- DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral)
1724
-
1725
- Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); }
1726
- };
1727
-
1728
-
1729
- class LTypeof: public LTemplateInstruction<1, 1, 0> {
1730
- public:
1731
- explicit LTypeof(LOperand* value) {
1732
- inputs_[0] = value;
1733
- }
1734
-
1735
- DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
1736
- };
1737
-
1738
-
1739
- class LTypeofIs: public LTemplateInstruction<1, 1, 0> {
1740
- public:
1741
- explicit LTypeofIs(LOperand* value) {
1742
- inputs_[0] = value;
1743
- }
1744
-
1745
- DECLARE_CONCRETE_INSTRUCTION(TypeofIs, "typeof-is")
1746
- DECLARE_HYDROGEN_ACCESSOR(TypeofIs)
1747
-
1748
- Handle<String> type_literal() { return hydrogen()->type_literal(); }
1749
-
1750
- virtual void PrintDataTo(StringStream* stream);
1751
- };
1752
-
1753
-
1754
- class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
1755
- public:
1756
- explicit LTypeofIsAndBranch(LOperand* value) {
1757
- inputs_[0] = value;
1758
- }
1759
-
1760
- DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch")
1761
- DECLARE_HYDROGEN_ACCESSOR(TypeofIs)
1762
-
1763
- Handle<String> type_literal() { return hydrogen()->type_literal(); }
1764
-
1765
- virtual void PrintDataTo(StringStream* stream);
1766
- };
1767
-
1768
-
1769
- class LIsConstructCall: public LTemplateInstruction<1, 0, 0> {
1770
- public:
1771
- DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is-construct-call")
1772
- DECLARE_HYDROGEN_ACCESSOR(IsConstructCall)
1773
- };
1774
-
1775
-
1776
- class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
1777
- public:
1778
- explicit LIsConstructCallAndBranch(LOperand* temp) {
1779
- temps_[0] = temp;
1780
- }
1781
-
1782
- DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
1783
- "is-construct-call-and-branch")
1784
- };
1785
-
1786
-
1787
- class LDeleteProperty: public LTemplateInstruction<1, 2, 0> {
1788
- public:
1789
- LDeleteProperty(LOperand* obj, LOperand* key) {
1790
- inputs_[0] = obj;
1791
- inputs_[1] = key;
1792
- }
1793
-
1794
- DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
1795
-
1796
- LOperand* object() { return inputs_[0]; }
1797
- LOperand* key() { return inputs_[1]; }
1798
- };
1799
-
1800
-
1801
- class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
1802
- public:
1803
- LOsrEntry();
1804
-
1805
- DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
1806
-
1807
- LOperand** SpilledRegisterArray() { return register_spills_; }
1808
- LOperand** SpilledDoubleRegisterArray() { return double_register_spills_; }
1809
-
1810
- void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
1811
- void MarkSpilledDoubleRegister(int allocation_index,
1812
- LOperand* spill_operand);
1813
-
1814
- private:
1815
- // Arrays of spill slot operands for registers with an assigned spill
1816
- // slot, i.e., that must also be restored to the spill slot on OSR entry.
1817
- // NULL if the register has no assigned spill slot. Indexed by allocation
1818
- // index.
1819
- LOperand* register_spills_[Register::kNumAllocatableRegisters];
1820
- LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters];
1821
- };
1822
-
1823
-
1824
- class LStackCheck: public LTemplateInstruction<0, 0, 0> {
1825
- public:
1826
- DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
1827
- };
1828
-
1829
-
1830
- class LChunkBuilder;
1831
- class LChunk: public ZoneObject {
1832
- public:
1833
- explicit LChunk(HGraph* graph)
1834
- : spill_slot_count_(0),
1835
- graph_(graph),
1836
- instructions_(32),
1837
- pointer_maps_(8),
1838
- inlined_closures_(1) { }
1839
-
1840
- void AddInstruction(LInstruction* instruction, HBasicBlock* block);
1841
- LConstantOperand* DefineConstantOperand(HConstant* constant);
1842
- Handle<Object> LookupLiteral(LConstantOperand* operand) const;
1843
- Representation LookupLiteralRepresentation(LConstantOperand* operand) const;
1844
-
1845
- int GetNextSpillIndex(bool is_double);
1846
- LOperand* GetNextSpillSlot(bool is_double);
1847
-
1848
- int ParameterAt(int index);
1849
- int GetParameterStackSlot(int index) const;
1850
- int spill_slot_count() const { return spill_slot_count_; }
1851
- HGraph* graph() const { return graph_; }
1852
- const ZoneList<LInstruction*>* instructions() const { return &instructions_; }
1853
- void AddGapMove(int index, LOperand* from, LOperand* to);
1854
- LGap* GetGapAt(int index) const;
1855
- bool IsGapAt(int index) const;
1856
- int NearestGapPos(int index) const;
1857
- void MarkEmptyBlocks();
1858
- const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; }
1859
- LLabel* GetLabel(int block_id) const {
1860
- HBasicBlock* block = graph_->blocks()->at(block_id);
1861
- int first_instruction = block->first_instruction_index();
1862
- return LLabel::cast(instructions_[first_instruction]);
1863
- }
1864
- int LookupDestination(int block_id) const {
1865
- LLabel* cur = GetLabel(block_id);
1866
- while (cur->replacement() != NULL) {
1867
- cur = cur->replacement();
1868
- }
1869
- return cur->block_id();
1870
- }
1871
- Label* GetAssemblyLabel(int block_id) const {
1872
- LLabel* label = GetLabel(block_id);
1873
- ASSERT(!label->HasReplacement());
1874
- return label->label();
1875
- }
1876
-
1877
- const ZoneList<Handle<JSFunction> >* inlined_closures() const {
1878
- return &inlined_closures_;
1879
- }
1880
-
1881
- void AddInlinedClosure(Handle<JSFunction> closure) {
1882
- inlined_closures_.Add(closure);
1883
- }
1884
-
1885
- private:
1886
- int spill_slot_count_;
1887
- HGraph* const graph_;
1888
- ZoneList<LInstruction*> instructions_;
1889
- ZoneList<LPointerMap*> pointer_maps_;
1890
- ZoneList<Handle<JSFunction> > inlined_closures_;
1891
- };
1892
-
1893
-
1894
- class LChunkBuilder BASE_EMBEDDED {
1895
- public:
1896
- LChunkBuilder(HGraph* graph, LAllocator* allocator)
1897
- : chunk_(NULL),
1898
- graph_(graph),
1899
- status_(UNUSED),
1900
- current_instruction_(NULL),
1901
- current_block_(NULL),
1902
- next_block_(NULL),
1903
- argument_count_(0),
1904
- allocator_(allocator),
1905
- position_(RelocInfo::kNoPosition),
1906
- instruction_pending_deoptimization_environment_(NULL),
1907
- pending_deoptimization_ast_id_(AstNode::kNoNumber) { }
1908
-
1909
- // Build the sequence for the graph.
1910
- LChunk* Build();
1911
-
1912
- // Declare methods that deal with the individual node types.
1913
- #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
1914
- HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
1915
- #undef DECLARE_DO
1916
-
1917
- private:
1918
- enum Status {
1919
- UNUSED,
1920
- BUILDING,
1921
- DONE,
1922
- ABORTED
1923
- };
1924
-
1925
- LChunk* chunk() const { return chunk_; }
1926
- HGraph* graph() const { return graph_; }
1927
-
1928
- bool is_unused() const { return status_ == UNUSED; }
1929
- bool is_building() const { return status_ == BUILDING; }
1930
- bool is_done() const { return status_ == DONE; }
1931
- bool is_aborted() const { return status_ == ABORTED; }
1932
-
1933
- void Abort(const char* format, ...);
1934
-
1935
- // Methods for getting operands for Use / Define / Temp.
1936
- LRegister* ToOperand(Register reg);
1937
- LUnallocated* ToUnallocated(Register reg);
1938
- LUnallocated* ToUnallocated(XMMRegister reg);
1939
-
1940
- // Methods for setting up define-use relationships.
1941
- MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand);
1942
- MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register);
1943
- MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value,
1944
- XMMRegister fixed_register);
1945
-
1946
- // A value that is guaranteed to be allocated to a register.
1947
- // Operand created by UseRegister is guaranteed to be live until the end of
1948
- // instruction. This means that register allocator will not reuse it's
1949
- // register for any other operand inside instruction.
1950
- // Operand created by UseRegisterAtStart is guaranteed to be live only at
1951
- // instruction start. Register allocator is free to assign the same register
1952
- // to some other operand used inside instruction (i.e. temporary or
1953
- // output).
1954
- MUST_USE_RESULT LOperand* UseRegister(HValue* value);
1955
- MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value);
1956
-
1957
- // An input operand in a register that may be trashed.
1958
- MUST_USE_RESULT LOperand* UseTempRegister(HValue* value);
1959
-
1960
- // An input operand in a register or stack slot.
1961
- MUST_USE_RESULT LOperand* Use(HValue* value);
1962
- MUST_USE_RESULT LOperand* UseAtStart(HValue* value);
1963
-
1964
- // An input operand in a register, stack slot or a constant operand.
1965
- MUST_USE_RESULT LOperand* UseOrConstant(HValue* value);
1966
- MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value);
1967
-
1968
- // An input operand in a register or a constant operand.
1969
- MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value);
1970
- MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value);
1971
-
1972
- // An input operand in register, stack slot or a constant operand.
1973
- // Will not be moved to a register even if one is freely available.
1974
- MUST_USE_RESULT LOperand* UseAny(HValue* value);
1975
-
1976
- // Temporary operand that must be in a register.
1977
- MUST_USE_RESULT LUnallocated* TempRegister();
1978
- MUST_USE_RESULT LOperand* FixedTemp(Register reg);
1979
- MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg);
1980
-
1981
- // Methods for setting up define-use relationships.
1982
- // Return the same instruction that they are passed.
1983
- template<int I, int T>
1984
- LInstruction* Define(LTemplateInstruction<1, I, T>* instr,
1985
- LUnallocated* result);
1986
- template<int I, int T>
1987
- LInstruction* Define(LTemplateInstruction<1, I, T>* instr);
1988
- template<int I, int T>
1989
- LInstruction* DefineAsRegister(LTemplateInstruction<1, I, T>* instr);
1990
- template<int I, int T>
1991
- LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr,
1992
- int index);
1993
- template<int I, int T>
1994
- LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr);
1995
- template<int I, int T>
1996
- LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr,
1997
- Register reg);
1998
- template<int I, int T>
1999
- LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr,
2000
- XMMRegister reg);
2001
- LInstruction* AssignEnvironment(LInstruction* instr);
2002
- LInstruction* AssignPointerMap(LInstruction* instr);
2003
-
2004
- enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY };
2005
-
2006
- // By default we assume that instruction sequences generated for calls
2007
- // cannot deoptimize eagerly and we do not attach environment to this
2008
- // instruction.
2009
- LInstruction* MarkAsCall(
2010
- LInstruction* instr,
2011
- HInstruction* hinstr,
2012
- CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY);
2013
- LInstruction* MarkAsSaveDoubles(LInstruction* instr);
2014
-
2015
- LInstruction* SetInstructionPendingDeoptimizationEnvironment(
2016
- LInstruction* instr, int ast_id);
2017
- void ClearInstructionPendingDeoptimizationEnvironment();
2018
-
2019
- LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env);
2020
-
2021
- void VisitInstruction(HInstruction* current);
2022
-
2023
- void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
2024
- LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr);
2025
- LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
2026
- LInstruction* DoArithmeticD(Token::Value op,
2027
- HArithmeticBinaryOperation* instr);
2028
- LInstruction* DoArithmeticT(Token::Value op,
2029
- HArithmeticBinaryOperation* instr);
2030
-
2031
- LChunk* chunk_;
2032
- HGraph* const graph_;
2033
- Status status_;
2034
- HInstruction* current_instruction_;
2035
- HBasicBlock* current_block_;
2036
- HBasicBlock* next_block_;
2037
- int argument_count_;
2038
- LAllocator* allocator_;
2039
- int position_;
2040
- LInstruction* instruction_pending_deoptimization_environment_;
2041
- int pending_deoptimization_ast_id_;
2042
-
2043
- DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2044
- };
2045
-
2046
- #undef DECLARE_HYDROGEN_ACCESSOR
2047
- #undef DECLARE_INSTRUCTION
2048
- #undef DECLARE_CONCRETE_INSTRUCTION
2049
-
2050
- } } // namespace v8::int
2051
-
2052
- #endif // V8_X64_LITHIUM_X64_H_