therubyracer 0.8.1.pre2 → 0.8.1

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 (877) hide show
  1. data/Changelog.md +2 -1
  2. data/README.md +6 -3
  3. data/ext/v8/upstream/3.1.8/.gitignore +31 -0
  4. data/ext/v8/upstream/3.1.8/AUTHORS +40 -0
  5. data/ext/v8/upstream/3.1.8/ChangeLog +2566 -0
  6. data/ext/v8/upstream/3.1.8/LICENSE +52 -0
  7. data/ext/v8/upstream/3.1.8/LICENSE.strongtalk +29 -0
  8. data/ext/v8/upstream/3.1.8/LICENSE.v8 +26 -0
  9. data/ext/v8/upstream/3.1.8/LICENSE.valgrind +45 -0
  10. data/ext/v8/upstream/3.1.8/SConstruct +1192 -0
  11. data/ext/v8/upstream/3.1.8/build/README.txt +25 -0
  12. data/ext/v8/upstream/3.1.8/build/all.gyp +18 -0
  13. data/ext/v8/upstream/3.1.8/build/armu.gypi +32 -0
  14. data/ext/v8/upstream/3.1.8/build/common.gypi +82 -0
  15. data/ext/v8/upstream/3.1.8/build/gyp_v8 +145 -0
  16. data/ext/v8/upstream/3.1.8/include/v8-debug.h +384 -0
  17. data/ext/v8/upstream/3.1.8/include/v8-preparser.h +116 -0
  18. data/ext/v8/upstream/3.1.8/include/v8-profiler.h +426 -0
  19. data/ext/v8/upstream/3.1.8/include/v8-testing.h +99 -0
  20. data/ext/v8/upstream/3.1.8/include/v8.h +3846 -0
  21. data/ext/v8/upstream/3.1.8/include/v8stdint.h +53 -0
  22. data/ext/v8/upstream/3.1.8/preparser/preparser-process.cc +206 -0
  23. data/ext/v8/upstream/3.1.8/src/SConscript +356 -0
  24. data/ext/v8/upstream/3.1.8/src/accessors.cc +907 -0
  25. data/ext/v8/upstream/3.1.8/src/accessors.h +121 -0
  26. data/ext/v8/upstream/3.1.8/src/allocation.cc +204 -0
  27. data/ext/v8/upstream/3.1.8/src/allocation.h +176 -0
  28. data/ext/v8/upstream/3.1.8/src/api.cc +5191 -0
  29. data/ext/v8/upstream/3.1.8/src/api.h +508 -0
  30. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/apinatives.js +0 -0
  31. data/ext/v8/upstream/3.1.8/src/apiutils.h +80 -0
  32. data/ext/v8/upstream/3.1.8/src/arguments.h +105 -0
  33. data/ext/v8/upstream/3.1.8/src/arm/assembler-arm-inl.h +352 -0
  34. data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.cc +2756 -0
  35. data/ext/v8/upstream/3.1.8/src/arm/assembler-arm.h +1294 -0
  36. data/ext/v8/upstream/3.1.8/src/arm/builtins-arm.cc +1628 -0
  37. data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.cc +6783 -0
  38. data/ext/v8/upstream/3.1.8/src/arm/code-stubs-arm.h +657 -0
  39. data/ext/v8/upstream/3.1.8/src/arm/codegen-arm-inl.h +48 -0
  40. data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.cc +7403 -0
  41. data/ext/v8/upstream/3.1.8/src/arm/codegen-arm.h +595 -0
  42. data/ext/v8/upstream/3.1.8/src/arm/constants-arm.cc +152 -0
  43. data/ext/v8/upstream/3.1.8/src/arm/constants-arm.h +769 -0
  44. data/ext/v8/upstream/3.1.8/src/arm/cpu-arm.cc +147 -0
  45. data/ext/v8/upstream/3.1.8/src/arm/debug-arm.cc +315 -0
  46. data/ext/v8/upstream/3.1.8/src/arm/deoptimizer-arm.cc +700 -0
  47. data/ext/v8/upstream/3.1.8/src/arm/disasm-arm.cc +1439 -0
  48. data/ext/v8/upstream/3.1.8/src/arm/frames-arm.cc +45 -0
  49. data/ext/v8/upstream/3.1.8/src/arm/frames-arm.h +168 -0
  50. data/ext/v8/upstream/3.1.8/src/arm/full-codegen-arm.cc +4230 -0
  51. data/ext/v8/upstream/3.1.8/src/arm/ic-arm.cc +1799 -0
  52. data/ext/v8/upstream/3.1.8/src/arm/jump-target-arm.cc +174 -0
  53. data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.cc +2041 -0
  54. data/ext/v8/upstream/3.1.8/src/arm/lithium-arm.h +2046 -0
  55. data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.cc +3822 -0
  56. data/ext/v8/upstream/3.1.8/src/arm/lithium-codegen-arm.h +312 -0
  57. data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.cc +303 -0
  58. data/ext/v8/upstream/3.1.8/src/arm/lithium-gap-resolver-arm.h +84 -0
  59. data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.cc +2701 -0
  60. data/ext/v8/upstream/3.1.8/src/arm/macro-assembler-arm.h +1015 -0
  61. data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.cc +1280 -0
  62. data/ext/v8/upstream/3.1.8/src/arm/regexp-macro-assembler-arm.h +252 -0
  63. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm-inl.h +0 -0
  64. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.cc +0 -0
  65. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/register-allocator-arm.h +0 -0
  66. data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.cc +3165 -0
  67. data/ext/v8/upstream/3.1.8/src/arm/simulator-arm.h +402 -0
  68. data/ext/v8/upstream/3.1.8/src/arm/stub-cache-arm.cc +4077 -0
  69. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/arm/virtual-frame-arm-inl.h +0 -0
  70. data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.cc +843 -0
  71. data/ext/v8/upstream/3.1.8/src/arm/virtual-frame-arm.h +520 -0
  72. data/ext/v8/upstream/3.1.8/src/array.js +1231 -0
  73. data/ext/v8/upstream/3.1.8/src/assembler.cc +973 -0
  74. data/ext/v8/upstream/3.1.8/src/assembler.h +787 -0
  75. data/ext/v8/upstream/3.1.8/src/ast-inl.h +107 -0
  76. data/ext/v8/upstream/3.1.8/src/ast.cc +1067 -0
  77. data/ext/v8/upstream/3.1.8/src/ast.h +2177 -0
  78. data/ext/v8/upstream/3.1.8/src/atomicops.h +165 -0
  79. data/ext/v8/upstream/3.1.8/src/atomicops_internals_arm_gcc.h +145 -0
  80. data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.cc +126 -0
  81. data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_gcc.h +287 -0
  82. data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_macosx.h +301 -0
  83. data/ext/v8/upstream/3.1.8/src/atomicops_internals_x86_msvc.h +203 -0
  84. data/ext/v8/upstream/3.1.8/src/bignum-dtoa.cc +655 -0
  85. data/ext/v8/upstream/3.1.8/src/bignum-dtoa.h +81 -0
  86. data/ext/v8/upstream/3.1.8/src/bignum.cc +768 -0
  87. data/ext/v8/upstream/3.1.8/src/bignum.h +140 -0
  88. data/ext/v8/upstream/3.1.8/src/bootstrapper.cc +1888 -0
  89. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/bootstrapper.h +0 -0
  90. data/ext/v8/upstream/3.1.8/src/builtins.cc +1586 -0
  91. data/ext/v8/upstream/3.1.8/src/builtins.h +339 -0
  92. data/ext/v8/upstream/3.1.8/src/bytecodes-irregexp.h +105 -0
  93. data/ext/v8/upstream/3.1.8/src/cached-powers.cc +177 -0
  94. data/ext/v8/upstream/3.1.8/src/cached-powers.h +65 -0
  95. data/ext/v8/upstream/3.1.8/src/char-predicates-inl.h +94 -0
  96. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/char-predicates.h +0 -0
  97. data/ext/v8/upstream/3.1.8/src/checks.cc +110 -0
  98. data/ext/v8/upstream/3.1.8/src/checks.h +292 -0
  99. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue-inl.h +0 -0
  100. data/ext/v8/upstream/3.1.8/src/circular-queue.cc +122 -0
  101. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/circular-queue.h +0 -0
  102. data/ext/v8/upstream/3.1.8/src/code-stubs.cc +230 -0
  103. data/ext/v8/upstream/3.1.8/src/code-stubs.h +950 -0
  104. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/code.h +0 -0
  105. data/ext/v8/upstream/3.1.8/src/codegen-inl.h +64 -0
  106. data/ext/v8/upstream/3.1.8/src/codegen.cc +495 -0
  107. data/ext/v8/upstream/3.1.8/src/codegen.h +245 -0
  108. data/ext/v8/upstream/3.1.8/src/compilation-cache.cc +654 -0
  109. data/ext/v8/upstream/3.1.8/src/compilation-cache.h +112 -0
  110. data/ext/v8/upstream/3.1.8/src/compiler.cc +806 -0
  111. data/ext/v8/upstream/3.1.8/src/compiler.h +290 -0
  112. data/ext/v8/upstream/3.1.8/src/contexts.cc +320 -0
  113. data/ext/v8/upstream/3.1.8/src/contexts.h +376 -0
  114. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/conversions-inl.h +0 -0
  115. data/ext/v8/upstream/3.1.8/src/conversions.cc +1069 -0
  116. data/ext/v8/upstream/3.1.8/src/conversions.h +122 -0
  117. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/counters.cc +0 -0
  118. data/ext/v8/upstream/3.1.8/src/counters.h +242 -0
  119. data/ext/v8/upstream/3.1.8/src/cpu-profiler-inl.h +100 -0
  120. data/ext/v8/upstream/3.1.8/src/cpu-profiler.cc +554 -0
  121. data/ext/v8/upstream/3.1.8/src/cpu-profiler.h +291 -0
  122. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/cpu.h +0 -0
  123. data/ext/v8/upstream/3.1.8/src/d8-debug.cc +367 -0
  124. data/ext/v8/upstream/3.1.8/src/d8-debug.h +157 -0
  125. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-posix.cc +0 -0
  126. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-readline.cc +0 -0
  127. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/d8-windows.cc +0 -0
  128. data/ext/v8/upstream/3.1.8/src/d8.cc +792 -0
  129. data/ext/v8/upstream/3.1.8/src/d8.gyp +85 -0
  130. data/ext/v8/upstream/3.1.8/src/d8.h +231 -0
  131. data/ext/v8/upstream/3.1.8/src/d8.js +2798 -0
  132. data/ext/v8/upstream/3.1.8/src/data-flow.cc +545 -0
  133. data/ext/v8/upstream/3.1.8/src/data-flow.h +379 -0
  134. data/ext/v8/upstream/3.1.8/src/date.js +1103 -0
  135. data/ext/v8/upstream/3.1.8/src/dateparser-inl.h +125 -0
  136. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/dateparser.cc +0 -0
  137. data/ext/v8/upstream/3.1.8/src/dateparser.h +263 -0
  138. data/ext/v8/upstream/3.1.8/src/debug-agent.cc +446 -0
  139. data/ext/v8/upstream/3.1.8/src/debug-agent.h +131 -0
  140. data/ext/v8/upstream/3.1.8/src/debug-debugger.js +2569 -0
  141. data/ext/v8/upstream/3.1.8/src/debug.cc +3085 -0
  142. data/ext/v8/upstream/3.1.8/src/debug.h +1025 -0
  143. data/ext/v8/upstream/3.1.8/src/deoptimizer.cc +1185 -0
  144. data/ext/v8/upstream/3.1.8/src/deoptimizer.h +529 -0
  145. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disasm.h +0 -0
  146. data/ext/v8/upstream/3.1.8/src/disassembler.cc +338 -0
  147. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/disassembler.h +0 -0
  148. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.cc +0 -0
  149. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/diy-fp.h +0 -0
  150. data/ext/v8/upstream/3.1.8/src/double.h +238 -0
  151. data/ext/v8/upstream/3.1.8/src/dtoa.cc +103 -0
  152. data/ext/v8/upstream/3.1.8/src/dtoa.h +85 -0
  153. data/ext/v8/upstream/3.1.8/src/execution.cc +735 -0
  154. data/ext/v8/upstream/3.1.8/src/execution.h +322 -0
  155. data/ext/v8/upstream/3.1.8/src/extensions/experimental/experimental.gyp +53 -0
  156. data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.cc +264 -0
  157. data/ext/v8/upstream/3.1.8/src/extensions/experimental/i18n-extension.h +64 -0
  158. data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.cc +141 -0
  159. data/ext/v8/upstream/3.1.8/src/extensions/externalize-string-extension.h +50 -0
  160. data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.cc +58 -0
  161. data/ext/v8/upstream/3.1.8/src/extensions/gc-extension.h +49 -0
  162. data/ext/v8/upstream/3.1.8/src/factory.cc +1087 -0
  163. data/ext/v8/upstream/3.1.8/src/factory.h +432 -0
  164. data/ext/v8/upstream/3.1.8/src/fast-dtoa.cc +736 -0
  165. data/ext/v8/upstream/3.1.8/src/fast-dtoa.h +83 -0
  166. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.cc +0 -0
  167. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/fixed-dtoa.h +0 -0
  168. data/ext/v8/upstream/3.1.8/src/flag-definitions.h +552 -0
  169. data/ext/v8/upstream/3.1.8/src/flags.cc +551 -0
  170. data/ext/v8/upstream/3.1.8/src/flags.h +79 -0
  171. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/frame-element.cc +0 -0
  172. data/ext/v8/upstream/3.1.8/src/frame-element.h +277 -0
  173. data/ext/v8/upstream/3.1.8/src/frames-inl.h +210 -0
  174. data/ext/v8/upstream/3.1.8/src/frames.cc +1232 -0
  175. data/ext/v8/upstream/3.1.8/src/frames.h +826 -0
  176. data/ext/v8/upstream/3.1.8/src/full-codegen.cc +1382 -0
  177. data/ext/v8/upstream/3.1.8/src/full-codegen.h +751 -0
  178. data/ext/v8/upstream/3.1.8/src/func-name-inferrer.cc +90 -0
  179. data/ext/v8/upstream/3.1.8/src/func-name-inferrer.h +111 -0
  180. data/ext/v8/upstream/3.1.8/src/gdb-jit.cc +1547 -0
  181. data/ext/v8/upstream/3.1.8/src/gdb-jit.h +138 -0
  182. data/ext/v8/upstream/3.1.8/src/global-handles.cc +534 -0
  183. data/ext/v8/upstream/3.1.8/src/global-handles.h +181 -0
  184. data/ext/v8/upstream/3.1.8/src/globals.h +325 -0
  185. data/ext/v8/upstream/3.1.8/src/handles-inl.h +80 -0
  186. data/ext/v8/upstream/3.1.8/src/handles.cc +910 -0
  187. data/ext/v8/upstream/3.1.8/src/handles.h +424 -0
  188. data/ext/v8/upstream/3.1.8/src/hashmap.cc +230 -0
  189. data/ext/v8/upstream/3.1.8/src/hashmap.h +121 -0
  190. data/ext/v8/upstream/3.1.8/src/heap-inl.h +587 -0
  191. data/ext/v8/upstream/3.1.8/src/heap-profiler.cc +1128 -0
  192. data/ext/v8/upstream/3.1.8/src/heap-profiler.h +381 -0
  193. data/ext/v8/upstream/3.1.8/src/heap.cc +5610 -0
  194. data/ext/v8/upstream/3.1.8/src/heap.h +2218 -0
  195. data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.cc +1490 -0
  196. data/ext/v8/upstream/3.1.8/src/hydrogen-instructions.h +3493 -0
  197. data/ext/v8/upstream/3.1.8/src/hydrogen.cc +6056 -0
  198. data/ext/v8/upstream/3.1.8/src/hydrogen.h +1091 -0
  199. data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32-inl.h +429 -0
  200. data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.cc +2800 -0
  201. data/ext/v8/upstream/3.1.8/src/ia32/assembler-ia32.h +1093 -0
  202. data/ext/v8/upstream/3.1.8/src/ia32/builtins-ia32.cc +1590 -0
  203. data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.cc +6624 -0
  204. data/ext/v8/upstream/3.1.8/src/ia32/code-stubs-ia32.h +536 -0
  205. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/codegen-ia32-inl.h +0 -0
  206. data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.cc +10354 -0
  207. data/ext/v8/upstream/3.1.8/src/ia32/codegen-ia32.h +798 -0
  208. data/ext/v8/upstream/3.1.8/src/ia32/cpu-ia32.cc +87 -0
  209. data/ext/v8/upstream/3.1.8/src/ia32/debug-ia32.cc +309 -0
  210. data/ext/v8/upstream/3.1.8/src/ia32/deoptimizer-ia32.cc +664 -0
  211. data/ext/v8/upstream/3.1.8/src/ia32/disasm-ia32.cc +1597 -0
  212. data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.cc +45 -0
  213. data/ext/v8/upstream/3.1.8/src/ia32/frames-ia32.h +140 -0
  214. data/ext/v8/upstream/3.1.8/src/ia32/full-codegen-ia32.cc +4278 -0
  215. data/ext/v8/upstream/3.1.8/src/ia32/ic-ia32.cc +1786 -0
  216. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/jump-target-ia32.cc +0 -0
  217. data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.cc +3880 -0
  218. data/ext/v8/upstream/3.1.8/src/ia32/lithium-codegen-ia32.h +309 -0
  219. data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.cc +460 -0
  220. data/ext/v8/upstream/3.1.8/src/ia32/lithium-gap-resolver-ia32.h +110 -0
  221. data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.cc +2095 -0
  222. data/ext/v8/upstream/3.1.8/src/ia32/lithium-ia32.h +2127 -0
  223. data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.cc +2031 -0
  224. data/ext/v8/upstream/3.1.8/src/ia32/macro-assembler-ia32.h +798 -0
  225. data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.cc +1253 -0
  226. data/ext/v8/upstream/3.1.8/src/ia32/regexp-macro-assembler-ia32.h +215 -0
  227. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32-inl.h +0 -0
  228. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.cc +0 -0
  229. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/register-allocator-ia32.h +0 -0
  230. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/ia32/simulator-ia32.cc +0 -0
  231. data/ext/v8/upstream/3.1.8/src/ia32/simulator-ia32.h +72 -0
  232. data/ext/v8/upstream/3.1.8/src/ia32/stub-cache-ia32.cc +3732 -0
  233. data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.cc +1360 -0
  234. data/ext/v8/upstream/3.1.8/src/ia32/virtual-frame-ia32.h +646 -0
  235. data/ext/v8/upstream/3.1.8/src/ic-inl.h +129 -0
  236. data/ext/v8/upstream/3.1.8/src/ic.cc +2333 -0
  237. data/ext/v8/upstream/3.1.8/src/ic.h +639 -0
  238. data/ext/v8/upstream/3.1.8/src/inspector.cc +63 -0
  239. data/ext/v8/upstream/3.1.8/src/inspector.h +62 -0
  240. data/ext/v8/upstream/3.1.8/src/interpreter-irregexp.cc +655 -0
  241. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/interpreter-irregexp.h +0 -0
  242. data/ext/v8/upstream/3.1.8/src/json.js +342 -0
  243. data/ext/v8/upstream/3.1.8/src/jsregexp.cc +5340 -0
  244. data/ext/v8/upstream/3.1.8/src/jsregexp.h +1484 -0
  245. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-heavy-inl.h +0 -0
  246. data/ext/v8/upstream/3.1.8/src/jump-target-heavy.cc +430 -0
  247. data/ext/v8/upstream/3.1.8/src/jump-target-heavy.h +244 -0
  248. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-inl.h +0 -0
  249. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target-light-inl.h +0 -0
  250. data/ext/v8/upstream/3.1.8/src/jump-target-light.cc +111 -0
  251. data/ext/v8/upstream/3.1.8/src/jump-target-light.h +193 -0
  252. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.cc +0 -0
  253. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/jump-target.h +0 -0
  254. data/ext/v8/upstream/3.1.8/src/list-inl.h +206 -0
  255. data/ext/v8/upstream/3.1.8/src/list.h +164 -0
  256. data/ext/v8/upstream/3.1.8/src/lithium-allocator-inl.h +140 -0
  257. data/ext/v8/upstream/3.1.8/src/lithium-allocator.cc +2093 -0
  258. data/ext/v8/upstream/3.1.8/src/lithium-allocator.h +644 -0
  259. data/ext/v8/upstream/3.1.8/src/lithium.cc +168 -0
  260. data/ext/v8/upstream/3.1.8/src/lithium.h +592 -0
  261. data/ext/v8/upstream/3.1.8/src/liveedit-debugger.js +1082 -0
  262. data/ext/v8/upstream/3.1.8/src/liveedit.cc +1650 -0
  263. data/ext/v8/upstream/3.1.8/src/liveedit.h +174 -0
  264. data/ext/v8/upstream/3.1.8/src/liveobjectlist-inl.h +126 -0
  265. data/ext/v8/upstream/3.1.8/src/liveobjectlist.cc +2527 -0
  266. data/ext/v8/upstream/3.1.8/src/liveobjectlist.h +322 -0
  267. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/log-inl.h +0 -0
  268. data/ext/v8/upstream/3.1.8/src/log-utils.cc +336 -0
  269. data/ext/v8/upstream/3.1.8/src/log-utils.h +232 -0
  270. data/ext/v8/upstream/3.1.8/src/log.cc +1608 -0
  271. data/ext/v8/upstream/3.1.8/src/log.h +379 -0
  272. data/ext/v8/upstream/3.1.8/src/macro-assembler.h +120 -0
  273. data/ext/v8/upstream/3.1.8/src/macros.py +178 -0
  274. data/ext/v8/upstream/3.1.8/src/mark-compact.cc +2957 -0
  275. data/ext/v8/upstream/3.1.8/src/mark-compact.h +433 -0
  276. data/ext/v8/upstream/3.1.8/src/math.js +264 -0
  277. data/ext/v8/upstream/3.1.8/src/memory.h +82 -0
  278. data/ext/v8/upstream/3.1.8/src/messages.cc +164 -0
  279. data/ext/v8/upstream/3.1.8/src/messages.h +114 -0
  280. data/ext/v8/upstream/3.1.8/src/messages.js +1071 -0
  281. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips-inl.h +0 -0
  282. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/assembler-mips.cc +0 -0
  283. data/ext/v8/upstream/3.1.8/src/mips/assembler-mips.h +667 -0
  284. data/ext/v8/upstream/3.1.8/src/mips/builtins-mips.cc +205 -0
  285. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips-inl.h +0 -0
  286. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/codegen-mips.cc +0 -0
  287. data/ext/v8/upstream/3.1.8/src/mips/codegen-mips.h +431 -0
  288. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.cc +0 -0
  289. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/constants-mips.h +0 -0
  290. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/cpu-mips.cc +0 -0
  291. data/ext/v8/upstream/3.1.8/src/mips/debug-mips.cc +127 -0
  292. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/disasm-mips.cc +0 -0
  293. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/fast-codegen-mips.cc +0 -0
  294. data/ext/v8/upstream/3.1.8/src/mips/frames-mips.cc +96 -0
  295. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/frames-mips.h +0 -0
  296. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/full-codegen-mips.cc +0 -0
  297. data/ext/v8/upstream/3.1.8/src/mips/ic-mips.cc +208 -0
  298. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/jump-target-mips.cc +0 -0
  299. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.cc +0 -0
  300. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/macro-assembler-mips.h +0 -0
  301. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips-inl.h +0 -0
  302. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.cc +0 -0
  303. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/register-allocator-mips.h +0 -0
  304. data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.cc +1650 -0
  305. data/ext/v8/upstream/3.1.8/src/mips/simulator-mips.h +311 -0
  306. data/ext/v8/upstream/3.1.8/src/mips/stub-cache-mips.cc +418 -0
  307. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.cc +0 -0
  308. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mips/virtual-frame-mips.h +0 -0
  309. data/ext/v8/upstream/3.1.8/src/mirror-debugger.js +2380 -0
  310. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/mksnapshot.cc +0 -0
  311. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/natives.h +0 -0
  312. data/ext/v8/upstream/3.1.8/src/objects-debug.cc +722 -0
  313. data/ext/v8/upstream/3.1.8/src/objects-inl.h +3946 -0
  314. data/ext/v8/upstream/3.1.8/src/objects-printer.cc +801 -0
  315. data/ext/v8/upstream/3.1.8/src/objects-visiting.cc +142 -0
  316. data/ext/v8/upstream/3.1.8/src/objects-visiting.h +401 -0
  317. data/ext/v8/upstream/3.1.8/src/objects.cc +10044 -0
  318. data/ext/v8/upstream/3.1.8/src/objects.h +6571 -0
  319. data/ext/v8/upstream/3.1.8/src/parser.cc +5165 -0
  320. data/ext/v8/upstream/3.1.8/src/parser.h +802 -0
  321. data/ext/v8/upstream/3.1.8/src/platform-cygwin.cc +745 -0
  322. data/ext/v8/upstream/3.1.8/src/platform-freebsd.cc +702 -0
  323. data/ext/v8/upstream/3.1.8/src/platform-linux.cc +981 -0
  324. data/ext/v8/upstream/3.1.8/src/platform-macos.cc +732 -0
  325. data/ext/v8/upstream/3.1.8/src/platform-nullos.cc +498 -0
  326. data/ext/v8/upstream/3.1.8/src/platform-openbsd.cc +657 -0
  327. data/ext/v8/upstream/3.1.8/src/platform-posix.cc +399 -0
  328. data/ext/v8/upstream/3.1.8/src/platform-solaris.cc +714 -0
  329. data/ext/v8/upstream/3.1.8/src/platform-win32.cc +1974 -0
  330. data/ext/v8/upstream/3.1.8/src/platform.h +636 -0
  331. data/ext/v8/upstream/3.1.8/src/preparse-data.cc +183 -0
  332. data/ext/v8/upstream/3.1.8/src/preparse-data.h +249 -0
  333. data/ext/v8/upstream/3.1.8/src/preparser-api.cc +213 -0
  334. data/ext/v8/upstream/3.1.8/src/preparser.cc +1205 -0
  335. data/ext/v8/upstream/3.1.8/src/preparser.h +278 -0
  336. data/ext/v8/upstream/3.1.8/src/prettyprinter.cc +1539 -0
  337. data/ext/v8/upstream/3.1.8/src/prettyprinter.h +223 -0
  338. data/ext/v8/upstream/3.1.8/src/profile-generator-inl.h +128 -0
  339. data/ext/v8/upstream/3.1.8/src/profile-generator.cc +2899 -0
  340. data/ext/v8/upstream/3.1.8/src/profile-generator.h +1151 -0
  341. data/ext/v8/upstream/3.1.8/src/property.cc +96 -0
  342. data/ext/v8/upstream/3.1.8/src/property.h +337 -0
  343. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-macro-assembler-irregexp-inl.h +0 -0
  344. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.cc +470 -0
  345. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-irregexp.h +142 -0
  346. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.cc +373 -0
  347. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler-tracer.h +104 -0
  348. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.cc +257 -0
  349. data/ext/v8/upstream/3.1.8/src/regexp-macro-assembler.h +231 -0
  350. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.cc +0 -0
  351. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/regexp-stack.h +0 -0
  352. data/ext/v8/upstream/3.1.8/src/regexp.js +483 -0
  353. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator-inl.h +0 -0
  354. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.cc +0 -0
  355. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/register-allocator.h +0 -0
  356. data/ext/v8/upstream/3.1.8/src/rewriter.cc +1023 -0
  357. data/ext/v8/upstream/3.1.8/src/rewriter.h +59 -0
  358. data/ext/v8/upstream/3.1.8/src/runtime-profiler.cc +443 -0
  359. data/ext/v8/upstream/3.1.8/src/runtime-profiler.h +77 -0
  360. data/ext/v8/upstream/3.1.8/src/runtime.cc +11592 -0
  361. data/ext/v8/upstream/3.1.8/src/runtime.h +582 -0
  362. data/ext/v8/upstream/3.1.8/src/runtime.js +643 -0
  363. data/ext/v8/upstream/3.1.8/src/safepoint-table.cc +253 -0
  364. data/ext/v8/upstream/3.1.8/src/safepoint-table.h +263 -0
  365. data/ext/v8/upstream/3.1.8/src/scanner-base.cc +971 -0
  366. data/ext/v8/upstream/3.1.8/src/scanner-base.h +653 -0
  367. data/ext/v8/upstream/3.1.8/src/scanner.cc +586 -0
  368. data/ext/v8/upstream/3.1.8/src/scanner.h +194 -0
  369. data/ext/v8/upstream/3.1.8/src/scopeinfo.cc +636 -0
  370. data/ext/v8/upstream/3.1.8/src/scopeinfo.h +238 -0
  371. data/ext/v8/upstream/3.1.8/src/scopes.cc +1063 -0
  372. data/ext/v8/upstream/3.1.8/src/scopes.h +494 -0
  373. data/ext/v8/upstream/3.1.8/src/serialize.cc +1535 -0
  374. data/ext/v8/upstream/3.1.8/src/serialize.h +584 -0
  375. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/shell.h +0 -0
  376. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/simulator.h +0 -0
  377. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/smart-pointer.h +0 -0
  378. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-common.cc +0 -0
  379. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot-empty.cc +0 -0
  380. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/snapshot.h +0 -0
  381. data/ext/v8/upstream/3.1.8/src/spaces-inl.h +524 -0
  382. data/ext/v8/upstream/3.1.8/src/spaces.cc +3254 -0
  383. data/ext/v8/upstream/3.1.8/src/spaces.h +2362 -0
  384. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree-inl.h +0 -0
  385. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/splay-tree.h +0 -0
  386. data/ext/v8/upstream/3.1.8/src/string-search.cc +40 -0
  387. data/ext/v8/upstream/3.1.8/src/string-search.h +567 -0
  388. data/ext/v8/upstream/3.1.8/src/string-stream.cc +584 -0
  389. data/ext/v8/upstream/3.1.8/src/string-stream.h +191 -0
  390. data/ext/v8/upstream/3.1.8/src/string.js +915 -0
  391. data/ext/v8/upstream/3.1.8/src/strtod.cc +440 -0
  392. data/ext/v8/upstream/3.1.8/src/strtod.h +40 -0
  393. data/ext/v8/upstream/3.1.8/src/stub-cache.cc +1878 -0
  394. data/ext/v8/upstream/3.1.8/src/stub-cache.h +849 -0
  395. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/third_party/valgrind/valgrind.h +0 -0
  396. data/ext/v8/upstream/3.1.8/src/token.cc +63 -0
  397. data/ext/v8/upstream/3.1.8/src/token.h +288 -0
  398. data/ext/v8/upstream/3.1.8/src/top.cc +1152 -0
  399. data/ext/v8/upstream/3.1.8/src/top.h +608 -0
  400. data/ext/v8/upstream/3.1.8/src/type-info.cc +406 -0
  401. data/ext/v8/upstream/3.1.8/src/type-info.h +283 -0
  402. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue-inl.h +0 -0
  403. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/unbound-queue.h +0 -0
  404. data/ext/v8/upstream/3.1.8/src/unicode-inl.h +238 -0
  405. data/ext/v8/upstream/3.1.8/src/unicode.cc +1624 -0
  406. data/ext/v8/upstream/3.1.8/src/unicode.h +280 -0
  407. data/ext/v8/upstream/3.1.8/src/uri.js +402 -0
  408. data/ext/v8/upstream/3.1.8/src/utils.cc +371 -0
  409. data/ext/v8/upstream/3.1.8/src/utils.h +793 -0
  410. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8-counters.cc +0 -0
  411. data/ext/v8/upstream/3.1.8/src/v8-counters.h +290 -0
  412. data/ext/v8/upstream/3.1.8/src/v8.cc +270 -0
  413. data/ext/v8/upstream/3.1.8/src/v8.h +127 -0
  414. data/ext/v8/upstream/3.1.8/src/v8checks.h +64 -0
  415. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/v8dll-main.cc +0 -0
  416. data/ext/v8/upstream/3.1.8/src/v8globals.h +480 -0
  417. data/ext/v8/upstream/3.1.8/src/v8natives.js +1252 -0
  418. data/ext/v8/upstream/3.1.8/src/v8preparserdll-main.cc +39 -0
  419. data/ext/v8/upstream/3.1.8/src/v8threads.cc +440 -0
  420. data/ext/v8/upstream/3.1.8/src/v8threads.h +157 -0
  421. data/ext/v8/upstream/3.1.8/src/v8utils.h +354 -0
  422. data/ext/v8/upstream/3.1.8/src/variables.cc +132 -0
  423. data/ext/v8/upstream/3.1.8/src/variables.h +212 -0
  424. data/ext/v8/upstream/3.1.8/src/version.cc +95 -0
  425. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/version.h +0 -0
  426. data/ext/v8/upstream/3.1.8/src/virtual-frame-heavy-inl.h +190 -0
  427. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-heavy.cc +0 -0
  428. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-inl.h +0 -0
  429. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light-inl.h +0 -0
  430. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame-light.cc +0 -0
  431. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/virtual-frame.cc +0 -0
  432. data/ext/v8/upstream/3.1.8/src/virtual-frame.h +59 -0
  433. data/ext/v8/upstream/3.1.8/src/vm-state-inl.h +134 -0
  434. data/ext/v8/upstream/3.1.8/src/vm-state.h +68 -0
  435. data/ext/v8/upstream/3.1.8/src/win32-headers.h +95 -0
  436. data/ext/v8/upstream/3.1.8/src/x64/assembler-x64-inl.h +455 -0
  437. data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.cc +3162 -0
  438. data/ext/v8/upstream/3.1.8/src/x64/assembler-x64.h +1584 -0
  439. data/ext/v8/upstream/3.1.8/src/x64/builtins-x64.cc +1492 -0
  440. data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.cc +5150 -0
  441. data/ext/v8/upstream/3.1.8/src/x64/code-stubs-x64.h +519 -0
  442. data/ext/v8/upstream/3.1.8/src/x64/codegen-x64-inl.h +46 -0
  443. data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.cc +8835 -0
  444. data/ext/v8/upstream/3.1.8/src/x64/codegen-x64.h +750 -0
  445. data/ext/v8/upstream/3.1.8/src/x64/cpu-x64.cc +86 -0
  446. data/ext/v8/upstream/3.1.8/src/x64/debug-x64.cc +316 -0
  447. data/ext/v8/upstream/3.1.8/src/x64/deoptimizer-x64.cc +781 -0
  448. data/ext/v8/upstream/3.1.8/src/x64/disasm-x64.cc +1737 -0
  449. data/ext/v8/upstream/3.1.8/src/x64/frames-x64.cc +45 -0
  450. data/ext/v8/upstream/3.1.8/src/x64/frames-x64.h +130 -0
  451. data/ext/v8/upstream/3.1.8/src/x64/full-codegen-x64.cc +3984 -0
  452. data/ext/v8/upstream/3.1.8/src/x64/ic-x64.cc +1761 -0
  453. data/ext/v8/upstream/3.1.8/src/x64/jump-target-x64.cc +437 -0
  454. data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.cc +3639 -0
  455. data/ext/v8/upstream/3.1.8/src/x64/lithium-codegen-x64.h +305 -0
  456. data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.cc +320 -0
  457. data/ext/v8/upstream/3.1.8/src/x64/lithium-gap-resolver-x64.h +74 -0
  458. data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.cc +2044 -0
  459. data/ext/v8/upstream/3.1.8/src/x64/lithium-x64.h +2052 -0
  460. data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.cc +2660 -0
  461. data/ext/v8/upstream/3.1.8/src/x64/macro-assembler-x64.h +1852 -0
  462. data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.cc +1382 -0
  463. data/ext/v8/upstream/3.1.8/src/x64/regexp-macro-assembler-x64.h +278 -0
  464. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64-inl.h +0 -0
  465. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.cc +0 -0
  466. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/register-allocator-x64.h +0 -0
  467. data/ext/v8/upstream/{2.3.3 → 3.1.8}/src/x64/simulator-x64.cc +0 -0
  468. data/ext/v8/upstream/3.1.8/src/x64/simulator-x64.h +71 -0
  469. data/ext/v8/upstream/3.1.8/src/x64/stub-cache-x64.cc +3509 -0
  470. data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.cc +1292 -0
  471. data/ext/v8/upstream/3.1.8/src/x64/virtual-frame-x64.h +593 -0
  472. data/ext/v8/upstream/3.1.8/src/zone-inl.h +83 -0
  473. data/ext/v8/upstream/3.1.8/src/zone.cc +195 -0
  474. data/ext/v8/upstream/3.1.8/src/zone.h +233 -0
  475. data/ext/v8/upstream/3.1.8/tools/codemap.js +265 -0
  476. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/consarray.js +0 -0
  477. data/ext/v8/upstream/3.1.8/tools/csvparser.js +78 -0
  478. data/ext/v8/upstream/3.1.8/tools/disasm.py +92 -0
  479. data/ext/v8/upstream/3.1.8/tools/gc-nvp-trace-processor.py +328 -0
  480. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/generate-ten-powers.scm +0 -0
  481. data/ext/v8/upstream/3.1.8/tools/grokdump.py +840 -0
  482. data/ext/v8/upstream/3.1.8/tools/gyp/v8.gyp +869 -0
  483. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/js2c.py +0 -0
  484. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/jsmin.py +0 -0
  485. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/linux-tick-processor +0 -0
  486. data/ext/v8/upstream/3.1.8/tools/ll_prof.py +919 -0
  487. data/ext/v8/upstream/3.1.8/tools/logreader.js +185 -0
  488. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-nm +0 -0
  489. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/mac-tick-processor +0 -0
  490. data/ext/v8/upstream/3.1.8/tools/oom_dump/README +31 -0
  491. data/ext/v8/upstream/3.1.8/tools/oom_dump/SConstruct +42 -0
  492. data/ext/v8/upstream/3.1.8/tools/oom_dump/oom_dump.cc +288 -0
  493. data/ext/v8/upstream/3.1.8/tools/presubmit.py +305 -0
  494. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/process-heap-prof.py +0 -0
  495. data/ext/v8/upstream/3.1.8/tools/profile.js +751 -0
  496. data/ext/v8/upstream/3.1.8/tools/profile_view.js +219 -0
  497. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/run-valgrind.py +0 -0
  498. data/ext/v8/upstream/3.1.8/tools/splaytree.js +316 -0
  499. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/stats-viewer.py +0 -0
  500. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/tickprocessor-driver.js +0 -0
  501. data/ext/v8/upstream/3.1.8/tools/tickprocessor.js +863 -0
  502. data/ext/v8/upstream/3.1.8/tools/utils.py +96 -0
  503. data/ext/v8/upstream/3.1.8/tools/visual_studio/README.txt +70 -0
  504. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/arm.vsprops +0 -0
  505. data/ext/v8/upstream/3.1.8/tools/visual_studio/common.vsprops +34 -0
  506. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8.vcproj +0 -0
  507. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_arm.vcproj +0 -0
  508. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8_x64.vcproj +0 -0
  509. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/d8js2c.cmd +0 -0
  510. data/ext/v8/upstream/3.1.8/tools/visual_studio/debug.vsprops +17 -0
  511. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/ia32.vsprops +0 -0
  512. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/js2c.cmd +0 -0
  513. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/release.vsprops +0 -0
  514. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.sln +0 -0
  515. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8.vcproj +0 -0
  516. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.sln +0 -0
  517. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_arm.vcproj +0 -0
  518. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base.vcproj +1296 -0
  519. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_arm.vcproj +1234 -0
  520. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_base_x64.vcproj +1296 -0
  521. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest.vcproj +0 -0
  522. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_arm.vcproj +0 -0
  523. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_cctest_x64.vcproj +0 -0
  524. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot.vcproj +0 -0
  525. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -0
  526. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample.vcproj +0 -0
  527. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_arm.vcproj +0 -0
  528. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_process_sample_x64.vcproj +0 -0
  529. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample.vcproj +147 -0
  530. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_arm.vcproj +147 -0
  531. data/ext/v8/upstream/3.1.8/tools/visual_studio/v8_shell_sample_x64.vcproj +163 -0
  532. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot.vcproj +0 -0
  533. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
  534. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
  535. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
  536. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.sln +0 -0
  537. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/v8_x64.vcproj +0 -0
  538. data/ext/v8/upstream/{2.3.3 → 3.1.8}/tools/visual_studio/x64.vsprops +0 -0
  539. data/ext/v8/upstream/3.1.8/tools/windows-tick-processor.bat +30 -0
  540. data/ext/v8/upstream/Makefile +2 -1
  541. data/ext/v8/v8_template.cpp +2 -2
  542. data/lib/v8/version.rb +1 -1
  543. data/spec/redjs/jsapi_spec.rb +2 -2
  544. metadata +552 -490
  545. data/ext/v8/upstream/2.3.3/.gitignore +0 -26
  546. data/ext/v8/upstream/2.3.3/AUTHORS +0 -31
  547. data/ext/v8/upstream/2.3.3/ChangeLog +0 -1916
  548. data/ext/v8/upstream/2.3.3/LICENSE +0 -55
  549. data/ext/v8/upstream/2.3.3/SConstruct +0 -1154
  550. data/ext/v8/upstream/2.3.3/include/v8-debug.h +0 -381
  551. data/ext/v8/upstream/2.3.3/include/v8-profiler.h +0 -353
  552. data/ext/v8/upstream/2.3.3/include/v8.h +0 -3616
  553. data/ext/v8/upstream/2.3.3/src/SConscript +0 -330
  554. data/ext/v8/upstream/2.3.3/src/accessors.cc +0 -661
  555. data/ext/v8/upstream/2.3.3/src/accessors.h +0 -114
  556. data/ext/v8/upstream/2.3.3/src/allocation.cc +0 -198
  557. data/ext/v8/upstream/2.3.3/src/allocation.h +0 -169
  558. data/ext/v8/upstream/2.3.3/src/api.cc +0 -4795
  559. data/ext/v8/upstream/2.3.3/src/api.h +0 -485
  560. data/ext/v8/upstream/2.3.3/src/apiutils.h +0 -69
  561. data/ext/v8/upstream/2.3.3/src/arguments.h +0 -96
  562. data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +0 -305
  563. data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +0 -2580
  564. data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +0 -1275
  565. data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +0 -1320
  566. data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +0 -48
  567. data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +0 -11398
  568. data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +0 -1102
  569. data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +0 -154
  570. data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +0 -388
  571. data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +0 -142
  572. data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +0 -309
  573. data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +0 -1459
  574. data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +0 -241
  575. data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +0 -123
  576. data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +0 -162
  577. data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +0 -3178
  578. data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +0 -2258
  579. data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +0 -164
  580. data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +0 -1892
  581. data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +0 -727
  582. data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +0 -1261
  583. data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +0 -266
  584. data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +0 -2822
  585. data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +0 -361
  586. data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +0 -2387
  587. data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +0 -834
  588. data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +0 -519
  589. data/ext/v8/upstream/2.3.3/src/array.js +0 -1127
  590. data/ext/v8/upstream/2.3.3/src/assembler.cc +0 -801
  591. data/ext/v8/upstream/2.3.3/src/assembler.h +0 -573
  592. data/ext/v8/upstream/2.3.3/src/ast-inl.h +0 -81
  593. data/ext/v8/upstream/2.3.3/src/ast.cc +0 -1152
  594. data/ext/v8/upstream/2.3.3/src/ast.h +0 -2106
  595. data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +0 -1819
  596. data/ext/v8/upstream/2.3.3/src/builtins.cc +0 -1529
  597. data/ext/v8/upstream/2.3.3/src/builtins.h +0 -263
  598. data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +0 -104
  599. data/ext/v8/upstream/2.3.3/src/cached-powers.h +0 -119
  600. data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +0 -86
  601. data/ext/v8/upstream/2.3.3/src/checks.cc +0 -100
  602. data/ext/v8/upstream/2.3.3/src/checks.h +0 -310
  603. data/ext/v8/upstream/2.3.3/src/circular-queue.cc +0 -121
  604. data/ext/v8/upstream/2.3.3/src/code-stubs.cc +0 -177
  605. data/ext/v8/upstream/2.3.3/src/code-stubs.h +0 -177
  606. data/ext/v8/upstream/2.3.3/src/codegen-inl.h +0 -60
  607. data/ext/v8/upstream/2.3.3/src/codegen.cc +0 -516
  608. data/ext/v8/upstream/2.3.3/src/codegen.h +0 -897
  609. data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +0 -562
  610. data/ext/v8/upstream/2.3.3/src/compilation-cache.h +0 -102
  611. data/ext/v8/upstream/2.3.3/src/compiler.cc +0 -654
  612. data/ext/v8/upstream/2.3.3/src/compiler.h +0 -299
  613. data/ext/v8/upstream/2.3.3/src/contexts.cc +0 -256
  614. data/ext/v8/upstream/2.3.3/src/contexts.h +0 -342
  615. data/ext/v8/upstream/2.3.3/src/conversions.cc +0 -1119
  616. data/ext/v8/upstream/2.3.3/src/conversions.h +0 -123
  617. data/ext/v8/upstream/2.3.3/src/counters.h +0 -239
  618. data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +0 -100
  619. data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +0 -538
  620. data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +0 -285
  621. data/ext/v8/upstream/2.3.3/src/d8-debug.cc +0 -356
  622. data/ext/v8/upstream/2.3.3/src/d8-debug.h +0 -155
  623. data/ext/v8/upstream/2.3.3/src/d8.cc +0 -783
  624. data/ext/v8/upstream/2.3.3/src/d8.h +0 -227
  625. data/ext/v8/upstream/2.3.3/src/d8.js +0 -1683
  626. data/ext/v8/upstream/2.3.3/src/data-flow.cc +0 -758
  627. data/ext/v8/upstream/2.3.3/src/data-flow.h +0 -278
  628. data/ext/v8/upstream/2.3.3/src/date.js +0 -1059
  629. data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +0 -123
  630. data/ext/v8/upstream/2.3.3/src/dateparser.h +0 -244
  631. data/ext/v8/upstream/2.3.3/src/debug-agent.cc +0 -427
  632. data/ext/v8/upstream/2.3.3/src/debug-agent.h +0 -129
  633. data/ext/v8/upstream/2.3.3/src/debug-debugger.js +0 -2227
  634. data/ext/v8/upstream/2.3.3/src/debug.cc +0 -3005
  635. data/ext/v8/upstream/2.3.3/src/debug.h +0 -993
  636. data/ext/v8/upstream/2.3.3/src/disassembler.cc +0 -312
  637. data/ext/v8/upstream/2.3.3/src/double.h +0 -169
  638. data/ext/v8/upstream/2.3.3/src/dtoa-config.c +0 -92
  639. data/ext/v8/upstream/2.3.3/src/dtoa.cc +0 -77
  640. data/ext/v8/upstream/2.3.3/src/dtoa.h +0 -81
  641. data/ext/v8/upstream/2.3.3/src/execution.cc +0 -809
  642. data/ext/v8/upstream/2.3.3/src/execution.h +0 -336
  643. data/ext/v8/upstream/2.3.3/src/factory.cc +0 -1003
  644. data/ext/v8/upstream/2.3.3/src/factory.h +0 -410
  645. data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +0 -746
  646. data/ext/v8/upstream/2.3.3/src/fast-codegen.h +0 -161
  647. data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +0 -505
  648. data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +0 -58
  649. data/ext/v8/upstream/2.3.3/src/flag-definitions.h +0 -455
  650. data/ext/v8/upstream/2.3.3/src/flags.cc +0 -551
  651. data/ext/v8/upstream/2.3.3/src/flags.h +0 -81
  652. data/ext/v8/upstream/2.3.3/src/flow-graph.cc +0 -763
  653. data/ext/v8/upstream/2.3.3/src/flow-graph.h +0 -180
  654. data/ext/v8/upstream/2.3.3/src/frame-element.h +0 -273
  655. data/ext/v8/upstream/2.3.3/src/frames-inl.h +0 -217
  656. data/ext/v8/upstream/2.3.3/src/frames.cc +0 -826
  657. data/ext/v8/upstream/2.3.3/src/frames.h +0 -682
  658. data/ext/v8/upstream/2.3.3/src/full-codegen.cc +0 -1443
  659. data/ext/v8/upstream/2.3.3/src/full-codegen.h +0 -548
  660. data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +0 -76
  661. data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +0 -135
  662. data/ext/v8/upstream/2.3.3/src/global-handles.cc +0 -520
  663. data/ext/v8/upstream/2.3.3/src/global-handles.h +0 -180
  664. data/ext/v8/upstream/2.3.3/src/globals.h +0 -669
  665. data/ext/v8/upstream/2.3.3/src/handles-inl.h +0 -76
  666. data/ext/v8/upstream/2.3.3/src/handles.cc +0 -825
  667. data/ext/v8/upstream/2.3.3/src/handles.h +0 -393
  668. data/ext/v8/upstream/2.3.3/src/hashmap.cc +0 -226
  669. data/ext/v8/upstream/2.3.3/src/hashmap.h +0 -120
  670. data/ext/v8/upstream/2.3.3/src/heap-inl.h +0 -493
  671. data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +0 -779
  672. data/ext/v8/upstream/2.3.3/src/heap-profiler.h +0 -323
  673. data/ext/v8/upstream/2.3.3/src/heap.cc +0 -4994
  674. data/ext/v8/upstream/2.3.3/src/heap.h +0 -1984
  675. data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +0 -360
  676. data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +0 -2600
  677. data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +0 -969
  678. data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +0 -1261
  679. data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +0 -13968
  680. data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +0 -1097
  681. data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +0 -83
  682. data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +0 -309
  683. data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +0 -1471
  684. data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +0 -954
  685. data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +0 -155
  686. data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +0 -115
  687. data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +0 -135
  688. data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +0 -3281
  689. data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +0 -1966
  690. data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +0 -1610
  691. data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +0 -610
  692. data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +0 -1247
  693. data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +0 -214
  694. data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +0 -62
  695. data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +0 -2750
  696. data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +0 -1334
  697. data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +0 -627
  698. data/ext/v8/upstream/2.3.3/src/ic-inl.h +0 -120
  699. data/ext/v8/upstream/2.3.3/src/ic.cc +0 -1827
  700. data/ext/v8/upstream/2.3.3/src/ic.h +0 -515
  701. data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +0 -646
  702. data/ext/v8/upstream/2.3.3/src/json.js +0 -268
  703. data/ext/v8/upstream/2.3.3/src/jsregexp.cc +0 -5283
  704. data/ext/v8/upstream/2.3.3/src/jsregexp.h +0 -1463
  705. data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +0 -429
  706. data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +0 -244
  707. data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +0 -110
  708. data/ext/v8/upstream/2.3.3/src/jump-target-light.h +0 -192
  709. data/ext/v8/upstream/2.3.3/src/list-inl.h +0 -166
  710. data/ext/v8/upstream/2.3.3/src/list.h +0 -159
  711. data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +0 -1057
  712. data/ext/v8/upstream/2.3.3/src/liveedit.cc +0 -1480
  713. data/ext/v8/upstream/2.3.3/src/liveedit.h +0 -170
  714. data/ext/v8/upstream/2.3.3/src/log-utils.cc +0 -497
  715. data/ext/v8/upstream/2.3.3/src/log-utils.h +0 -289
  716. data/ext/v8/upstream/2.3.3/src/log.cc +0 -1561
  717. data/ext/v8/upstream/2.3.3/src/log.h +0 -384
  718. data/ext/v8/upstream/2.3.3/src/macro-assembler.h +0 -86
  719. data/ext/v8/upstream/2.3.3/src/macros.py +0 -177
  720. data/ext/v8/upstream/2.3.3/src/mark-compact.cc +0 -2330
  721. data/ext/v8/upstream/2.3.3/src/mark-compact.h +0 -451
  722. data/ext/v8/upstream/2.3.3/src/math.js +0 -264
  723. data/ext/v8/upstream/2.3.3/src/memory.h +0 -74
  724. data/ext/v8/upstream/2.3.3/src/messages.cc +0 -183
  725. data/ext/v8/upstream/2.3.3/src/messages.h +0 -113
  726. data/ext/v8/upstream/2.3.3/src/messages.js +0 -982
  727. data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +0 -668
  728. data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +0 -205
  729. data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +0 -434
  730. data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +0 -131
  731. data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +0 -102
  732. data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +0 -220
  733. data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +0 -1651
  734. data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +0 -311
  735. data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +0 -403
  736. data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +0 -2380
  737. data/ext/v8/upstream/2.3.3/src/objects-debug.cc +0 -1366
  738. data/ext/v8/upstream/2.3.3/src/objects-inl.h +0 -3333
  739. data/ext/v8/upstream/2.3.3/src/objects.cc +0 -8820
  740. data/ext/v8/upstream/2.3.3/src/objects.h +0 -5373
  741. data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +0 -108
  742. data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +0 -77
  743. data/ext/v8/upstream/2.3.3/src/parser.cc +0 -5207
  744. data/ext/v8/upstream/2.3.3/src/parser.h +0 -197
  745. data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +0 -667
  746. data/ext/v8/upstream/2.3.3/src/platform-linux.cc +0 -862
  747. data/ext/v8/upstream/2.3.3/src/platform-macos.cc +0 -665
  748. data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +0 -454
  749. data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +0 -622
  750. data/ext/v8/upstream/2.3.3/src/platform-posix.cc +0 -362
  751. data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +0 -653
  752. data/ext/v8/upstream/2.3.3/src/platform-win32.cc +0 -1911
  753. data/ext/v8/upstream/2.3.3/src/platform.h +0 -577
  754. data/ext/v8/upstream/2.3.3/src/powers-ten.h +0 -2461
  755. data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +0 -1531
  756. data/ext/v8/upstream/2.3.3/src/prettyprinter.h +0 -221
  757. data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +0 -148
  758. data/ext/v8/upstream/2.3.3/src/profile-generator.cc +0 -1830
  759. data/ext/v8/upstream/2.3.3/src/profile-generator.h +0 -853
  760. data/ext/v8/upstream/2.3.3/src/property.cc +0 -96
  761. data/ext/v8/upstream/2.3.3/src/property.h +0 -315
  762. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +0 -464
  763. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +0 -141
  764. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +0 -356
  765. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +0 -103
  766. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +0 -261
  767. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +0 -228
  768. data/ext/v8/upstream/2.3.3/src/regexp.js +0 -549
  769. data/ext/v8/upstream/2.3.3/src/rewriter.cc +0 -1038
  770. data/ext/v8/upstream/2.3.3/src/rewriter.h +0 -54
  771. data/ext/v8/upstream/2.3.3/src/runtime.cc +0 -10599
  772. data/ext/v8/upstream/2.3.3/src/runtime.h +0 -459
  773. data/ext/v8/upstream/2.3.3/src/runtime.js +0 -629
  774. data/ext/v8/upstream/2.3.3/src/scanner.cc +0 -1346
  775. data/ext/v8/upstream/2.3.3/src/scanner.h +0 -503
  776. data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +0 -637
  777. data/ext/v8/upstream/2.3.3/src/scopeinfo.h +0 -233
  778. data/ext/v8/upstream/2.3.3/src/scopes.cc +0 -962
  779. data/ext/v8/upstream/2.3.3/src/scopes.h +0 -400
  780. data/ext/v8/upstream/2.3.3/src/serialize.cc +0 -1461
  781. data/ext/v8/upstream/2.3.3/src/serialize.h +0 -581
  782. data/ext/v8/upstream/2.3.3/src/spaces-inl.h +0 -483
  783. data/ext/v8/upstream/2.3.3/src/spaces.cc +0 -2901
  784. data/ext/v8/upstream/2.3.3/src/spaces.h +0 -2197
  785. data/ext/v8/upstream/2.3.3/src/string-stream.cc +0 -584
  786. data/ext/v8/upstream/2.3.3/src/string-stream.h +0 -189
  787. data/ext/v8/upstream/2.3.3/src/string.js +0 -1006
  788. data/ext/v8/upstream/2.3.3/src/stub-cache.cc +0 -1379
  789. data/ext/v8/upstream/2.3.3/src/stub-cache.h +0 -756
  790. data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +0 -15
  791. data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +0 -3334
  792. data/ext/v8/upstream/2.3.3/src/token.cc +0 -56
  793. data/ext/v8/upstream/2.3.3/src/token.h +0 -270
  794. data/ext/v8/upstream/2.3.3/src/top.cc +0 -1067
  795. data/ext/v8/upstream/2.3.3/src/top.h +0 -463
  796. data/ext/v8/upstream/2.3.3/src/type-info.cc +0 -53
  797. data/ext/v8/upstream/2.3.3/src/type-info.h +0 -244
  798. data/ext/v8/upstream/2.3.3/src/unicode-inl.h +0 -238
  799. data/ext/v8/upstream/2.3.3/src/unicode.cc +0 -749
  800. data/ext/v8/upstream/2.3.3/src/unicode.h +0 -279
  801. data/ext/v8/upstream/2.3.3/src/uri.js +0 -415
  802. data/ext/v8/upstream/2.3.3/src/utils.cc +0 -285
  803. data/ext/v8/upstream/2.3.3/src/utils.h +0 -745
  804. data/ext/v8/upstream/2.3.3/src/v8-counters.h +0 -250
  805. data/ext/v8/upstream/2.3.3/src/v8.cc +0 -228
  806. data/ext/v8/upstream/2.3.3/src/v8.h +0 -121
  807. data/ext/v8/upstream/2.3.3/src/v8natives.js +0 -1188
  808. data/ext/v8/upstream/2.3.3/src/v8threads.cc +0 -461
  809. data/ext/v8/upstream/2.3.3/src/v8threads.h +0 -159
  810. data/ext/v8/upstream/2.3.3/src/variables.cc +0 -119
  811. data/ext/v8/upstream/2.3.3/src/variables.h +0 -205
  812. data/ext/v8/upstream/2.3.3/src/version.cc +0 -88
  813. data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +0 -192
  814. data/ext/v8/upstream/2.3.3/src/virtual-frame.h +0 -46
  815. data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +0 -137
  816. data/ext/v8/upstream/2.3.3/src/vm-state.cc +0 -39
  817. data/ext/v8/upstream/2.3.3/src/vm-state.h +0 -77
  818. data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +0 -400
  819. data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +0 -2963
  820. data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +0 -1438
  821. data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +0 -1296
  822. data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +0 -46
  823. data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +0 -12491
  824. data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +0 -1090
  825. data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +0 -83
  826. data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +0 -267
  827. data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +0 -1696
  828. data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +0 -250
  829. data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +0 -113
  830. data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +0 -125
  831. data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +0 -3270
  832. data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +0 -1907
  833. data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +0 -437
  834. data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +0 -2793
  835. data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +0 -916
  836. data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +0 -1374
  837. data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +0 -277
  838. data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +0 -63
  839. data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +0 -2560
  840. data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +0 -1264
  841. data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +0 -590
  842. data/ext/v8/upstream/2.3.3/src/zone-inl.h +0 -82
  843. data/ext/v8/upstream/2.3.3/src/zone.cc +0 -194
  844. data/ext/v8/upstream/2.3.3/src/zone.h +0 -221
  845. data/ext/v8/upstream/2.3.3/tools/codemap.js +0 -270
  846. data/ext/v8/upstream/2.3.3/tools/csvparser.js +0 -83
  847. data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +0 -317
  848. data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +0 -749
  849. data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +0 -78
  850. data/ext/v8/upstream/2.3.3/tools/logreader.js +0 -338
  851. data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +0 -7
  852. data/ext/v8/upstream/2.3.3/tools/oprofile/common +0 -19
  853. data/ext/v8/upstream/2.3.3/tools/oprofile/dump +0 -7
  854. data/ext/v8/upstream/2.3.3/tools/oprofile/report +0 -7
  855. data/ext/v8/upstream/2.3.3/tools/oprofile/reset +0 -7
  856. data/ext/v8/upstream/2.3.3/tools/oprofile/run +0 -14
  857. data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +0 -7
  858. data/ext/v8/upstream/2.3.3/tools/oprofile/start +0 -7
  859. data/ext/v8/upstream/2.3.3/tools/presubmit.py +0 -299
  860. data/ext/v8/upstream/2.3.3/tools/profile.js +0 -691
  861. data/ext/v8/upstream/2.3.3/tools/profile_view.js +0 -224
  862. data/ext/v8/upstream/2.3.3/tools/splaytree.js +0 -322
  863. data/ext/v8/upstream/2.3.3/tools/splaytree.py +0 -226
  864. data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +0 -862
  865. data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +0 -571
  866. data/ext/v8/upstream/2.3.3/tools/utils.py +0 -88
  867. data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +0 -71
  868. data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +0 -34
  869. data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +0 -17
  870. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +0 -1143
  871. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +0 -1115
  872. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +0 -1096
  873. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +0 -145
  874. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +0 -145
  875. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +0 -161
  876. data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +0 -29
  877. data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +0 -137
@@ -1,1275 +0,0 @@
1
- // Copyright (c) 1994-2006 Sun Microsystems Inc.
2
- // All Rights Reserved.
3
- //
4
- // Redistribution and use in source and binary forms, with or without
5
- // modification, are permitted provided that the following conditions
6
- // are met:
7
- //
8
- // - Redistributions of source code must retain the above copyright notice,
9
- // this list of conditions and the following disclaimer.
10
- //
11
- // - Redistribution in binary form must reproduce the above copyright
12
- // notice, this list of conditions and the following disclaimer in the
13
- // documentation and/or other materials provided with the
14
- // distribution.
15
- //
16
- // - Neither the name of Sun Microsystems or the names of contributors may
17
- // be used to endorse or promote products derived from this software without
18
- // specific prior written permission.
19
- //
20
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23
- // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24
- // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25
- // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
- // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
- // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28
- // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29
- // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
- // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
31
- // OF THE POSSIBILITY OF SUCH DAMAGE.
32
-
33
- // The original source code covered by the above license above has been
34
- // modified significantly by Google Inc.
35
- // Copyright 2010 the V8 project authors. All rights reserved.
36
-
37
- // A light-weight ARM Assembler
38
- // Generates user mode instructions for the ARM architecture up to version 5
39
-
40
- #ifndef V8_ARM_ASSEMBLER_ARM_H_
41
- #define V8_ARM_ASSEMBLER_ARM_H_
42
- #include <stdio.h>
43
- #include "assembler.h"
44
- #include "serialize.h"
45
-
46
- namespace v8 {
47
- namespace internal {
48
-
49
- // CPU Registers.
50
- //
51
- // 1) We would prefer to use an enum, but enum values are assignment-
52
- // compatible with int, which has caused code-generation bugs.
53
- //
54
- // 2) We would prefer to use a class instead of a struct but we don't like
55
- // the register initialization to depend on the particular initialization
56
- // order (which appears to be different on OS X, Linux, and Windows for the
57
- // installed versions of C++ we tried). Using a struct permits C-style
58
- // "initialization". Also, the Register objects cannot be const as this
59
- // forces initialization stubs in MSVC, making us dependent on initialization
60
- // order.
61
- //
62
- // 3) By not using an enum, we are possibly preventing the compiler from
63
- // doing certain constant folds, which may significantly reduce the
64
- // code generated for some assembly instructions (because they boil down
65
- // to a few constants). If this is a problem, we could change the code
66
- // such that we use an enum in optimized mode, and the struct in debug
67
- // mode. This way we get the compile-time error checking in debug mode
68
- // and best performance in optimized code.
69
- //
70
- // Core register
71
- struct Register {
72
- bool is_valid() const { return 0 <= code_ && code_ < 16; }
73
- bool is(Register reg) const { return code_ == reg.code_; }
74
- int code() const {
75
- ASSERT(is_valid());
76
- return code_;
77
- }
78
- int bit() const {
79
- ASSERT(is_valid());
80
- return 1 << code_;
81
- }
82
-
83
- void set_code(int code) {
84
- code_ = code;
85
- ASSERT(is_valid());
86
- }
87
-
88
- // Unfortunately we can't make this private in a struct.
89
- int code_;
90
- };
91
-
92
- const Register no_reg = { -1 };
93
-
94
- const Register r0 = { 0 };
95
- const Register r1 = { 1 };
96
- const Register r2 = { 2 };
97
- const Register r3 = { 3 };
98
- const Register r4 = { 4 };
99
- const Register r5 = { 5 };
100
- const Register r6 = { 6 };
101
- const Register r7 = { 7 };
102
- const Register r8 = { 8 }; // Used as context register.
103
- const Register r9 = { 9 };
104
- const Register r10 = { 10 }; // Used as roots register.
105
- const Register fp = { 11 };
106
- const Register ip = { 12 };
107
- const Register sp = { 13 };
108
- const Register lr = { 14 };
109
- const Register pc = { 15 };
110
-
111
- // Single word VFP register.
112
- struct SwVfpRegister {
113
- bool is_valid() const { return 0 <= code_ && code_ < 32; }
114
- bool is(SwVfpRegister reg) const { return code_ == reg.code_; }
115
- int code() const {
116
- ASSERT(is_valid());
117
- return code_;
118
- }
119
- int bit() const {
120
- ASSERT(is_valid());
121
- return 1 << code_;
122
- }
123
-
124
- int code_;
125
- };
126
-
127
-
128
- // Double word VFP register.
129
- struct DwVfpRegister {
130
- // Supporting d0 to d15, can be later extended to d31.
131
- bool is_valid() const { return 0 <= code_ && code_ < 16; }
132
- bool is(DwVfpRegister reg) const { return code_ == reg.code_; }
133
- SwVfpRegister low() const {
134
- SwVfpRegister reg;
135
- reg.code_ = code_ * 2;
136
-
137
- ASSERT(reg.is_valid());
138
- return reg;
139
- }
140
- SwVfpRegister high() const {
141
- SwVfpRegister reg;
142
- reg.code_ = (code_ * 2) + 1;
143
-
144
- ASSERT(reg.is_valid());
145
- return reg;
146
- }
147
- int code() const {
148
- ASSERT(is_valid());
149
- return code_;
150
- }
151
- int bit() const {
152
- ASSERT(is_valid());
153
- return 1 << code_;
154
- }
155
-
156
- int code_;
157
- };
158
-
159
-
160
- // Support for the VFP registers s0 to s31 (d0 to d15).
161
- // Note that "s(N):s(N+1)" is the same as "d(N/2)".
162
- const SwVfpRegister s0 = { 0 };
163
- const SwVfpRegister s1 = { 1 };
164
- const SwVfpRegister s2 = { 2 };
165
- const SwVfpRegister s3 = { 3 };
166
- const SwVfpRegister s4 = { 4 };
167
- const SwVfpRegister s5 = { 5 };
168
- const SwVfpRegister s6 = { 6 };
169
- const SwVfpRegister s7 = { 7 };
170
- const SwVfpRegister s8 = { 8 };
171
- const SwVfpRegister s9 = { 9 };
172
- const SwVfpRegister s10 = { 10 };
173
- const SwVfpRegister s11 = { 11 };
174
- const SwVfpRegister s12 = { 12 };
175
- const SwVfpRegister s13 = { 13 };
176
- const SwVfpRegister s14 = { 14 };
177
- const SwVfpRegister s15 = { 15 };
178
- const SwVfpRegister s16 = { 16 };
179
- const SwVfpRegister s17 = { 17 };
180
- const SwVfpRegister s18 = { 18 };
181
- const SwVfpRegister s19 = { 19 };
182
- const SwVfpRegister s20 = { 20 };
183
- const SwVfpRegister s21 = { 21 };
184
- const SwVfpRegister s22 = { 22 };
185
- const SwVfpRegister s23 = { 23 };
186
- const SwVfpRegister s24 = { 24 };
187
- const SwVfpRegister s25 = { 25 };
188
- const SwVfpRegister s26 = { 26 };
189
- const SwVfpRegister s27 = { 27 };
190
- const SwVfpRegister s28 = { 28 };
191
- const SwVfpRegister s29 = { 29 };
192
- const SwVfpRegister s30 = { 30 };
193
- const SwVfpRegister s31 = { 31 };
194
-
195
- const DwVfpRegister d0 = { 0 };
196
- const DwVfpRegister d1 = { 1 };
197
- const DwVfpRegister d2 = { 2 };
198
- const DwVfpRegister d3 = { 3 };
199
- const DwVfpRegister d4 = { 4 };
200
- const DwVfpRegister d5 = { 5 };
201
- const DwVfpRegister d6 = { 6 };
202
- const DwVfpRegister d7 = { 7 };
203
- const DwVfpRegister d8 = { 8 };
204
- const DwVfpRegister d9 = { 9 };
205
- const DwVfpRegister d10 = { 10 };
206
- const DwVfpRegister d11 = { 11 };
207
- const DwVfpRegister d12 = { 12 };
208
- const DwVfpRegister d13 = { 13 };
209
- const DwVfpRegister d14 = { 14 };
210
- const DwVfpRegister d15 = { 15 };
211
-
212
-
213
- // Coprocessor register
214
- struct CRegister {
215
- bool is_valid() const { return 0 <= code_ && code_ < 16; }
216
- bool is(CRegister creg) const { return code_ == creg.code_; }
217
- int code() const {
218
- ASSERT(is_valid());
219
- return code_;
220
- }
221
- int bit() const {
222
- ASSERT(is_valid());
223
- return 1 << code_;
224
- }
225
-
226
- // Unfortunately we can't make this private in a struct.
227
- int code_;
228
- };
229
-
230
-
231
- const CRegister no_creg = { -1 };
232
-
233
- const CRegister cr0 = { 0 };
234
- const CRegister cr1 = { 1 };
235
- const CRegister cr2 = { 2 };
236
- const CRegister cr3 = { 3 };
237
- const CRegister cr4 = { 4 };
238
- const CRegister cr5 = { 5 };
239
- const CRegister cr6 = { 6 };
240
- const CRegister cr7 = { 7 };
241
- const CRegister cr8 = { 8 };
242
- const CRegister cr9 = { 9 };
243
- const CRegister cr10 = { 10 };
244
- const CRegister cr11 = { 11 };
245
- const CRegister cr12 = { 12 };
246
- const CRegister cr13 = { 13 };
247
- const CRegister cr14 = { 14 };
248
- const CRegister cr15 = { 15 };
249
-
250
-
251
- // Coprocessor number
252
- enum Coprocessor {
253
- p0 = 0,
254
- p1 = 1,
255
- p2 = 2,
256
- p3 = 3,
257
- p4 = 4,
258
- p5 = 5,
259
- p6 = 6,
260
- p7 = 7,
261
- p8 = 8,
262
- p9 = 9,
263
- p10 = 10,
264
- p11 = 11,
265
- p12 = 12,
266
- p13 = 13,
267
- p14 = 14,
268
- p15 = 15
269
- };
270
-
271
-
272
- // Condition field in instructions.
273
- enum Condition {
274
- eq = 0 << 28, // Z set equal.
275
- ne = 1 << 28, // Z clear not equal.
276
- nz = 1 << 28, // Z clear not zero.
277
- cs = 2 << 28, // C set carry set.
278
- hs = 2 << 28, // C set unsigned higher or same.
279
- cc = 3 << 28, // C clear carry clear.
280
- lo = 3 << 28, // C clear unsigned lower.
281
- mi = 4 << 28, // N set negative.
282
- pl = 5 << 28, // N clear positive or zero.
283
- vs = 6 << 28, // V set overflow.
284
- vc = 7 << 28, // V clear no overflow.
285
- hi = 8 << 28, // C set, Z clear unsigned higher.
286
- ls = 9 << 28, // C clear or Z set unsigned lower or same.
287
- ge = 10 << 28, // N == V greater or equal.
288
- lt = 11 << 28, // N != V less than.
289
- gt = 12 << 28, // Z clear, N == V greater than.
290
- le = 13 << 28, // Z set or N != V less then or equal
291
- al = 14 << 28 // always.
292
- };
293
-
294
-
295
- // Returns the equivalent of !cc.
296
- inline Condition NegateCondition(Condition cc) {
297
- ASSERT(cc != al);
298
- return static_cast<Condition>(cc ^ ne);
299
- }
300
-
301
-
302
- // Corresponds to transposing the operands of a comparison.
303
- inline Condition ReverseCondition(Condition cc) {
304
- switch (cc) {
305
- case lo:
306
- return hi;
307
- case hi:
308
- return lo;
309
- case hs:
310
- return ls;
311
- case ls:
312
- return hs;
313
- case lt:
314
- return gt;
315
- case gt:
316
- return lt;
317
- case ge:
318
- return le;
319
- case le:
320
- return ge;
321
- default:
322
- return cc;
323
- };
324
- }
325
-
326
-
327
- // Branch hints are not used on the ARM. They are defined so that they can
328
- // appear in shared function signatures, but will be ignored in ARM
329
- // implementations.
330
- enum Hint { no_hint };
331
-
332
- // Hints are not used on the arm. Negating is trivial.
333
- inline Hint NegateHint(Hint ignored) { return no_hint; }
334
-
335
-
336
- // -----------------------------------------------------------------------------
337
- // Addressing modes and instruction variants
338
-
339
- // Shifter operand shift operation
340
- enum ShiftOp {
341
- LSL = 0 << 5,
342
- LSR = 1 << 5,
343
- ASR = 2 << 5,
344
- ROR = 3 << 5,
345
- RRX = -1
346
- };
347
-
348
-
349
- // Condition code updating mode
350
- enum SBit {
351
- SetCC = 1 << 20, // set condition code
352
- LeaveCC = 0 << 20 // leave condition code unchanged
353
- };
354
-
355
-
356
- // Status register selection
357
- enum SRegister {
358
- CPSR = 0 << 22,
359
- SPSR = 1 << 22
360
- };
361
-
362
-
363
- // Status register fields
364
- enum SRegisterField {
365
- CPSR_c = CPSR | 1 << 16,
366
- CPSR_x = CPSR | 1 << 17,
367
- CPSR_s = CPSR | 1 << 18,
368
- CPSR_f = CPSR | 1 << 19,
369
- SPSR_c = SPSR | 1 << 16,
370
- SPSR_x = SPSR | 1 << 17,
371
- SPSR_s = SPSR | 1 << 18,
372
- SPSR_f = SPSR | 1 << 19
373
- };
374
-
375
- // Status register field mask (or'ed SRegisterField enum values)
376
- typedef uint32_t SRegisterFieldMask;
377
-
378
-
379
- // Memory operand addressing mode
380
- enum AddrMode {
381
- // bit encoding P U W
382
- Offset = (8|4|0) << 21, // offset (without writeback to base)
383
- PreIndex = (8|4|1) << 21, // pre-indexed addressing with writeback
384
- PostIndex = (0|4|0) << 21, // post-indexed addressing with writeback
385
- NegOffset = (8|0|0) << 21, // negative offset (without writeback to base)
386
- NegPreIndex = (8|0|1) << 21, // negative pre-indexed with writeback
387
- NegPostIndex = (0|0|0) << 21 // negative post-indexed with writeback
388
- };
389
-
390
-
391
- // Load/store multiple addressing mode
392
- enum BlockAddrMode {
393
- // bit encoding P U W
394
- da = (0|0|0) << 21, // decrement after
395
- ia = (0|4|0) << 21, // increment after
396
- db = (8|0|0) << 21, // decrement before
397
- ib = (8|4|0) << 21, // increment before
398
- da_w = (0|0|1) << 21, // decrement after with writeback to base
399
- ia_w = (0|4|1) << 21, // increment after with writeback to base
400
- db_w = (8|0|1) << 21, // decrement before with writeback to base
401
- ib_w = (8|4|1) << 21 // increment before with writeback to base
402
- };
403
-
404
-
405
- // Coprocessor load/store operand size
406
- enum LFlag {
407
- Long = 1 << 22, // long load/store coprocessor
408
- Short = 0 << 22 // short load/store coprocessor
409
- };
410
-
411
-
412
- // -----------------------------------------------------------------------------
413
- // Machine instruction Operands
414
-
415
- // Class Operand represents a shifter operand in data processing instructions
416
- class Operand BASE_EMBEDDED {
417
- public:
418
- // immediate
419
- INLINE(explicit Operand(int32_t immediate,
420
- RelocInfo::Mode rmode = RelocInfo::NONE));
421
- INLINE(explicit Operand(const ExternalReference& f));
422
- INLINE(explicit Operand(const char* s));
423
- explicit Operand(Handle<Object> handle);
424
- INLINE(explicit Operand(Smi* value));
425
-
426
- // rm
427
- INLINE(explicit Operand(Register rm));
428
-
429
- // rm <shift_op> shift_imm
430
- explicit Operand(Register rm, ShiftOp shift_op, int shift_imm);
431
-
432
- // rm <shift_op> rs
433
- explicit Operand(Register rm, ShiftOp shift_op, Register rs);
434
-
435
- // Return true if this is a register operand.
436
- INLINE(bool is_reg() const);
437
-
438
- // Return true of this operand fits in one instruction so that no
439
- // 2-instruction solution with a load into the ip register is necessary.
440
- bool is_single_instruction() const;
441
-
442
- inline int32_t immediate() const {
443
- ASSERT(!rm_.is_valid());
444
- return imm32_;
445
- }
446
-
447
- Register rm() const { return rm_; }
448
- Register rs() const { return rs_; }
449
- ShiftOp shift_op() const { return shift_op_; }
450
-
451
- private:
452
- Register rm_;
453
- Register rs_;
454
- ShiftOp shift_op_;
455
- int shift_imm_; // valid if rm_ != no_reg && rs_ == no_reg
456
- int32_t imm32_; // valid if rm_ == no_reg
457
- RelocInfo::Mode rmode_;
458
-
459
- friend class Assembler;
460
- };
461
-
462
-
463
- // Class MemOperand represents a memory operand in load and store instructions
464
- class MemOperand BASE_EMBEDDED {
465
- public:
466
- // [rn +/- offset] Offset/NegOffset
467
- // [rn +/- offset]! PreIndex/NegPreIndex
468
- // [rn], +/- offset PostIndex/NegPostIndex
469
- // offset is any signed 32-bit value; offset is first loaded to register ip if
470
- // it does not fit the addressing mode (12-bit unsigned and sign bit)
471
- explicit MemOperand(Register rn, int32_t offset = 0, AddrMode am = Offset);
472
-
473
- // [rn +/- rm] Offset/NegOffset
474
- // [rn +/- rm]! PreIndex/NegPreIndex
475
- // [rn], +/- rm PostIndex/NegPostIndex
476
- explicit MemOperand(Register rn, Register rm, AddrMode am = Offset);
477
-
478
- // [rn +/- rm <shift_op> shift_imm] Offset/NegOffset
479
- // [rn +/- rm <shift_op> shift_imm]! PreIndex/NegPreIndex
480
- // [rn], +/- rm <shift_op> shift_imm PostIndex/NegPostIndex
481
- explicit MemOperand(Register rn, Register rm,
482
- ShiftOp shift_op, int shift_imm, AddrMode am = Offset);
483
-
484
- void set_offset(int32_t offset) {
485
- ASSERT(rm_.is(no_reg));
486
- offset_ = offset;
487
- }
488
-
489
- uint32_t offset() {
490
- ASSERT(rm_.is(no_reg));
491
- return offset_;
492
- }
493
-
494
- Register rn() const { return rn_; }
495
- Register rm() const { return rm_; }
496
-
497
- private:
498
- Register rn_; // base
499
- Register rm_; // register offset
500
- int32_t offset_; // valid if rm_ == no_reg
501
- ShiftOp shift_op_;
502
- int shift_imm_; // valid if rm_ != no_reg && rs_ == no_reg
503
- AddrMode am_; // bits P, U, and W
504
-
505
- friend class Assembler;
506
- };
507
-
508
- // CpuFeatures keeps track of which features are supported by the target CPU.
509
- // Supported features must be enabled by a Scope before use.
510
- class CpuFeatures : public AllStatic {
511
- public:
512
- // Detect features of the target CPU. Set safe defaults if the serializer
513
- // is enabled (snapshots must be portable).
514
- static void Probe();
515
-
516
- // Check whether a feature is supported by the target CPU.
517
- static bool IsSupported(CpuFeature f) {
518
- if (f == VFP3 && !FLAG_enable_vfp3) return false;
519
- return (supported_ & (1u << f)) != 0;
520
- }
521
-
522
- // Check whether a feature is currently enabled.
523
- static bool IsEnabled(CpuFeature f) {
524
- return (enabled_ & (1u << f)) != 0;
525
- }
526
-
527
- // Enable a specified feature within a scope.
528
- class Scope BASE_EMBEDDED {
529
- #ifdef DEBUG
530
- public:
531
- explicit Scope(CpuFeature f) {
532
- ASSERT(CpuFeatures::IsSupported(f));
533
- ASSERT(!Serializer::enabled() ||
534
- (found_by_runtime_probing_ & (1u << f)) == 0);
535
- old_enabled_ = CpuFeatures::enabled_;
536
- CpuFeatures::enabled_ |= 1u << f;
537
- }
538
- ~Scope() { CpuFeatures::enabled_ = old_enabled_; }
539
- private:
540
- unsigned old_enabled_;
541
- #else
542
- public:
543
- explicit Scope(CpuFeature f) {}
544
- #endif
545
- };
546
-
547
- private:
548
- static unsigned supported_;
549
- static unsigned enabled_;
550
- static unsigned found_by_runtime_probing_;
551
- };
552
-
553
-
554
- typedef int32_t Instr;
555
-
556
-
557
- extern const Instr kMovLrPc;
558
- extern const Instr kLdrPCMask;
559
- extern const Instr kLdrPCPattern;
560
- extern const Instr kBlxRegMask;
561
- extern const Instr kBlxRegPattern;
562
-
563
- extern const Instr kMovMvnMask;
564
- extern const Instr kMovMvnPattern;
565
- extern const Instr kMovMvnFlip;
566
-
567
- extern const Instr kMovLeaveCCMask;
568
- extern const Instr kMovLeaveCCPattern;
569
- extern const Instr kMovwMask;
570
- extern const Instr kMovwPattern;
571
- extern const Instr kMovwLeaveCCFlip;
572
-
573
- extern const Instr kCmpCmnMask;
574
- extern const Instr kCmpCmnPattern;
575
- extern const Instr kCmpCmnFlip;
576
-
577
- extern const Instr kALUMask;
578
- extern const Instr kAddPattern;
579
- extern const Instr kSubPattern;
580
- extern const Instr kAndPattern;
581
- extern const Instr kBicPattern;
582
- extern const Instr kAddSubFlip;
583
- extern const Instr kAndBicFlip;
584
-
585
- class Assembler : public Malloced {
586
- public:
587
- // Create an assembler. Instructions and relocation information are emitted
588
- // into a buffer, with the instructions starting from the beginning and the
589
- // relocation information starting from the end of the buffer. See CodeDesc
590
- // for a detailed comment on the layout (globals.h).
591
- //
592
- // If the provided buffer is NULL, the assembler allocates and grows its own
593
- // buffer, and buffer_size determines the initial buffer size. The buffer is
594
- // owned by the assembler and deallocated upon destruction of the assembler.
595
- //
596
- // If the provided buffer is not NULL, the assembler uses the provided buffer
597
- // for code generation and assumes its size to be buffer_size. If the buffer
598
- // is too small, a fatal error occurs. No deallocation of the buffer is done
599
- // upon destruction of the assembler.
600
- Assembler(void* buffer, int buffer_size);
601
- ~Assembler();
602
-
603
- // GetCode emits any pending (non-emitted) code and fills the descriptor
604
- // desc. GetCode() is idempotent; it returns the same result if no other
605
- // Assembler functions are invoked in between GetCode() calls.
606
- void GetCode(CodeDesc* desc);
607
-
608
- // Label operations & relative jumps (PPUM Appendix D)
609
- //
610
- // Takes a branch opcode (cc) and a label (L) and generates
611
- // either a backward branch or a forward branch and links it
612
- // to the label fixup chain. Usage:
613
- //
614
- // Label L; // unbound label
615
- // j(cc, &L); // forward branch to unbound label
616
- // bind(&L); // bind label to the current pc
617
- // j(cc, &L); // backward branch to bound label
618
- // bind(&L); // illegal: a label may be bound only once
619
- //
620
- // Note: The same Label can be used for forward and backward branches
621
- // but it may be bound only once.
622
-
623
- void bind(Label* L); // binds an unbound label L to the current code position
624
-
625
- // Returns the branch offset to the given label from the current code position
626
- // Links the label to the current position if it is still unbound
627
- // Manages the jump elimination optimization if the second parameter is true.
628
- int branch_offset(Label* L, bool jump_elimination_allowed);
629
-
630
- // Puts a labels target address at the given position.
631
- // The high 8 bits are set to zero.
632
- void label_at_put(Label* L, int at_offset);
633
-
634
- // Return the address in the constant pool of the code target address used by
635
- // the branch/call instruction at pc.
636
- INLINE(static Address target_address_address_at(Address pc));
637
-
638
- // Read/Modify the code target address in the branch/call instruction at pc.
639
- INLINE(static Address target_address_at(Address pc));
640
- INLINE(static void set_target_address_at(Address pc, Address target));
641
-
642
- // This sets the branch destination (which is in the constant pool on ARM).
643
- // This is for calls and branches within generated code.
644
- inline static void set_target_at(Address constant_pool_entry, Address target);
645
-
646
- // This sets the branch destination (which is in the constant pool on ARM).
647
- // This is for calls and branches to runtime code.
648
- inline static void set_external_target_at(Address constant_pool_entry,
649
- Address target) {
650
- set_target_at(constant_pool_entry, target);
651
- }
652
-
653
- // Here we are patching the address in the constant pool, not the actual call
654
- // instruction. The address in the constant pool is the same size as a
655
- // pointer.
656
- static const int kCallTargetSize = kPointerSize;
657
- static const int kExternalTargetSize = kPointerSize;
658
-
659
- // Size of an instruction.
660
- static const int kInstrSize = sizeof(Instr);
661
-
662
- // Distance between the instruction referring to the address of the call
663
- // target and the return address.
664
- #ifdef USE_BLX
665
- // Call sequence is:
666
- // ldr ip, [pc, #...] @ call address
667
- // blx ip
668
- // @ return address
669
- static const int kCallTargetAddressOffset = 2 * kInstrSize;
670
- #else
671
- // Call sequence is:
672
- // mov lr, pc
673
- // ldr pc, [pc, #...] @ call address
674
- // @ return address
675
- static const int kCallTargetAddressOffset = kInstrSize;
676
- #endif
677
-
678
- // Distance between start of patched return sequence and the emitted address
679
- // to jump to.
680
- #ifdef USE_BLX
681
- // Patched return sequence is:
682
- // ldr ip, [pc, #0] @ emited address and start
683
- // blx ip
684
- static const int kPatchReturnSequenceAddressOffset = 0 * kInstrSize;
685
- #else
686
- // Patched return sequence is:
687
- // mov lr, pc @ start of sequence
688
- // ldr pc, [pc, #-4] @ emited address
689
- static const int kPatchReturnSequenceAddressOffset = kInstrSize;
690
- #endif
691
-
692
- // Distance between start of patched debug break slot and the emitted address
693
- // to jump to.
694
- #ifdef USE_BLX
695
- // Patched debug break slot code is:
696
- // ldr ip, [pc, #0] @ emited address and start
697
- // blx ip
698
- static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize;
699
- #else
700
- // Patched debug break slot code is:
701
- // mov lr, pc @ start of sequence
702
- // ldr pc, [pc, #-4] @ emited address
703
- static const int kPatchDebugBreakSlotAddressOffset = kInstrSize;
704
- #endif
705
-
706
- // Difference between address of current opcode and value read from pc
707
- // register.
708
- static const int kPcLoadDelta = 8;
709
-
710
- static const int kJSReturnSequenceInstructions = 4;
711
- static const int kDebugBreakSlotInstructions = 3;
712
- static const int kDebugBreakSlotLength =
713
- kDebugBreakSlotInstructions * kInstrSize;
714
-
715
- // ---------------------------------------------------------------------------
716
- // Code generation
717
-
718
- // Insert the smallest number of nop instructions
719
- // possible to align the pc offset to a multiple
720
- // of m. m must be a power of 2 (>= 4).
721
- void Align(int m);
722
- // Aligns code to something that's optimal for a jump target for the platform.
723
- void CodeTargetAlign();
724
-
725
- // Branch instructions
726
- void b(int branch_offset, Condition cond = al);
727
- void bl(int branch_offset, Condition cond = al);
728
- void blx(int branch_offset); // v5 and above
729
- void blx(Register target, Condition cond = al); // v5 and above
730
- void bx(Register target, Condition cond = al); // v5 and above, plus v4t
731
-
732
- // Convenience branch instructions using labels
733
- void b(Label* L, Condition cond = al) {
734
- b(branch_offset(L, cond == al), cond);
735
- }
736
- void b(Condition cond, Label* L) { b(branch_offset(L, cond == al), cond); }
737
- void bl(Label* L, Condition cond = al) { bl(branch_offset(L, false), cond); }
738
- void bl(Condition cond, Label* L) { bl(branch_offset(L, false), cond); }
739
- void blx(Label* L) { blx(branch_offset(L, false)); } // v5 and above
740
-
741
- // Data-processing instructions
742
-
743
- void and_(Register dst, Register src1, const Operand& src2,
744
- SBit s = LeaveCC, Condition cond = al);
745
-
746
- void eor(Register dst, Register src1, const Operand& src2,
747
- SBit s = LeaveCC, Condition cond = al);
748
-
749
- void sub(Register dst, Register src1, const Operand& src2,
750
- SBit s = LeaveCC, Condition cond = al);
751
- void sub(Register dst, Register src1, Register src2,
752
- SBit s = LeaveCC, Condition cond = al) {
753
- sub(dst, src1, Operand(src2), s, cond);
754
- }
755
-
756
- void rsb(Register dst, Register src1, const Operand& src2,
757
- SBit s = LeaveCC, Condition cond = al);
758
-
759
- void add(Register dst, Register src1, const Operand& src2,
760
- SBit s = LeaveCC, Condition cond = al);
761
- void add(Register dst, Register src1, Register src2,
762
- SBit s = LeaveCC, Condition cond = al) {
763
- add(dst, src1, Operand(src2), s, cond);
764
- }
765
-
766
- void adc(Register dst, Register src1, const Operand& src2,
767
- SBit s = LeaveCC, Condition cond = al);
768
-
769
- void sbc(Register dst, Register src1, const Operand& src2,
770
- SBit s = LeaveCC, Condition cond = al);
771
-
772
- void rsc(Register dst, Register src1, const Operand& src2,
773
- SBit s = LeaveCC, Condition cond = al);
774
-
775
- void tst(Register src1, const Operand& src2, Condition cond = al);
776
- void tst(Register src1, Register src2, Condition cond = al) {
777
- tst(src1, Operand(src2), cond);
778
- }
779
-
780
- void teq(Register src1, const Operand& src2, Condition cond = al);
781
-
782
- void cmp(Register src1, const Operand& src2, Condition cond = al);
783
- void cmp(Register src1, Register src2, Condition cond = al) {
784
- cmp(src1, Operand(src2), cond);
785
- }
786
-
787
- void cmn(Register src1, const Operand& src2, Condition cond = al);
788
-
789
- void orr(Register dst, Register src1, const Operand& src2,
790
- SBit s = LeaveCC, Condition cond = al);
791
- void orr(Register dst, Register src1, Register src2,
792
- SBit s = LeaveCC, Condition cond = al) {
793
- orr(dst, src1, Operand(src2), s, cond);
794
- }
795
-
796
- void mov(Register dst, const Operand& src,
797
- SBit s = LeaveCC, Condition cond = al);
798
- void mov(Register dst, Register src, SBit s = LeaveCC, Condition cond = al) {
799
- mov(dst, Operand(src), s, cond);
800
- }
801
-
802
- // ARMv7 instructions for loading a 32 bit immediate in two instructions.
803
- // This may actually emit a different mov instruction, but on an ARMv7 it
804
- // is guaranteed to only emit one instruction.
805
- void movw(Register reg, uint32_t immediate, Condition cond = al);
806
- // The constant for movt should be in the range 0-0xffff.
807
- void movt(Register reg, uint32_t immediate, Condition cond = al);
808
-
809
- void bic(Register dst, Register src1, const Operand& src2,
810
- SBit s = LeaveCC, Condition cond = al);
811
-
812
- void mvn(Register dst, const Operand& src,
813
- SBit s = LeaveCC, Condition cond = al);
814
-
815
- // Multiply instructions
816
-
817
- void mla(Register dst, Register src1, Register src2, Register srcA,
818
- SBit s = LeaveCC, Condition cond = al);
819
-
820
- void mul(Register dst, Register src1, Register src2,
821
- SBit s = LeaveCC, Condition cond = al);
822
-
823
- void smlal(Register dstL, Register dstH, Register src1, Register src2,
824
- SBit s = LeaveCC, Condition cond = al);
825
-
826
- void smull(Register dstL, Register dstH, Register src1, Register src2,
827
- SBit s = LeaveCC, Condition cond = al);
828
-
829
- void umlal(Register dstL, Register dstH, Register src1, Register src2,
830
- SBit s = LeaveCC, Condition cond = al);
831
-
832
- void umull(Register dstL, Register dstH, Register src1, Register src2,
833
- SBit s = LeaveCC, Condition cond = al);
834
-
835
- // Miscellaneous arithmetic instructions
836
-
837
- void clz(Register dst, Register src, Condition cond = al); // v5 and above
838
-
839
- // Saturating instructions. v6 and above.
840
-
841
- // Unsigned saturate.
842
- //
843
- // Saturate an optionally shifted signed value to an unsigned range.
844
- //
845
- // usat dst, #satpos, src
846
- // usat dst, #satpos, src, lsl #sh
847
- // usat dst, #satpos, src, asr #sh
848
- //
849
- // Register dst will contain:
850
- //
851
- // 0, if s < 0
852
- // (1 << satpos) - 1, if s > ((1 << satpos) - 1)
853
- // s, otherwise
854
- //
855
- // where s is the contents of src after shifting (if used.)
856
- void usat(Register dst, int satpos, const Operand& src, Condition cond = al);
857
-
858
- // Bitfield manipulation instructions. v7 and above.
859
-
860
- void ubfx(Register dst, Register src, int lsb, int width,
861
- Condition cond = al);
862
-
863
- void sbfx(Register dst, Register src, int lsb, int width,
864
- Condition cond = al);
865
-
866
- void bfc(Register dst, int lsb, int width, Condition cond = al);
867
-
868
- void bfi(Register dst, Register src, int lsb, int width,
869
- Condition cond = al);
870
-
871
- // Status register access instructions
872
-
873
- void mrs(Register dst, SRegister s, Condition cond = al);
874
- void msr(SRegisterFieldMask fields, const Operand& src, Condition cond = al);
875
-
876
- // Load/Store instructions
877
- void ldr(Register dst, const MemOperand& src, Condition cond = al);
878
- void str(Register src, const MemOperand& dst, Condition cond = al);
879
- void ldrb(Register dst, const MemOperand& src, Condition cond = al);
880
- void strb(Register src, const MemOperand& dst, Condition cond = al);
881
- void ldrh(Register dst, const MemOperand& src, Condition cond = al);
882
- void strh(Register src, const MemOperand& dst, Condition cond = al);
883
- void ldrsb(Register dst, const MemOperand& src, Condition cond = al);
884
- void ldrsh(Register dst, const MemOperand& src, Condition cond = al);
885
- void ldrd(Register dst1,
886
- Register dst2,
887
- const MemOperand& src, Condition cond = al);
888
- void strd(Register src1,
889
- Register src2,
890
- const MemOperand& dst, Condition cond = al);
891
-
892
- // Load/Store multiple instructions
893
- void ldm(BlockAddrMode am, Register base, RegList dst, Condition cond = al);
894
- void stm(BlockAddrMode am, Register base, RegList src, Condition cond = al);
895
-
896
- // Exception-generating instructions and debugging support
897
- void stop(const char* msg);
898
-
899
- void bkpt(uint32_t imm16); // v5 and above
900
- void swi(uint32_t imm24, Condition cond = al);
901
-
902
- // Coprocessor instructions
903
-
904
- void cdp(Coprocessor coproc, int opcode_1,
905
- CRegister crd, CRegister crn, CRegister crm,
906
- int opcode_2, Condition cond = al);
907
-
908
- void cdp2(Coprocessor coproc, int opcode_1,
909
- CRegister crd, CRegister crn, CRegister crm,
910
- int opcode_2); // v5 and above
911
-
912
- void mcr(Coprocessor coproc, int opcode_1,
913
- Register rd, CRegister crn, CRegister crm,
914
- int opcode_2 = 0, Condition cond = al);
915
-
916
- void mcr2(Coprocessor coproc, int opcode_1,
917
- Register rd, CRegister crn, CRegister crm,
918
- int opcode_2 = 0); // v5 and above
919
-
920
- void mrc(Coprocessor coproc, int opcode_1,
921
- Register rd, CRegister crn, CRegister crm,
922
- int opcode_2 = 0, Condition cond = al);
923
-
924
- void mrc2(Coprocessor coproc, int opcode_1,
925
- Register rd, CRegister crn, CRegister crm,
926
- int opcode_2 = 0); // v5 and above
927
-
928
- void ldc(Coprocessor coproc, CRegister crd, const MemOperand& src,
929
- LFlag l = Short, Condition cond = al);
930
- void ldc(Coprocessor coproc, CRegister crd, Register base, int option,
931
- LFlag l = Short, Condition cond = al);
932
-
933
- void ldc2(Coprocessor coproc, CRegister crd, const MemOperand& src,
934
- LFlag l = Short); // v5 and above
935
- void ldc2(Coprocessor coproc, CRegister crd, Register base, int option,
936
- LFlag l = Short); // v5 and above
937
-
938
- void stc(Coprocessor coproc, CRegister crd, const MemOperand& dst,
939
- LFlag l = Short, Condition cond = al);
940
- void stc(Coprocessor coproc, CRegister crd, Register base, int option,
941
- LFlag l = Short, Condition cond = al);
942
-
943
- void stc2(Coprocessor coproc, CRegister crd, const MemOperand& dst,
944
- LFlag l = Short); // v5 and above
945
- void stc2(Coprocessor coproc, CRegister crd, Register base, int option,
946
- LFlag l = Short); // v5 and above
947
-
948
- // Support for VFP.
949
- // All these APIs support S0 to S31 and D0 to D15.
950
- // Currently these APIs do not support extended D registers, i.e, D16 to D31.
951
- // However, some simple modifications can allow
952
- // these APIs to support D16 to D31.
953
-
954
- void vldr(const DwVfpRegister dst,
955
- const Register base,
956
- int offset, // Offset must be a multiple of 4.
957
- const Condition cond = al);
958
-
959
- void vldr(const SwVfpRegister dst,
960
- const Register base,
961
- int offset, // Offset must be a multiple of 4.
962
- const Condition cond = al);
963
-
964
- void vstr(const DwVfpRegister src,
965
- const Register base,
966
- int offset, // Offset must be a multiple of 4.
967
- const Condition cond = al);
968
-
969
- void vmov(const DwVfpRegister dst,
970
- double imm,
971
- const Condition cond = al);
972
- void vmov(const SwVfpRegister dst,
973
- const SwVfpRegister src,
974
- const Condition cond = al);
975
- void vmov(const DwVfpRegister dst,
976
- const DwVfpRegister src,
977
- const Condition cond = al);
978
- void vmov(const DwVfpRegister dst,
979
- const Register src1,
980
- const Register src2,
981
- const Condition cond = al);
982
- void vmov(const Register dst1,
983
- const Register dst2,
984
- const DwVfpRegister src,
985
- const Condition cond = al);
986
- void vmov(const SwVfpRegister dst,
987
- const Register src,
988
- const Condition cond = al);
989
- void vmov(const Register dst,
990
- const SwVfpRegister src,
991
- const Condition cond = al);
992
- void vcvt_f64_s32(const DwVfpRegister dst,
993
- const SwVfpRegister src,
994
- const Condition cond = al);
995
- void vcvt_f32_s32(const SwVfpRegister dst,
996
- const SwVfpRegister src,
997
- const Condition cond = al);
998
- void vcvt_f64_u32(const DwVfpRegister dst,
999
- const SwVfpRegister src,
1000
- const Condition cond = al);
1001
- void vcvt_s32_f64(const SwVfpRegister dst,
1002
- const DwVfpRegister src,
1003
- const Condition cond = al);
1004
- void vcvt_u32_f64(const SwVfpRegister dst,
1005
- const DwVfpRegister src,
1006
- const Condition cond = al);
1007
- void vcvt_f64_f32(const DwVfpRegister dst,
1008
- const SwVfpRegister src,
1009
- const Condition cond = al);
1010
- void vcvt_f32_f64(const SwVfpRegister dst,
1011
- const DwVfpRegister src,
1012
- const Condition cond = al);
1013
-
1014
- void vadd(const DwVfpRegister dst,
1015
- const DwVfpRegister src1,
1016
- const DwVfpRegister src2,
1017
- const Condition cond = al);
1018
- void vsub(const DwVfpRegister dst,
1019
- const DwVfpRegister src1,
1020
- const DwVfpRegister src2,
1021
- const Condition cond = al);
1022
- void vmul(const DwVfpRegister dst,
1023
- const DwVfpRegister src1,
1024
- const DwVfpRegister src2,
1025
- const Condition cond = al);
1026
- void vdiv(const DwVfpRegister dst,
1027
- const DwVfpRegister src1,
1028
- const DwVfpRegister src2,
1029
- const Condition cond = al);
1030
- void vcmp(const DwVfpRegister src1,
1031
- const DwVfpRegister src2,
1032
- const SBit s = LeaveCC,
1033
- const Condition cond = al);
1034
- void vmrs(const Register dst,
1035
- const Condition cond = al);
1036
- void vsqrt(const DwVfpRegister dst,
1037
- const DwVfpRegister src,
1038
- const Condition cond = al);
1039
-
1040
- // Pseudo instructions
1041
- void nop(int type = 0);
1042
-
1043
- void push(Register src, Condition cond = al) {
1044
- str(src, MemOperand(sp, 4, NegPreIndex), cond);
1045
- }
1046
-
1047
- void pop(Register dst, Condition cond = al) {
1048
- ldr(dst, MemOperand(sp, 4, PostIndex), cond);
1049
- }
1050
-
1051
- void pop() {
1052
- add(sp, sp, Operand(kPointerSize));
1053
- }
1054
-
1055
- // Jump unconditionally to given label.
1056
- void jmp(Label* L) { b(L, al); }
1057
-
1058
- // Check the code size generated from label to here.
1059
- int InstructionsGeneratedSince(Label* l) {
1060
- return (pc_offset() - l->pos()) / kInstrSize;
1061
- }
1062
-
1063
- // Check whether an immediate fits an addressing mode 1 instruction.
1064
- bool ImmediateFitsAddrMode1Instruction(int32_t imm32);
1065
-
1066
- // Class for scoping postponing the constant pool generation.
1067
- class BlockConstPoolScope {
1068
- public:
1069
- explicit BlockConstPoolScope(Assembler* assem) : assem_(assem) {
1070
- assem_->StartBlockConstPool();
1071
- }
1072
- ~BlockConstPoolScope() {
1073
- assem_->EndBlockConstPool();
1074
- }
1075
-
1076
- private:
1077
- Assembler* assem_;
1078
-
1079
- DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope);
1080
- };
1081
-
1082
- // Postpone the generation of the constant pool for the specified number of
1083
- // instructions.
1084
- void BlockConstPoolFor(int instructions);
1085
-
1086
- // Debugging
1087
-
1088
- // Mark address of the ExitJSFrame code.
1089
- void RecordJSReturn();
1090
-
1091
- // Mark address of a debug break slot.
1092
- void RecordDebugBreakSlot();
1093
-
1094
- // Record a comment relocation entry that can be used by a disassembler.
1095
- // Use --debug_code to enable.
1096
- void RecordComment(const char* msg);
1097
-
1098
- void RecordPosition(int pos);
1099
- void RecordStatementPosition(int pos);
1100
- bool WriteRecordedPositions();
1101
-
1102
- int pc_offset() const { return pc_ - buffer_; }
1103
- int current_position() const { return current_position_; }
1104
- int current_statement_position() const { return current_statement_position_; }
1105
-
1106
- bool can_peephole_optimize(int instructions) {
1107
- if (!FLAG_peephole_optimization) return false;
1108
- if (last_bound_pos_ > pc_offset() - instructions * kInstrSize) return false;
1109
- return reloc_info_writer.last_pc() <= pc_ - instructions * kInstrSize;
1110
- }
1111
-
1112
- // Read/patch instructions
1113
- static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); }
1114
- static void instr_at_put(byte* pc, Instr instr) {
1115
- *reinterpret_cast<Instr*>(pc) = instr;
1116
- }
1117
- static bool IsNop(Instr instr, int type = 0);
1118
- static bool IsBranch(Instr instr);
1119
- static int GetBranchOffset(Instr instr);
1120
- static bool IsLdrRegisterImmediate(Instr instr);
1121
- static int GetLdrRegisterImmediateOffset(Instr instr);
1122
- static Instr SetLdrRegisterImmediateOffset(Instr instr, int offset);
1123
- static bool IsStrRegisterImmediate(Instr instr);
1124
- static Instr SetStrRegisterImmediateOffset(Instr instr, int offset);
1125
- static bool IsAddRegisterImmediate(Instr instr);
1126
- static Instr SetAddRegisterImmediateOffset(Instr instr, int offset);
1127
- static Register GetRd(Instr instr);
1128
- static bool IsPush(Instr instr);
1129
- static bool IsPop(Instr instr);
1130
- static bool IsStrRegFpOffset(Instr instr);
1131
- static bool IsLdrRegFpOffset(Instr instr);
1132
- static bool IsStrRegFpNegOffset(Instr instr);
1133
- static bool IsLdrRegFpNegOffset(Instr instr);
1134
-
1135
-
1136
- protected:
1137
- int buffer_space() const { return reloc_info_writer.pos() - pc_; }
1138
-
1139
- // Read/patch instructions
1140
- Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
1141
- void instr_at_put(int pos, Instr instr) {
1142
- *reinterpret_cast<Instr*>(buffer_ + pos) = instr;
1143
- }
1144
-
1145
- // Decode branch instruction at pos and return branch target pos
1146
- int target_at(int pos);
1147
-
1148
- // Patch branch instruction at pos to branch to given branch target pos
1149
- void target_at_put(int pos, int target_pos);
1150
-
1151
- // Check if is time to emit a constant pool for pending reloc info entries
1152
- void CheckConstPool(bool force_emit, bool require_jump);
1153
-
1154
- // Block the emission of the constant pool before pc_offset
1155
- void BlockConstPoolBefore(int pc_offset) {
1156
- if (no_const_pool_before_ < pc_offset) no_const_pool_before_ = pc_offset;
1157
- }
1158
-
1159
- void StartBlockConstPool() {
1160
- const_pool_blocked_nesting_++;
1161
- }
1162
- void EndBlockConstPool() {
1163
- const_pool_blocked_nesting_--;
1164
- }
1165
- bool is_const_pool_blocked() const { return const_pool_blocked_nesting_ > 0; }
1166
-
1167
- private:
1168
- // Code buffer:
1169
- // The buffer into which code and relocation info are generated.
1170
- byte* buffer_;
1171
- int buffer_size_;
1172
- // True if the assembler owns the buffer, false if buffer is external.
1173
- bool own_buffer_;
1174
-
1175
- // Buffer size and constant pool distance are checked together at regular
1176
- // intervals of kBufferCheckInterval emitted bytes
1177
- static const int kBufferCheckInterval = 1*KB/2;
1178
- int next_buffer_check_; // pc offset of next buffer check
1179
-
1180
- // Code generation
1181
- // The relocation writer's position is at least kGap bytes below the end of
1182
- // the generated instructions. This is so that multi-instruction sequences do
1183
- // not have to check for overflow. The same is true for writes of large
1184
- // relocation info entries.
1185
- static const int kGap = 32;
1186
- byte* pc_; // the program counter; moves forward
1187
-
1188
- // Constant pool generation
1189
- // Pools are emitted in the instruction stream, preferably after unconditional
1190
- // jumps or after returns from functions (in dead code locations).
1191
- // If a long code sequence does not contain unconditional jumps, it is
1192
- // necessary to emit the constant pool before the pool gets too far from the
1193
- // location it is accessed from. In this case, we emit a jump over the emitted
1194
- // constant pool.
1195
- // Constants in the pool may be addresses of functions that gets relocated;
1196
- // if so, a relocation info entry is associated to the constant pool entry.
1197
-
1198
- // Repeated checking whether the constant pool should be emitted is rather
1199
- // expensive. By default we only check again once a number of instructions
1200
- // has been generated. That also means that the sizing of the buffers is not
1201
- // an exact science, and that we rely on some slop to not overrun buffers.
1202
- static const int kCheckConstIntervalInst = 32;
1203
- static const int kCheckConstInterval = kCheckConstIntervalInst * kInstrSize;
1204
-
1205
-
1206
- // Pools are emitted after function return and in dead code at (more or less)
1207
- // regular intervals of kDistBetweenPools bytes
1208
- static const int kDistBetweenPools = 1*KB;
1209
-
1210
- // Constants in pools are accessed via pc relative addressing, which can
1211
- // reach +/-4KB thereby defining a maximum distance between the instruction
1212
- // and the accessed constant. We satisfy this constraint by limiting the
1213
- // distance between pools.
1214
- static const int kMaxDistBetweenPools = 4*KB - 2*kBufferCheckInterval;
1215
-
1216
- // Emission of the constant pool may be blocked in some code sequences.
1217
- int const_pool_blocked_nesting_; // Block emission if this is not zero.
1218
- int no_const_pool_before_; // Block emission before this pc offset.
1219
-
1220
- // Keep track of the last emitted pool to guarantee a maximal distance
1221
- int last_const_pool_end_; // pc offset following the last constant pool
1222
-
1223
- // Relocation info generation
1224
- // Each relocation is encoded as a variable size value
1225
- static const int kMaxRelocSize = RelocInfoWriter::kMaxSize;
1226
- RelocInfoWriter reloc_info_writer;
1227
- // Relocation info records are also used during code generation as temporary
1228
- // containers for constants and code target addresses until they are emitted
1229
- // to the constant pool. These pending relocation info records are temporarily
1230
- // stored in a separate buffer until a constant pool is emitted.
1231
- // If every instruction in a long sequence is accessing the pool, we need one
1232
- // pending relocation entry per instruction.
1233
- static const int kMaxNumPRInfo = kMaxDistBetweenPools/kInstrSize;
1234
- RelocInfo prinfo_[kMaxNumPRInfo]; // the buffer of pending relocation info
1235
- int num_prinfo_; // number of pending reloc info entries in the buffer
1236
-
1237
- // The bound position, before this we cannot do instruction elimination.
1238
- int last_bound_pos_;
1239
-
1240
- // source position information
1241
- int current_position_;
1242
- int current_statement_position_;
1243
- int written_position_;
1244
- int written_statement_position_;
1245
-
1246
- // Code emission
1247
- inline void CheckBuffer();
1248
- void GrowBuffer();
1249
- inline void emit(Instr x);
1250
-
1251
- // Instruction generation
1252
- void addrmod1(Instr instr, Register rn, Register rd, const Operand& x);
1253
- void addrmod2(Instr instr, Register rd, const MemOperand& x);
1254
- void addrmod3(Instr instr, Register rd, const MemOperand& x);
1255
- void addrmod4(Instr instr, Register rn, RegList rl);
1256
- void addrmod5(Instr instr, CRegister crd, const MemOperand& x);
1257
-
1258
- // Labels
1259
- void print(Label* L);
1260
- void bind_to(Label* L, int pos);
1261
- void link_to(Label* L, Label* appendix);
1262
- void next(Label* L);
1263
-
1264
- // Record reloc info for current pc_
1265
- void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
1266
-
1267
- friend class RegExpMacroAssemblerARM;
1268
- friend class RelocInfo;
1269
- friend class CodePatcher;
1270
- friend class BlockConstPoolScope;
1271
- };
1272
-
1273
- } } // namespace v8::internal
1274
-
1275
- #endif // V8_ARM_ASSEMBLER_ARM_H_