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,2127 +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_IA32_LITHIUM_IA32_H_
29
- #define V8_IA32_LITHIUM_IA32_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(ClassOfTest) \
76
- V(ClassOfTestAndBranch) \
77
- V(CmpID) \
78
- V(CmpIDAndBranch) \
79
- V(CmpJSObjectEq) \
80
- V(CmpJSObjectEqAndBranch) \
81
- V(CmpMapAndBranch) \
82
- V(CmpT) \
83
- V(CmpTAndBranch) \
84
- V(ConstantD) \
85
- V(ConstantI) \
86
- V(ConstantT) \
87
- V(Context) \
88
- V(DeleteProperty) \
89
- V(Deoptimize) \
90
- V(DivI) \
91
- V(DoubleToI) \
92
- V(FixedArrayLength) \
93
- V(FunctionLiteral) \
94
- V(Gap) \
95
- V(GlobalObject) \
96
- V(GlobalReceiver) \
97
- V(Goto) \
98
- V(HasCachedArrayIndex) \
99
- V(HasCachedArrayIndexAndBranch) \
100
- V(HasInstanceType) \
101
- V(HasInstanceTypeAndBranch) \
102
- V(InstanceOf) \
103
- V(InstanceOfAndBranch) \
104
- V(InstanceOfKnownGlobal) \
105
- V(Integer32ToDouble) \
106
- V(IsNull) \
107
- V(IsNullAndBranch) \
108
- V(IsObject) \
109
- V(IsObjectAndBranch) \
110
- V(IsSmi) \
111
- V(IsSmiAndBranch) \
112
- V(IsConstructCall) \
113
- V(IsConstructCallAndBranch) \
114
- V(JSArrayLength) \
115
- V(Label) \
116
- V(LazyBailout) \
117
- V(LoadContextSlot) \
118
- V(LoadElements) \
119
- V(LoadFunctionPrototype) \
120
- V(LoadGlobal) \
121
- V(LoadKeyedFastElement) \
122
- V(LoadKeyedGeneric) \
123
- V(LoadNamedField) \
124
- V(LoadNamedGeneric) \
125
- V(LoadPixelArrayElement) \
126
- V(LoadPixelArrayExternalPointer) \
127
- V(ModI) \
128
- V(MulI) \
129
- V(NumberTagD) \
130
- V(NumberTagI) \
131
- V(NumberUntagD) \
132
- V(ObjectLiteral) \
133
- V(OsrEntry) \
134
- V(OuterContext) \
135
- V(Parameter) \
136
- V(PixelArrayLength) \
137
- V(Power) \
138
- V(PushArgument) \
139
- V(RegExpLiteral) \
140
- V(Return) \
141
- V(ShiftI) \
142
- V(SmiTag) \
143
- V(SmiUntag) \
144
- V(StackCheck) \
145
- V(StoreContextSlot) \
146
- V(StoreGlobal) \
147
- V(StoreKeyedFastElement) \
148
- V(StoreKeyedGeneric) \
149
- V(StoreNamedField) \
150
- V(StoreNamedGeneric) \
151
- V(StorePixelArrayElement) \
152
- V(StringCharCodeAt) \
153
- V(StringLength) \
154
- V(SubI) \
155
- V(TaggedToI) \
156
- V(Throw) \
157
- V(Typeof) \
158
- V(TypeofIs) \
159
- V(TypeofIsAndBranch) \
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
- virtual ~LInstruction() { }
193
-
194
- virtual void CompileToNative(LCodeGen* generator) = 0;
195
- virtual const char* Mnemonic() const = 0;
196
- virtual void PrintTo(StringStream* stream);
197
- virtual void PrintDataTo(StringStream* stream) = 0;
198
- virtual void PrintOutputOperandTo(StringStream* stream) = 0;
199
-
200
- // Declare virtual type testers.
201
- #define DECLARE_DO(type) virtual bool Is##type() const { return false; }
202
- LITHIUM_ALL_INSTRUCTION_LIST(DECLARE_DO)
203
- #undef DECLARE_DO
204
-
205
- virtual bool IsControl() const { return false; }
206
- virtual void SetBranchTargets(int true_block_id, int false_block_id) { }
207
-
208
- void set_environment(LEnvironment* env) { environment_ = env; }
209
- LEnvironment* environment() const { return environment_; }
210
- bool HasEnvironment() const { return environment_ != NULL; }
211
-
212
- void set_pointer_map(LPointerMap* p) { pointer_map_.set(p); }
213
- LPointerMap* pointer_map() const { return pointer_map_.get(); }
214
- bool HasPointerMap() const { return pointer_map_.is_set(); }
215
-
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, 1, 0> {
431
- public:
432
- explicit LCallStub(LOperand* context) {
433
- inputs_[0] = context;
434
- }
435
-
436
- DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
437
- DECLARE_HYDROGEN_ACCESSOR(CallStub)
438
-
439
- LOperand* context() { return inputs_[0]; }
440
-
441
- TranscendentalCache::Type transcendental_type() {
442
- return hydrogen()->transcendental_type();
443
- }
444
- };
445
-
446
-
447
- class LUnknownOSRValue: public LTemplateInstruction<1, 0, 0> {
448
- public:
449
- DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
450
- };
451
-
452
-
453
- template<int I, int T>
454
- class LControlInstruction: public LTemplateInstruction<0, I, T> {
455
- public:
456
- DECLARE_INSTRUCTION(ControlInstruction)
457
- virtual bool IsControl() const { return true; }
458
-
459
- int true_block_id() const { return true_block_id_; }
460
- int false_block_id() const { return false_block_id_; }
461
- void SetBranchTargets(int true_block_id, int false_block_id) {
462
- true_block_id_ = true_block_id;
463
- false_block_id_ = false_block_id;
464
- }
465
-
466
- private:
467
- int true_block_id_;
468
- int false_block_id_;
469
- };
470
-
471
-
472
- class LApplyArguments: public LTemplateInstruction<1, 4, 1> {
473
- public:
474
- LApplyArguments(LOperand* function,
475
- LOperand* receiver,
476
- LOperand* length,
477
- LOperand* elements,
478
- LOperand* temp) {
479
- inputs_[0] = function;
480
- inputs_[1] = receiver;
481
- inputs_[2] = length;
482
- inputs_[3] = elements;
483
- temps_[0] = temp;
484
- }
485
-
486
- DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments")
487
-
488
- LOperand* function() { return inputs_[0]; }
489
- LOperand* receiver() { return inputs_[1]; }
490
- LOperand* length() { return inputs_[2]; }
491
- LOperand* elements() { return inputs_[3]; }
492
- };
493
-
494
-
495
- class LAccessArgumentsAt: public LTemplateInstruction<1, 3, 0> {
496
- public:
497
- LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) {
498
- inputs_[0] = arguments;
499
- inputs_[1] = length;
500
- inputs_[2] = index;
501
- }
502
-
503
- DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access-arguments-at")
504
-
505
- LOperand* arguments() { return inputs_[0]; }
506
- LOperand* length() { return inputs_[1]; }
507
- LOperand* index() { return inputs_[2]; }
508
-
509
- virtual void PrintDataTo(StringStream* stream);
510
- };
511
-
512
-
513
- class LArgumentsLength: public LTemplateInstruction<1, 1, 0> {
514
- public:
515
- explicit LArgumentsLength(LOperand* elements) {
516
- inputs_[0] = elements;
517
- }
518
-
519
- DECLARE_CONCRETE_INSTRUCTION(ArgumentsLength, "arguments-length")
520
- };
521
-
522
-
523
- class LArgumentsElements: public LTemplateInstruction<1, 0, 0> {
524
- public:
525
- LArgumentsElements() { }
526
-
527
- DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements")
528
- };
529
-
530
-
531
- class LModI: public LTemplateInstruction<1, 2, 1> {
532
- public:
533
- LModI(LOperand* left, LOperand* right, LOperand* temp) {
534
- inputs_[0] = left;
535
- inputs_[1] = right;
536
- temps_[0] = temp;
537
- }
538
-
539
- DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i")
540
- DECLARE_HYDROGEN_ACCESSOR(Mod)
541
- };
542
-
543
-
544
- class LDivI: public LTemplateInstruction<1, 2, 1> {
545
- public:
546
- LDivI(LOperand* left, LOperand* right, LOperand* temp) {
547
- inputs_[0] = left;
548
- inputs_[1] = right;
549
- temps_[0] = temp;
550
- }
551
-
552
- DECLARE_CONCRETE_INSTRUCTION(DivI, "div-i")
553
- DECLARE_HYDROGEN_ACCESSOR(Div)
554
- };
555
-
556
-
557
- class LMulI: public LTemplateInstruction<1, 2, 1> {
558
- public:
559
- LMulI(LOperand* left, LOperand* right, LOperand* temp) {
560
- inputs_[0] = left;
561
- inputs_[1] = right;
562
- temps_[0] = temp;
563
- }
564
-
565
- DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i")
566
- DECLARE_HYDROGEN_ACCESSOR(Mul)
567
- };
568
-
569
-
570
- class LCmpID: public LTemplateInstruction<1, 2, 0> {
571
- public:
572
- LCmpID(LOperand* left, LOperand* right) {
573
- inputs_[0] = left;
574
- inputs_[1] = right;
575
- }
576
-
577
- DECLARE_CONCRETE_INSTRUCTION(CmpID, "cmp-id")
578
- DECLARE_HYDROGEN_ACCESSOR(Compare)
579
-
580
- Token::Value op() const { return hydrogen()->token(); }
581
- bool is_double() const {
582
- return hydrogen()->GetInputRepresentation().IsDouble();
583
- }
584
- };
585
-
586
-
587
- class LCmpIDAndBranch: public LControlInstruction<2, 0> {
588
- public:
589
- LCmpIDAndBranch(LOperand* left, LOperand* right) {
590
- inputs_[0] = left;
591
- inputs_[1] = right;
592
- }
593
-
594
- DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch")
595
- DECLARE_HYDROGEN_ACCESSOR(Compare)
596
-
597
- Token::Value op() const { return hydrogen()->token(); }
598
- bool is_double() const {
599
- return hydrogen()->GetInputRepresentation().IsDouble();
600
- }
601
-
602
- virtual void PrintDataTo(StringStream* stream);
603
- };
604
-
605
-
606
- class LUnaryMathOperation: public LTemplateInstruction<1, 1, 0> {
607
- public:
608
- explicit LUnaryMathOperation(LOperand* value) {
609
- inputs_[0] = value;
610
- }
611
-
612
- DECLARE_CONCRETE_INSTRUCTION(UnaryMathOperation, "unary-math-operation")
613
- DECLARE_HYDROGEN_ACCESSOR(UnaryMathOperation)
614
-
615
- virtual void PrintDataTo(StringStream* stream);
616
- BuiltinFunctionId op() const { return hydrogen()->op(); }
617
- };
618
-
619
-
620
- class LCmpJSObjectEq: public LTemplateInstruction<1, 2, 0> {
621
- public:
622
- LCmpJSObjectEq(LOperand* left, LOperand* right) {
623
- inputs_[0] = left;
624
- inputs_[1] = right;
625
- }
626
-
627
- DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEq, "cmp-jsobject-eq")
628
- };
629
-
630
-
631
- class LCmpJSObjectEqAndBranch: public LControlInstruction<2, 0> {
632
- public:
633
- LCmpJSObjectEqAndBranch(LOperand* left, LOperand* right) {
634
- inputs_[0] = left;
635
- inputs_[1] = right;
636
- }
637
-
638
- DECLARE_CONCRETE_INSTRUCTION(CmpJSObjectEqAndBranch,
639
- "cmp-jsobject-eq-and-branch")
640
- };
641
-
642
-
643
- class LIsNull: public LTemplateInstruction<1, 1, 0> {
644
- public:
645
- explicit LIsNull(LOperand* value) {
646
- inputs_[0] = value;
647
- }
648
-
649
- DECLARE_CONCRETE_INSTRUCTION(IsNull, "is-null")
650
- DECLARE_HYDROGEN_ACCESSOR(IsNull)
651
-
652
- bool is_strict() const { return hydrogen()->is_strict(); }
653
- };
654
-
655
-
656
- class LIsNullAndBranch: public LControlInstruction<1, 1> {
657
- public:
658
- LIsNullAndBranch(LOperand* value, LOperand* temp) {
659
- inputs_[0] = value;
660
- temps_[0] = temp;
661
- }
662
-
663
- DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch")
664
- DECLARE_HYDROGEN_ACCESSOR(IsNull)
665
-
666
- bool is_strict() const { return hydrogen()->is_strict(); }
667
-
668
- virtual void PrintDataTo(StringStream* stream);
669
- };
670
-
671
-
672
- class LIsObject: public LTemplateInstruction<1, 1, 1> {
673
- public:
674
- LIsObject(LOperand* value, LOperand* temp) {
675
- inputs_[0] = value;
676
- temps_[0] = temp;
677
- }
678
-
679
- DECLARE_CONCRETE_INSTRUCTION(IsObject, "is-object")
680
- };
681
-
682
-
683
- class LIsObjectAndBranch: public LControlInstruction<1, 2> {
684
- public:
685
- LIsObjectAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) {
686
- inputs_[0] = value;
687
- temps_[0] = temp;
688
- temps_[1] = temp2;
689
- }
690
-
691
- DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch")
692
-
693
- virtual void PrintDataTo(StringStream* stream);
694
- };
695
-
696
-
697
- class LIsSmi: public LTemplateInstruction<1, 1, 0> {
698
- public:
699
- explicit LIsSmi(LOperand* value) {
700
- inputs_[0] = value;
701
- }
702
-
703
- DECLARE_CONCRETE_INSTRUCTION(IsSmi, "is-smi")
704
- DECLARE_HYDROGEN_ACCESSOR(IsSmi)
705
- };
706
-
707
-
708
- class LIsSmiAndBranch: public LControlInstruction<1, 0> {
709
- public:
710
- explicit LIsSmiAndBranch(LOperand* value) {
711
- inputs_[0] = value;
712
- }
713
-
714
- DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch")
715
-
716
- virtual void PrintDataTo(StringStream* stream);
717
- };
718
-
719
-
720
- class LHasInstanceType: public LTemplateInstruction<1, 1, 0> {
721
- public:
722
- explicit LHasInstanceType(LOperand* value) {
723
- inputs_[0] = value;
724
- }
725
-
726
- DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type")
727
- DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
728
- };
729
-
730
-
731
- class LHasInstanceTypeAndBranch: public LControlInstruction<1, 1> {
732
- public:
733
- LHasInstanceTypeAndBranch(LOperand* value, LOperand* temp) {
734
- inputs_[0] = value;
735
- temps_[0] = temp;
736
- }
737
-
738
- DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
739
- "has-instance-type-and-branch")
740
- DECLARE_HYDROGEN_ACCESSOR(HasInstanceType)
741
-
742
- virtual void PrintDataTo(StringStream* stream);
743
- };
744
-
745
-
746
- class LHasCachedArrayIndex: public LTemplateInstruction<1, 1, 0> {
747
- public:
748
- explicit LHasCachedArrayIndex(LOperand* value) {
749
- inputs_[0] = value;
750
- }
751
-
752
- DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndex, "has-cached-array-index")
753
- DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndex)
754
- };
755
-
756
-
757
- class LHasCachedArrayIndexAndBranch: public LControlInstruction<1, 0> {
758
- public:
759
- explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
760
- inputs_[0] = value;
761
- }
762
-
763
- DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
764
- "has-cached-array-index-and-branch")
765
- virtual void PrintDataTo(StringStream* stream);
766
- };
767
-
768
-
769
- class LIsConstructCall: public LTemplateInstruction<1, 0, 0> {
770
- public:
771
- DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is-construct-call")
772
- DECLARE_HYDROGEN_ACCESSOR(IsConstructCall)
773
- };
774
-
775
-
776
- class LIsConstructCallAndBranch: public LControlInstruction<0, 1> {
777
- public:
778
- explicit LIsConstructCallAndBranch(LOperand* temp) {
779
- temps_[0] = temp;
780
- }
781
-
782
- DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch,
783
- "is-construct-call-and-branch")
784
- };
785
-
786
-
787
- class LClassOfTest: public LTemplateInstruction<1, 1, 1> {
788
- public:
789
- LClassOfTest(LOperand* value, LOperand* temp) {
790
- inputs_[0] = value;
791
- temps_[0] = temp;
792
- }
793
-
794
- DECLARE_CONCRETE_INSTRUCTION(ClassOfTest, "class-of-test")
795
- DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
796
-
797
- virtual void PrintDataTo(StringStream* stream);
798
- };
799
-
800
-
801
- class LClassOfTestAndBranch: public LControlInstruction<1, 2> {
802
- public:
803
- LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) {
804
- inputs_[0] = value;
805
- temps_[0] = temp;
806
- temps_[1] = temp2;
807
- }
808
-
809
- DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch,
810
- "class-of-test-and-branch")
811
- DECLARE_HYDROGEN_ACCESSOR(ClassOfTest)
812
-
813
- virtual void PrintDataTo(StringStream* stream);
814
- };
815
-
816
-
817
- class LCmpT: public LTemplateInstruction<1, 2, 0> {
818
- public:
819
- LCmpT(LOperand* left, LOperand* right) {
820
- inputs_[0] = left;
821
- inputs_[1] = right;
822
- }
823
-
824
- DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
825
- DECLARE_HYDROGEN_ACCESSOR(Compare)
826
-
827
- Token::Value op() const { return hydrogen()->token(); }
828
- };
829
-
830
-
831
- class LCmpTAndBranch: public LControlInstruction<2, 0> {
832
- public:
833
- LCmpTAndBranch(LOperand* left, LOperand* right) {
834
- inputs_[0] = left;
835
- inputs_[1] = right;
836
- }
837
-
838
- DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch")
839
- DECLARE_HYDROGEN_ACCESSOR(Compare)
840
-
841
- Token::Value op() const { return hydrogen()->token(); }
842
- };
843
-
844
-
845
- class LInstanceOf: public LTemplateInstruction<1, 3, 0> {
846
- public:
847
- LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
848
- inputs_[0] = context;
849
- inputs_[1] = left;
850
- inputs_[2] = right;
851
- }
852
-
853
- DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
854
-
855
- LOperand* context() { return inputs_[0]; }
856
- };
857
-
858
-
859
- class LInstanceOfAndBranch: public LControlInstruction<3, 0> {
860
- public:
861
- LInstanceOfAndBranch(LOperand* context, LOperand* left, LOperand* right) {
862
- inputs_[0] = context;
863
- inputs_[1] = left;
864
- inputs_[2] = right;
865
- }
866
-
867
- DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch")
868
-
869
- LOperand* context() { return inputs_[0]; }
870
- };
871
-
872
-
873
- class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> {
874
- public:
875
- LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) {
876
- inputs_[0] = value;
877
- temps_[0] = temp;
878
- }
879
-
880
- DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
881
- "instance-of-known-global")
882
- DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
883
-
884
- Handle<JSFunction> function() const { return hydrogen()->function(); }
885
- };
886
-
887
-
888
- class LBoundsCheck: public LTemplateInstruction<0, 2, 0> {
889
- public:
890
- LBoundsCheck(LOperand* index, LOperand* length) {
891
- inputs_[0] = index;
892
- inputs_[1] = length;
893
- }
894
-
895
- LOperand* index() { return inputs_[0]; }
896
- LOperand* length() { return inputs_[1]; }
897
-
898
- DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
899
- };
900
-
901
-
902
- class LBitI: public LTemplateInstruction<1, 2, 0> {
903
- public:
904
- LBitI(Token::Value op, LOperand* left, LOperand* right)
905
- : op_(op) {
906
- inputs_[0] = left;
907
- inputs_[1] = right;
908
- }
909
-
910
- Token::Value op() const { return op_; }
911
-
912
- DECLARE_CONCRETE_INSTRUCTION(BitI, "bit-i")
913
-
914
- private:
915
- Token::Value op_;
916
- };
917
-
918
-
919
- class LShiftI: public LTemplateInstruction<1, 2, 0> {
920
- public:
921
- LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt)
922
- : op_(op), can_deopt_(can_deopt) {
923
- inputs_[0] = left;
924
- inputs_[1] = right;
925
- }
926
-
927
- Token::Value op() const { return op_; }
928
-
929
- bool can_deopt() const { return can_deopt_; }
930
-
931
- DECLARE_CONCRETE_INSTRUCTION(ShiftI, "shift-i")
932
-
933
- private:
934
- Token::Value op_;
935
- bool can_deopt_;
936
- };
937
-
938
-
939
- class LSubI: public LTemplateInstruction<1, 2, 0> {
940
- public:
941
- LSubI(LOperand* left, LOperand* right) {
942
- inputs_[0] = left;
943
- inputs_[1] = right;
944
- }
945
-
946
- DECLARE_CONCRETE_INSTRUCTION(SubI, "sub-i")
947
- DECLARE_HYDROGEN_ACCESSOR(Sub)
948
- };
949
-
950
-
951
- class LConstantI: public LTemplateInstruction<1, 0, 0> {
952
- public:
953
- DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i")
954
- DECLARE_HYDROGEN_ACCESSOR(Constant)
955
-
956
- int32_t value() const { return hydrogen()->Integer32Value(); }
957
- };
958
-
959
-
960
- class LConstantD: public LTemplateInstruction<1, 0, 1> {
961
- public:
962
- explicit LConstantD(LOperand* temp) {
963
- temps_[0] = temp;
964
- }
965
-
966
- DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
967
- DECLARE_HYDROGEN_ACCESSOR(Constant)
968
-
969
- double value() const { return hydrogen()->DoubleValue(); }
970
- };
971
-
972
-
973
- class LConstantT: public LTemplateInstruction<1, 0, 0> {
974
- public:
975
- DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
976
- DECLARE_HYDROGEN_ACCESSOR(Constant)
977
-
978
- Handle<Object> value() const { return hydrogen()->handle(); }
979
- };
980
-
981
-
982
- class LBranch: public LControlInstruction<1, 0> {
983
- public:
984
- explicit LBranch(LOperand* value) {
985
- inputs_[0] = value;
986
- }
987
-
988
- DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
989
- DECLARE_HYDROGEN_ACCESSOR(Value)
990
-
991
- virtual void PrintDataTo(StringStream* stream);
992
- };
993
-
994
-
995
- class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> {
996
- public:
997
- explicit LCmpMapAndBranch(LOperand* value) {
998
- inputs_[0] = value;
999
- }
1000
-
1001
- DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1002
- DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1003
-
1004
- virtual bool IsControl() const { return true; }
1005
-
1006
- Handle<Map> map() const { return hydrogen()->map(); }
1007
- int true_block_id() const {
1008
- return hydrogen()->FirstSuccessor()->block_id();
1009
- }
1010
- int false_block_id() const {
1011
- return hydrogen()->SecondSuccessor()->block_id();
1012
- }
1013
- };
1014
-
1015
-
1016
- class LJSArrayLength: public LTemplateInstruction<1, 1, 0> {
1017
- public:
1018
- explicit LJSArrayLength(LOperand* value) {
1019
- inputs_[0] = value;
1020
- }
1021
-
1022
- DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length")
1023
- DECLARE_HYDROGEN_ACCESSOR(JSArrayLength)
1024
- };
1025
-
1026
-
1027
- class LPixelArrayLength: public LTemplateInstruction<1, 1, 0> {
1028
- public:
1029
- explicit LPixelArrayLength(LOperand* value) {
1030
- inputs_[0] = value;
1031
- }
1032
-
1033
- DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel-array-length")
1034
- DECLARE_HYDROGEN_ACCESSOR(PixelArrayLength)
1035
- };
1036
-
1037
-
1038
- class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> {
1039
- public:
1040
- explicit LFixedArrayLength(LOperand* value) {
1041
- inputs_[0] = value;
1042
- }
1043
-
1044
- DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length")
1045
- DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength)
1046
- };
1047
-
1048
-
1049
- class LValueOf: public LTemplateInstruction<1, 1, 1> {
1050
- public:
1051
- LValueOf(LOperand* value, LOperand* temp) {
1052
- inputs_[0] = value;
1053
- temps_[0] = temp;
1054
- }
1055
-
1056
- DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
1057
- DECLARE_HYDROGEN_ACCESSOR(ValueOf)
1058
- };
1059
-
1060
-
1061
- class LThrow: public LTemplateInstruction<0, 1, 0> {
1062
- public:
1063
- explicit LThrow(LOperand* value) {
1064
- inputs_[0] = value;
1065
- }
1066
-
1067
- DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
1068
- };
1069
-
1070
-
1071
- class LBitNotI: public LTemplateInstruction<1, 1, 0> {
1072
- public:
1073
- explicit LBitNotI(LOperand* value) {
1074
- inputs_[0] = value;
1075
- }
1076
-
1077
- DECLARE_CONCRETE_INSTRUCTION(BitNotI, "bit-not-i")
1078
- };
1079
-
1080
-
1081
- class LAddI: public LTemplateInstruction<1, 2, 0> {
1082
- public:
1083
- LAddI(LOperand* left, LOperand* right) {
1084
- inputs_[0] = left;
1085
- inputs_[1] = right;
1086
- }
1087
-
1088
- DECLARE_CONCRETE_INSTRUCTION(AddI, "add-i")
1089
- DECLARE_HYDROGEN_ACCESSOR(Add)
1090
- };
1091
-
1092
-
1093
- class LPower: public LTemplateInstruction<1, 2, 0> {
1094
- public:
1095
- LPower(LOperand* left, LOperand* right) {
1096
- inputs_[0] = left;
1097
- inputs_[1] = right;
1098
- }
1099
-
1100
- DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1101
- DECLARE_HYDROGEN_ACCESSOR(Power)
1102
- };
1103
-
1104
-
1105
- class LArithmeticD: public LTemplateInstruction<1, 2, 0> {
1106
- public:
1107
- LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
1108
- : op_(op) {
1109
- inputs_[0] = left;
1110
- inputs_[1] = right;
1111
- }
1112
-
1113
- Token::Value op() const { return op_; }
1114
-
1115
- virtual void CompileToNative(LCodeGen* generator);
1116
- virtual const char* Mnemonic() const;
1117
-
1118
- private:
1119
- Token::Value op_;
1120
- };
1121
-
1122
-
1123
- class LArithmeticT: public LTemplateInstruction<1, 2, 0> {
1124
- public:
1125
- LArithmeticT(Token::Value op, LOperand* left, LOperand* right)
1126
- : op_(op) {
1127
- inputs_[0] = left;
1128
- inputs_[1] = right;
1129
- }
1130
-
1131
- virtual void CompileToNative(LCodeGen* generator);
1132
- virtual const char* Mnemonic() const;
1133
-
1134
- Token::Value op() const { return op_; }
1135
-
1136
- private:
1137
- Token::Value op_;
1138
- };
1139
-
1140
-
1141
- class LReturn: public LTemplateInstruction<0, 1, 0> {
1142
- public:
1143
- explicit LReturn(LOperand* value) {
1144
- inputs_[0] = value;
1145
- }
1146
-
1147
- DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1148
- };
1149
-
1150
-
1151
- class LLoadNamedField: public LTemplateInstruction<1, 1, 0> {
1152
- public:
1153
- explicit LLoadNamedField(LOperand* object) {
1154
- inputs_[0] = object;
1155
- }
1156
-
1157
- DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field")
1158
- DECLARE_HYDROGEN_ACCESSOR(LoadNamedField)
1159
- };
1160
-
1161
-
1162
- class LLoadNamedGeneric: public LTemplateInstruction<1, 2, 0> {
1163
- public:
1164
- LLoadNamedGeneric(LOperand* context, LOperand* object) {
1165
- inputs_[0] = context;
1166
- inputs_[1] = object;
1167
- }
1168
-
1169
- DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic")
1170
- DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric)
1171
-
1172
- LOperand* context() { return inputs_[0]; }
1173
- LOperand* object() { return inputs_[1]; }
1174
- Handle<Object> name() const { return hydrogen()->name(); }
1175
- };
1176
-
1177
-
1178
- class LLoadFunctionPrototype: public LTemplateInstruction<1, 1, 1> {
1179
- public:
1180
- LLoadFunctionPrototype(LOperand* function, LOperand* temp) {
1181
- inputs_[0] = function;
1182
- temps_[0] = temp;
1183
- }
1184
-
1185
- DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype")
1186
- DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype)
1187
-
1188
- LOperand* function() { return inputs_[0]; }
1189
- };
1190
-
1191
-
1192
- class LLoadElements: public LTemplateInstruction<1, 1, 0> {
1193
- public:
1194
- explicit LLoadElements(LOperand* object) {
1195
- inputs_[0] = object;
1196
- }
1197
-
1198
- DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements")
1199
- };
1200
-
1201
-
1202
- class LLoadPixelArrayExternalPointer: public LTemplateInstruction<1, 1, 0> {
1203
- public:
1204
- explicit LLoadPixelArrayExternalPointer(LOperand* object) {
1205
- inputs_[0] = object;
1206
- }
1207
-
1208
- DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer,
1209
- "load-pixel-array-external-pointer")
1210
- };
1211
-
1212
-
1213
- class LLoadKeyedFastElement: public LTemplateInstruction<1, 2, 0> {
1214
- public:
1215
- LLoadKeyedFastElement(LOperand* elements, LOperand* key) {
1216
- inputs_[0] = elements;
1217
- inputs_[1] = key;
1218
- }
1219
-
1220
- DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1221
- DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1222
-
1223
- LOperand* elements() { return inputs_[0]; }
1224
- LOperand* key() { return inputs_[1]; }
1225
- };
1226
-
1227
-
1228
- class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> {
1229
- public:
1230
- LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) {
1231
- inputs_[0] = external_pointer;
1232
- inputs_[1] = key;
1233
- }
1234
-
1235
- DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement,
1236
- "load-pixel-array-element")
1237
- DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement)
1238
-
1239
- LOperand* external_pointer() { return inputs_[0]; }
1240
- LOperand* key() { return inputs_[1]; }
1241
- };
1242
-
1243
-
1244
- class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> {
1245
- public:
1246
- LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) {
1247
- inputs_[0] = context;
1248
- inputs_[1] = obj;
1249
- inputs_[2] = key;
1250
- }
1251
-
1252
- DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1253
-
1254
- LOperand* context() { return inputs_[0]; }
1255
- LOperand* object() { return inputs_[1]; }
1256
- LOperand* key() { return inputs_[2]; }
1257
- };
1258
-
1259
-
1260
- class LLoadGlobal: public LTemplateInstruction<1, 0, 0> {
1261
- public:
1262
- DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global")
1263
- DECLARE_HYDROGEN_ACCESSOR(LoadGlobal)
1264
- };
1265
-
1266
-
1267
- class LStoreGlobal: public LTemplateInstruction<0, 1, 0> {
1268
- public:
1269
- explicit LStoreGlobal(LOperand* value) {
1270
- inputs_[0] = value;
1271
- }
1272
-
1273
- DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
1274
- DECLARE_HYDROGEN_ACCESSOR(StoreGlobal)
1275
- };
1276
-
1277
-
1278
- class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1279
- public:
1280
- explicit LLoadContextSlot(LOperand* context) {
1281
- inputs_[0] = context;
1282
- }
1283
-
1284
- DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1285
- DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1286
-
1287
- LOperand* context() { return InputAt(0); }
1288
- int slot_index() { return hydrogen()->slot_index(); }
1289
-
1290
- virtual void PrintDataTo(StringStream* stream);
1291
- };
1292
-
1293
-
1294
- class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> {
1295
- public:
1296
- LStoreContextSlot(LOperand* context, LOperand* value, LOperand* temp) {
1297
- inputs_[0] = context;
1298
- inputs_[1] = value;
1299
- temps_[0] = temp;
1300
- }
1301
-
1302
- DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
1303
- DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
1304
-
1305
- LOperand* context() { return InputAt(0); }
1306
- LOperand* value() { return InputAt(1); }
1307
- int slot_index() { return hydrogen()->slot_index(); }
1308
- int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); }
1309
-
1310
- virtual void PrintDataTo(StringStream* stream);
1311
- };
1312
-
1313
-
1314
- class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1315
- public:
1316
- explicit LPushArgument(LOperand* value) {
1317
- inputs_[0] = value;
1318
- }
1319
-
1320
- DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument")
1321
- };
1322
-
1323
-
1324
- class LContext: public LTemplateInstruction<1, 0, 0> {
1325
- public:
1326
- DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1327
- };
1328
-
1329
-
1330
- class LOuterContext: public LTemplateInstruction<1, 1, 0> {
1331
- public:
1332
- explicit LOuterContext(LOperand* context) {
1333
- inputs_[0] = context;
1334
- }
1335
-
1336
- DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
1337
-
1338
- LOperand* context() { return InputAt(0); }
1339
- };
1340
-
1341
-
1342
- class LGlobalObject: public LTemplateInstruction<1, 1, 0> {
1343
- public:
1344
- explicit LGlobalObject(LOperand* context) {
1345
- inputs_[0] = context;
1346
- }
1347
-
1348
- DECLARE_CONCRETE_INSTRUCTION(GlobalObject, "global-object")
1349
-
1350
- LOperand* context() { return InputAt(0); }
1351
- };
1352
-
1353
-
1354
- class LGlobalReceiver: public LTemplateInstruction<1, 1, 0> {
1355
- public:
1356
- explicit LGlobalReceiver(LOperand* global_object) {
1357
- inputs_[0] = global_object;
1358
- }
1359
-
1360
- DECLARE_CONCRETE_INSTRUCTION(GlobalReceiver, "global-receiver")
1361
-
1362
- LOperand* global() { return InputAt(0); }
1363
- };
1364
-
1365
-
1366
- class LCallConstantFunction: public LTemplateInstruction<1, 0, 0> {
1367
- public:
1368
- DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call-constant-function")
1369
- DECLARE_HYDROGEN_ACCESSOR(CallConstantFunction)
1370
-
1371
- virtual void PrintDataTo(StringStream* stream);
1372
-
1373
- Handle<JSFunction> function() { return hydrogen()->function(); }
1374
- int arity() const { return hydrogen()->argument_count() - 1; }
1375
- };
1376
-
1377
-
1378
- class LCallKeyed: public LTemplateInstruction<1, 2, 0> {
1379
- public:
1380
- LCallKeyed(LOperand* context, LOperand* key) {
1381
- inputs_[0] = context;
1382
- inputs_[1] = key;
1383
- }
1384
-
1385
- DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
1386
- DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
1387
-
1388
- LOperand* context() { return inputs_[0]; }
1389
- LOperand* key() { return inputs_[1]; }
1390
-
1391
- virtual void PrintDataTo(StringStream* stream);
1392
-
1393
- int arity() const { return hydrogen()->argument_count() - 1; }
1394
- };
1395
-
1396
-
1397
- class LCallNamed: public LTemplateInstruction<1, 1, 0> {
1398
- public:
1399
- explicit LCallNamed(LOperand* context) {
1400
- inputs_[0] = context;
1401
- }
1402
-
1403
- DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
1404
- DECLARE_HYDROGEN_ACCESSOR(CallNamed)
1405
-
1406
- virtual void PrintDataTo(StringStream* stream);
1407
-
1408
- LOperand* context() { return inputs_[0]; }
1409
- Handle<String> name() const { return hydrogen()->name(); }
1410
- int arity() const { return hydrogen()->argument_count() - 1; }
1411
- };
1412
-
1413
-
1414
- class LCallFunction: public LTemplateInstruction<1, 1, 0> {
1415
- public:
1416
- explicit LCallFunction(LOperand* context) {
1417
- inputs_[0] = context;
1418
- }
1419
-
1420
- DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1421
- DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1422
-
1423
- LOperand* context() { return inputs_[0]; }
1424
- int arity() const { return hydrogen()->argument_count() - 2; }
1425
- };
1426
-
1427
-
1428
- class LCallGlobal: public LTemplateInstruction<1, 1, 0> {
1429
- public:
1430
- explicit LCallGlobal(LOperand* context) {
1431
- inputs_[0] = context;
1432
- }
1433
-
1434
- DECLARE_CONCRETE_INSTRUCTION(CallGlobal, "call-global")
1435
- DECLARE_HYDROGEN_ACCESSOR(CallGlobal)
1436
-
1437
- virtual void PrintDataTo(StringStream* stream);
1438
-
1439
- LOperand* context() { return inputs_[0]; }
1440
- Handle<String> name() const {return hydrogen()->name(); }
1441
- int arity() const { return hydrogen()->argument_count() - 1; }
1442
- };
1443
-
1444
-
1445
- class LCallKnownGlobal: public LTemplateInstruction<1, 0, 0> {
1446
- public:
1447
- DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal, "call-known-global")
1448
- DECLARE_HYDROGEN_ACCESSOR(CallKnownGlobal)
1449
-
1450
- virtual void PrintDataTo(StringStream* stream);
1451
-
1452
- Handle<JSFunction> target() const { return hydrogen()->target(); }
1453
- int arity() const { return hydrogen()->argument_count() - 1; }
1454
- };
1455
-
1456
-
1457
- class LCallNew: public LTemplateInstruction<1, 2, 0> {
1458
- public:
1459
- LCallNew(LOperand* context, LOperand* constructor) {
1460
- inputs_[0] = context;
1461
- inputs_[1] = constructor;
1462
- }
1463
-
1464
- DECLARE_CONCRETE_INSTRUCTION(CallNew, "call-new")
1465
- DECLARE_HYDROGEN_ACCESSOR(CallNew)
1466
-
1467
- virtual void PrintDataTo(StringStream* stream);
1468
-
1469
- LOperand* context() { return inputs_[0]; }
1470
- LOperand* constructor() { return inputs_[1]; }
1471
- int arity() const { return hydrogen()->argument_count() - 1; }
1472
- };
1473
-
1474
-
1475
- class LCallRuntime: public LTemplateInstruction<1, 0, 0> {
1476
- public:
1477
- DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime")
1478
- DECLARE_HYDROGEN_ACCESSOR(CallRuntime)
1479
-
1480
- Runtime::Function* function() const { return hydrogen()->function(); }
1481
- int arity() const { return hydrogen()->argument_count(); }
1482
- };
1483
-
1484
-
1485
- class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
1486
- public:
1487
- explicit LInteger32ToDouble(LOperand* value) {
1488
- inputs_[0] = value;
1489
- }
1490
-
1491
- DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double")
1492
- };
1493
-
1494
-
1495
- class LNumberTagI: public LTemplateInstruction<1, 1, 0> {
1496
- public:
1497
- explicit LNumberTagI(LOperand* value) {
1498
- inputs_[0] = value;
1499
- }
1500
-
1501
- DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i")
1502
- };
1503
-
1504
-
1505
- class LNumberTagD: public LTemplateInstruction<1, 1, 1> {
1506
- public:
1507
- LNumberTagD(LOperand* value, LOperand* temp) {
1508
- inputs_[0] = value;
1509
- temps_[0] = temp;
1510
- }
1511
-
1512
- DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d")
1513
- };
1514
-
1515
-
1516
- // Sometimes truncating conversion from a tagged value to an int32.
1517
- class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
1518
- public:
1519
- LDoubleToI(LOperand* value, LOperand* temp) {
1520
- inputs_[0] = value;
1521
- temps_[0] = temp;
1522
- }
1523
-
1524
- DECLARE_CONCRETE_INSTRUCTION(DoubleToI, "double-to-i")
1525
- DECLARE_HYDROGEN_ACCESSOR(Change)
1526
-
1527
- bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1528
- };
1529
-
1530
-
1531
- // Truncating conversion from a tagged value to an int32.
1532
- class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
1533
- public:
1534
- LTaggedToI(LOperand* value, LOperand* temp) {
1535
- inputs_[0] = value;
1536
- temps_[0] = temp;
1537
- }
1538
-
1539
- DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
1540
- DECLARE_HYDROGEN_ACCESSOR(Change)
1541
-
1542
- bool truncating() { return hydrogen()->CanTruncateToInt32(); }
1543
- };
1544
-
1545
-
1546
- class LSmiTag: public LTemplateInstruction<1, 1, 0> {
1547
- public:
1548
- explicit LSmiTag(LOperand* value) {
1549
- inputs_[0] = value;
1550
- }
1551
-
1552
- DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag")
1553
- };
1554
-
1555
-
1556
- class LNumberUntagD: public LTemplateInstruction<1, 1, 0> {
1557
- public:
1558
- explicit LNumberUntagD(LOperand* value) {
1559
- inputs_[0] = value;
1560
- }
1561
-
1562
- DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
1563
- };
1564
-
1565
-
1566
- class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
1567
- public:
1568
- LSmiUntag(LOperand* value, bool needs_check)
1569
- : needs_check_(needs_check) {
1570
- inputs_[0] = value;
1571
- }
1572
-
1573
- DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
1574
-
1575
- bool needs_check() const { return needs_check_; }
1576
-
1577
- private:
1578
- bool needs_check_;
1579
- };
1580
-
1581
-
1582
- class LStoreNamedField: public LTemplateInstruction<0, 2, 1> {
1583
- public:
1584
- LStoreNamedField(LOperand* obj, LOperand* val, LOperand* temp) {
1585
- inputs_[0] = obj;
1586
- inputs_[1] = val;
1587
- temps_[0] = temp;
1588
- }
1589
-
1590
- DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field")
1591
- DECLARE_HYDROGEN_ACCESSOR(StoreNamedField)
1592
-
1593
- virtual void PrintDataTo(StringStream* stream);
1594
-
1595
- LOperand* object() { return inputs_[0]; }
1596
- LOperand* value() { return inputs_[1]; }
1597
-
1598
- Handle<Object> name() const { return hydrogen()->name(); }
1599
- bool is_in_object() { return hydrogen()->is_in_object(); }
1600
- int offset() { return hydrogen()->offset(); }
1601
- bool needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); }
1602
- Handle<Map> transition() const { return hydrogen()->transition(); }
1603
- };
1604
-
1605
-
1606
- class LStoreNamedGeneric: public LTemplateInstruction<0, 3, 0> {
1607
- public:
1608
- LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) {
1609
- inputs_[0] = context;
1610
- inputs_[1] = object;
1611
- inputs_[2] = value;
1612
- }
1613
-
1614
- DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic")
1615
- DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric)
1616
-
1617
- virtual void PrintDataTo(StringStream* stream);
1618
-
1619
- LOperand* context() { return inputs_[0]; }
1620
- LOperand* object() { return inputs_[1]; }
1621
- LOperand* value() { return inputs_[2]; }
1622
- Handle<Object> name() const { return hydrogen()->name(); }
1623
- };
1624
-
1625
-
1626
- class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> {
1627
- public:
1628
- LStoreKeyedFastElement(LOperand* obj, LOperand* key, LOperand* val) {
1629
- inputs_[0] = obj;
1630
- inputs_[1] = key;
1631
- inputs_[2] = val;
1632
- }
1633
-
1634
- DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastElement,
1635
- "store-keyed-fast-element")
1636
- DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1637
-
1638
- virtual void PrintDataTo(StringStream* stream);
1639
-
1640
- LOperand* object() { return inputs_[0]; }
1641
- LOperand* key() { return inputs_[1]; }
1642
- LOperand* value() { return inputs_[2]; }
1643
- };
1644
-
1645
-
1646
- class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 1> {
1647
- public:
1648
- LStorePixelArrayElement(LOperand* external_pointer,
1649
- LOperand* key,
1650
- LOperand* val,
1651
- LOperand* clamped) {
1652
- inputs_[0] = external_pointer;
1653
- inputs_[1] = key;
1654
- inputs_[2] = val;
1655
- temps_[0] = clamped;
1656
- }
1657
-
1658
- DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement,
1659
- "store-pixel-array-element")
1660
- DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement)
1661
-
1662
- LOperand* external_pointer() { return inputs_[0]; }
1663
- LOperand* key() { return inputs_[1]; }
1664
- LOperand* value() { return inputs_[2]; }
1665
- };
1666
-
1667
-
1668
- class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> {
1669
- public:
1670
- LStoreKeyedGeneric(LOperand* context,
1671
- LOperand* object,
1672
- LOperand* key,
1673
- LOperand* value) {
1674
- inputs_[0] = context;
1675
- inputs_[1] = object;
1676
- inputs_[2] = key;
1677
- inputs_[3] = value;
1678
- }
1679
-
1680
- DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic")
1681
-
1682
- virtual void PrintDataTo(StringStream* stream);
1683
-
1684
- LOperand* context() { return inputs_[0]; }
1685
- LOperand* object() { return inputs_[1]; }
1686
- LOperand* key() { return inputs_[2]; }
1687
- LOperand* value() { return inputs_[3]; }
1688
- };
1689
-
1690
-
1691
- class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> {
1692
- public:
1693
- LStringCharCodeAt(LOperand* string, LOperand* index) {
1694
- inputs_[0] = string;
1695
- inputs_[1] = index;
1696
- }
1697
-
1698
- DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1699
- DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1700
-
1701
- LOperand* string() { return inputs_[0]; }
1702
- LOperand* index() { return inputs_[1]; }
1703
- };
1704
-
1705
-
1706
- class LStringLength: public LTemplateInstruction<1, 1, 0> {
1707
- public:
1708
- explicit LStringLength(LOperand* string) {
1709
- inputs_[0] = string;
1710
- }
1711
-
1712
- DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
1713
- DECLARE_HYDROGEN_ACCESSOR(StringLength)
1714
-
1715
- LOperand* string() { return inputs_[0]; }
1716
- };
1717
-
1718
-
1719
- class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
1720
- public:
1721
- explicit LCheckFunction(LOperand* value) {
1722
- inputs_[0] = value;
1723
- }
1724
-
1725
- DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
1726
- DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
1727
- };
1728
-
1729
-
1730
- class LCheckInstanceType: public LTemplateInstruction<0, 1, 1> {
1731
- public:
1732
- LCheckInstanceType(LOperand* value, LOperand* temp) {
1733
- inputs_[0] = value;
1734
- temps_[0] = temp;
1735
- }
1736
-
1737
- DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type")
1738
- DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType)
1739
- };
1740
-
1741
-
1742
- class LCheckMap: public LTemplateInstruction<0, 1, 0> {
1743
- public:
1744
- explicit LCheckMap(LOperand* value) {
1745
- inputs_[0] = value;
1746
- }
1747
-
1748
- DECLARE_CONCRETE_INSTRUCTION(CheckMap, "check-map")
1749
- DECLARE_HYDROGEN_ACCESSOR(CheckMap)
1750
- };
1751
-
1752
-
1753
- class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> {
1754
- public:
1755
- explicit LCheckPrototypeMaps(LOperand* temp) {
1756
- temps_[0] = temp;
1757
- }
1758
-
1759
- DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps")
1760
- DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps)
1761
-
1762
- Handle<JSObject> prototype() const { return hydrogen()->prototype(); }
1763
- Handle<JSObject> holder() const { return hydrogen()->holder(); }
1764
- };
1765
-
1766
-
1767
- class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
1768
- public:
1769
- LCheckSmi(LOperand* value, Condition condition)
1770
- : condition_(condition) {
1771
- inputs_[0] = value;
1772
- }
1773
-
1774
- Condition condition() const { return condition_; }
1775
-
1776
- virtual void CompileToNative(LCodeGen* generator);
1777
- virtual const char* Mnemonic() const {
1778
- return (condition_ == zero) ? "check-non-smi" : "check-smi";
1779
- }
1780
-
1781
- private:
1782
- Condition condition_;
1783
- };
1784
-
1785
-
1786
- class LArrayLiteral: public LTemplateInstruction<1, 0, 0> {
1787
- public:
1788
- DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal")
1789
- DECLARE_HYDROGEN_ACCESSOR(ArrayLiteral)
1790
- };
1791
-
1792
-
1793
- class LObjectLiteral: public LTemplateInstruction<1, 1, 0> {
1794
- public:
1795
- explicit LObjectLiteral(LOperand* context) {
1796
- inputs_[0] = context;
1797
- }
1798
-
1799
- DECLARE_CONCRETE_INSTRUCTION(ObjectLiteral, "object-literal")
1800
- DECLARE_HYDROGEN_ACCESSOR(ObjectLiteral)
1801
-
1802
- LOperand* context() { return inputs_[0]; }
1803
- };
1804
-
1805
-
1806
- class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
1807
- public:
1808
- DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
1809
- DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
1810
- };
1811
-
1812
-
1813
- class LFunctionLiteral: public LTemplateInstruction<1, 0, 0> {
1814
- public:
1815
- DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal")
1816
- DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral)
1817
-
1818
- Handle<SharedFunctionInfo> shared_info() { return hydrogen()->shared_info(); }
1819
- };
1820
-
1821
-
1822
- class LTypeof: public LTemplateInstruction<1, 1, 0> {
1823
- public:
1824
- explicit LTypeof(LOperand* value) {
1825
- inputs_[0] = value;
1826
- }
1827
-
1828
- DECLARE_CONCRETE_INSTRUCTION(Typeof, "typeof")
1829
- };
1830
-
1831
-
1832
- class LTypeofIs: public LTemplateInstruction<1, 1, 0> {
1833
- public:
1834
- explicit LTypeofIs(LOperand* value) {
1835
- inputs_[0] = value;
1836
- }
1837
-
1838
- DECLARE_CONCRETE_INSTRUCTION(TypeofIs, "typeof-is")
1839
- DECLARE_HYDROGEN_ACCESSOR(TypeofIs)
1840
-
1841
- Handle<String> type_literal() { return hydrogen()->type_literal(); }
1842
-
1843
- virtual void PrintDataTo(StringStream* stream);
1844
- };
1845
-
1846
-
1847
- class LTypeofIsAndBranch: public LControlInstruction<1, 0> {
1848
- public:
1849
- explicit LTypeofIsAndBranch(LOperand* value) {
1850
- inputs_[0] = value;
1851
- }
1852
-
1853
- DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch")
1854
- DECLARE_HYDROGEN_ACCESSOR(TypeofIs)
1855
-
1856
- Handle<String> type_literal() { return hydrogen()->type_literal(); }
1857
-
1858
- virtual void PrintDataTo(StringStream* stream);
1859
- };
1860
-
1861
-
1862
- class LDeleteProperty: public LTemplateInstruction<1, 2, 0> {
1863
- public:
1864
- LDeleteProperty(LOperand* obj, LOperand* key) {
1865
- inputs_[0] = obj;
1866
- inputs_[1] = key;
1867
- }
1868
-
1869
- DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property")
1870
-
1871
- LOperand* object() { return inputs_[0]; }
1872
- LOperand* key() { return inputs_[1]; }
1873
- };
1874
-
1875
-
1876
- class LOsrEntry: public LTemplateInstruction<0, 0, 0> {
1877
- public:
1878
- LOsrEntry();
1879
-
1880
- DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry")
1881
-
1882
- LOperand** SpilledRegisterArray() { return register_spills_; }
1883
- LOperand** SpilledDoubleRegisterArray() { return double_register_spills_; }
1884
-
1885
- void MarkSpilledRegister(int allocation_index, LOperand* spill_operand);
1886
- void MarkSpilledDoubleRegister(int allocation_index,
1887
- LOperand* spill_operand);
1888
-
1889
- private:
1890
- // Arrays of spill slot operands for registers with an assigned spill
1891
- // slot, i.e., that must also be restored to the spill slot on OSR entry.
1892
- // NULL if the register has no assigned spill slot. Indexed by allocation
1893
- // index.
1894
- LOperand* register_spills_[Register::kNumAllocatableRegisters];
1895
- LOperand* double_register_spills_[DoubleRegister::kNumAllocatableRegisters];
1896
- };
1897
-
1898
-
1899
- class LStackCheck: public LTemplateInstruction<0, 0, 0> {
1900
- public:
1901
- DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check")
1902
- };
1903
-
1904
-
1905
- class LChunkBuilder;
1906
- class LChunk: public ZoneObject {
1907
- public:
1908
- explicit LChunk(HGraph* graph)
1909
- : spill_slot_count_(0),
1910
- graph_(graph),
1911
- instructions_(32),
1912
- pointer_maps_(8),
1913
- inlined_closures_(1) { }
1914
-
1915
- void AddInstruction(LInstruction* instruction, HBasicBlock* block);
1916
- LConstantOperand* DefineConstantOperand(HConstant* constant);
1917
- Handle<Object> LookupLiteral(LConstantOperand* operand) const;
1918
- Representation LookupLiteralRepresentation(LConstantOperand* operand) const;
1919
-
1920
- int GetNextSpillIndex(bool is_double);
1921
- LOperand* GetNextSpillSlot(bool is_double);
1922
-
1923
- int ParameterAt(int index);
1924
- int GetParameterStackSlot(int index) const;
1925
- int spill_slot_count() const { return spill_slot_count_; }
1926
- HGraph* graph() const { return graph_; }
1927
- const ZoneList<LInstruction*>* instructions() const { return &instructions_; }
1928
- void AddGapMove(int index, LOperand* from, LOperand* to);
1929
- LGap* GetGapAt(int index) const;
1930
- bool IsGapAt(int index) const;
1931
- int NearestGapPos(int index) const;
1932
- void MarkEmptyBlocks();
1933
- const ZoneList<LPointerMap*>* pointer_maps() const { return &pointer_maps_; }
1934
- LLabel* GetLabel(int block_id) const {
1935
- HBasicBlock* block = graph_->blocks()->at(block_id);
1936
- int first_instruction = block->first_instruction_index();
1937
- return LLabel::cast(instructions_[first_instruction]);
1938
- }
1939
- int LookupDestination(int block_id) const {
1940
- LLabel* cur = GetLabel(block_id);
1941
- while (cur->replacement() != NULL) {
1942
- cur = cur->replacement();
1943
- }
1944
- return cur->block_id();
1945
- }
1946
- Label* GetAssemblyLabel(int block_id) const {
1947
- LLabel* label = GetLabel(block_id);
1948
- ASSERT(!label->HasReplacement());
1949
- return label->label();
1950
- }
1951
-
1952
- const ZoneList<Handle<JSFunction> >* inlined_closures() const {
1953
- return &inlined_closures_;
1954
- }
1955
-
1956
- void AddInlinedClosure(Handle<JSFunction> closure) {
1957
- inlined_closures_.Add(closure);
1958
- }
1959
-
1960
- private:
1961
- int spill_slot_count_;
1962
- HGraph* const graph_;
1963
- ZoneList<LInstruction*> instructions_;
1964
- ZoneList<LPointerMap*> pointer_maps_;
1965
- ZoneList<Handle<JSFunction> > inlined_closures_;
1966
- };
1967
-
1968
-
1969
- class LChunkBuilder BASE_EMBEDDED {
1970
- public:
1971
- LChunkBuilder(HGraph* graph, LAllocator* allocator)
1972
- : chunk_(NULL),
1973
- graph_(graph),
1974
- status_(UNUSED),
1975
- current_instruction_(NULL),
1976
- current_block_(NULL),
1977
- next_block_(NULL),
1978
- argument_count_(0),
1979
- allocator_(allocator),
1980
- position_(RelocInfo::kNoPosition),
1981
- instruction_pending_deoptimization_environment_(NULL),
1982
- pending_deoptimization_ast_id_(AstNode::kNoNumber) { }
1983
-
1984
- // Build the sequence for the graph.
1985
- LChunk* Build();
1986
-
1987
- // Declare methods that deal with the individual node types.
1988
- #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
1989
- HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
1990
- #undef DECLARE_DO
1991
-
1992
- private:
1993
- enum Status {
1994
- UNUSED,
1995
- BUILDING,
1996
- DONE,
1997
- ABORTED
1998
- };
1999
-
2000
- LChunk* chunk() const { return chunk_; }
2001
- HGraph* graph() const { return graph_; }
2002
-
2003
- bool is_unused() const { return status_ == UNUSED; }
2004
- bool is_building() const { return status_ == BUILDING; }
2005
- bool is_done() const { return status_ == DONE; }
2006
- bool is_aborted() const { return status_ == ABORTED; }
2007
-
2008
- void Abort(const char* format, ...);
2009
-
2010
- // Methods for getting operands for Use / Define / Temp.
2011
- LRegister* ToOperand(Register reg);
2012
- LUnallocated* ToUnallocated(Register reg);
2013
- LUnallocated* ToUnallocated(XMMRegister reg);
2014
-
2015
- // Methods for setting up define-use relationships.
2016
- MUST_USE_RESULT LOperand* Use(HValue* value, LUnallocated* operand);
2017
- MUST_USE_RESULT LOperand* UseFixed(HValue* value, Register fixed_register);
2018
- MUST_USE_RESULT LOperand* UseFixedDouble(HValue* value,
2019
- XMMRegister fixed_register);
2020
-
2021
- // A value that is guaranteed to be allocated to a register.
2022
- // Operand created by UseRegister is guaranteed to be live until the end of
2023
- // instruction. This means that register allocator will not reuse it's
2024
- // register for any other operand inside instruction.
2025
- // Operand created by UseRegisterAtStart is guaranteed to be live only at
2026
- // instruction start. Register allocator is free to assign the same register
2027
- // to some other operand used inside instruction (i.e. temporary or
2028
- // output).
2029
- MUST_USE_RESULT LOperand* UseRegister(HValue* value);
2030
- MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value);
2031
-
2032
- // An input operand in a register that may be trashed.
2033
- MUST_USE_RESULT LOperand* UseTempRegister(HValue* value);
2034
-
2035
- // An input operand in a register or stack slot.
2036
- MUST_USE_RESULT LOperand* Use(HValue* value);
2037
- MUST_USE_RESULT LOperand* UseAtStart(HValue* value);
2038
-
2039
- // An input operand in a register, stack slot or a constant operand.
2040
- MUST_USE_RESULT LOperand* UseOrConstant(HValue* value);
2041
- MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value);
2042
-
2043
- // An input operand in a register or a constant operand.
2044
- MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value);
2045
- MUST_USE_RESULT LOperand* UseRegisterOrConstantAtStart(HValue* value);
2046
-
2047
- // An input operand in register, stack slot or a constant operand.
2048
- // Will not be moved to a register even if one is freely available.
2049
- MUST_USE_RESULT LOperand* UseAny(HValue* value);
2050
-
2051
- // Temporary operand that must be in a register.
2052
- MUST_USE_RESULT LUnallocated* TempRegister();
2053
- MUST_USE_RESULT LOperand* FixedTemp(Register reg);
2054
- MUST_USE_RESULT LOperand* FixedTemp(XMMRegister reg);
2055
-
2056
- // Methods for setting up define-use relationships.
2057
- // Return the same instruction that they are passed.
2058
- template<int I, int T>
2059
- LInstruction* Define(LTemplateInstruction<1, I, T>* instr,
2060
- LUnallocated* result);
2061
- template<int I, int T>
2062
- LInstruction* Define(LTemplateInstruction<1, I, T>* instr);
2063
- template<int I, int T>
2064
- LInstruction* DefineAsRegister(LTemplateInstruction<1, I, T>* instr);
2065
- template<int I, int T>
2066
- LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr,
2067
- int index);
2068
- template<int I, int T>
2069
- LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr);
2070
- template<int I, int T>
2071
- LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr,
2072
- Register reg);
2073
- template<int I, int T>
2074
- LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr,
2075
- XMMRegister reg);
2076
- LInstruction* AssignEnvironment(LInstruction* instr);
2077
- LInstruction* AssignPointerMap(LInstruction* instr);
2078
-
2079
- enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY };
2080
-
2081
- // By default we assume that instruction sequences generated for calls
2082
- // cannot deoptimize eagerly and we do not attach environment to this
2083
- // instruction.
2084
- LInstruction* MarkAsCall(
2085
- LInstruction* instr,
2086
- HInstruction* hinstr,
2087
- CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY);
2088
- LInstruction* MarkAsSaveDoubles(LInstruction* instr);
2089
-
2090
- LInstruction* SetInstructionPendingDeoptimizationEnvironment(
2091
- LInstruction* instr, int ast_id);
2092
- void ClearInstructionPendingDeoptimizationEnvironment();
2093
-
2094
- LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env);
2095
-
2096
- void VisitInstruction(HInstruction* current);
2097
-
2098
- void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
2099
- LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr);
2100
- LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
2101
- LInstruction* DoArithmeticD(Token::Value op,
2102
- HArithmeticBinaryOperation* instr);
2103
- LInstruction* DoArithmeticT(Token::Value op,
2104
- HArithmeticBinaryOperation* instr);
2105
-
2106
- LChunk* chunk_;
2107
- HGraph* const graph_;
2108
- Status status_;
2109
- HInstruction* current_instruction_;
2110
- HBasicBlock* current_block_;
2111
- HBasicBlock* next_block_;
2112
- int argument_count_;
2113
- LAllocator* allocator_;
2114
- int position_;
2115
- LInstruction* instruction_pending_deoptimization_environment_;
2116
- int pending_deoptimization_ast_id_;
2117
-
2118
- DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2119
- };
2120
-
2121
- #undef DECLARE_HYDROGEN_ACCESSOR
2122
- #undef DECLARE_INSTRUCTION
2123
- #undef DECLARE_CONCRETE_INSTRUCTION
2124
-
2125
- } } // namespace v8::internal
2126
-
2127
- #endif // V8_IA32_LITHIUM_IA32_H_