therubyracer-heroku 0.8.1.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1966) hide show
  1. data/.gitignore +13 -0
  2. data/.gitmodules +3 -0
  3. data/.rspec +1 -0
  4. data/Changelog.md +165 -0
  5. data/Gemfile +1 -0
  6. data/README.md +155 -0
  7. data/Rakefile +34 -0
  8. data/bin/therubyracer +13 -0
  9. data/bin/v8 +8 -0
  10. data/ext/v8/extconf.rb +25 -0
  11. data/ext/v8/rr.cpp +175 -0
  12. data/ext/v8/rr.h +36 -0
  13. data/ext/v8/upstream/2.3.3/.gitignore +26 -0
  14. data/ext/v8/upstream/2.3.3/AUTHORS +31 -0
  15. data/ext/v8/upstream/2.3.3/ChangeLog +1916 -0
  16. data/ext/v8/upstream/2.3.3/LICENSE +55 -0
  17. data/ext/v8/upstream/2.3.3/SConstruct +1154 -0
  18. data/ext/v8/upstream/2.3.3/include/v8-debug.h +381 -0
  19. data/ext/v8/upstream/2.3.3/include/v8-profiler.h +353 -0
  20. data/ext/v8/upstream/2.3.3/include/v8.h +3616 -0
  21. data/ext/v8/upstream/2.3.3/src/SConscript +330 -0
  22. data/ext/v8/upstream/2.3.3/src/accessors.cc +661 -0
  23. data/ext/v8/upstream/2.3.3/src/accessors.h +114 -0
  24. data/ext/v8/upstream/2.3.3/src/allocation.cc +198 -0
  25. data/ext/v8/upstream/2.3.3/src/allocation.h +169 -0
  26. data/ext/v8/upstream/2.3.3/src/api.cc +4795 -0
  27. data/ext/v8/upstream/2.3.3/src/api.h +485 -0
  28. data/ext/v8/upstream/2.3.3/src/apinatives.js +110 -0
  29. data/ext/v8/upstream/2.3.3/src/apiutils.h +69 -0
  30. data/ext/v8/upstream/2.3.3/src/arguments.h +96 -0
  31. data/ext/v8/upstream/2.3.3/src/arm/assembler-arm-inl.h +305 -0
  32. data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.cc +2580 -0
  33. data/ext/v8/upstream/2.3.3/src/arm/assembler-arm.h +1275 -0
  34. data/ext/v8/upstream/2.3.3/src/arm/builtins-arm.cc +1320 -0
  35. data/ext/v8/upstream/2.3.3/src/arm/codegen-arm-inl.h +48 -0
  36. data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.cc +11398 -0
  37. data/ext/v8/upstream/2.3.3/src/arm/codegen-arm.h +1102 -0
  38. data/ext/v8/upstream/2.3.3/src/arm/constants-arm.cc +154 -0
  39. data/ext/v8/upstream/2.3.3/src/arm/constants-arm.h +388 -0
  40. data/ext/v8/upstream/2.3.3/src/arm/cpu-arm.cc +142 -0
  41. data/ext/v8/upstream/2.3.3/src/arm/debug-arm.cc +309 -0
  42. data/ext/v8/upstream/2.3.3/src/arm/disasm-arm.cc +1459 -0
  43. data/ext/v8/upstream/2.3.3/src/arm/fast-codegen-arm.cc +241 -0
  44. data/ext/v8/upstream/2.3.3/src/arm/frames-arm.cc +123 -0
  45. data/ext/v8/upstream/2.3.3/src/arm/frames-arm.h +162 -0
  46. data/ext/v8/upstream/2.3.3/src/arm/full-codegen-arm.cc +3178 -0
  47. data/ext/v8/upstream/2.3.3/src/arm/ic-arm.cc +2258 -0
  48. data/ext/v8/upstream/2.3.3/src/arm/jump-target-arm.cc +164 -0
  49. data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.cc +1892 -0
  50. data/ext/v8/upstream/2.3.3/src/arm/macro-assembler-arm.h +727 -0
  51. data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.cc +1261 -0
  52. data/ext/v8/upstream/2.3.3/src/arm/regexp-macro-assembler-arm.h +266 -0
  53. data/ext/v8/upstream/2.3.3/src/arm/register-allocator-arm-inl.h +100 -0
  54. data/ext/v8/upstream/2.3.3/src/arm/register-allocator-arm.cc +63 -0
  55. data/ext/v8/upstream/2.3.3/src/arm/register-allocator-arm.h +44 -0
  56. data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.cc +2822 -0
  57. data/ext/v8/upstream/2.3.3/src/arm/simulator-arm.h +361 -0
  58. data/ext/v8/upstream/2.3.3/src/arm/stub-cache-arm.cc +2387 -0
  59. data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm-inl.h +59 -0
  60. data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.cc +834 -0
  61. data/ext/v8/upstream/2.3.3/src/arm/virtual-frame-arm.h +519 -0
  62. data/ext/v8/upstream/2.3.3/src/array.js +1127 -0
  63. data/ext/v8/upstream/2.3.3/src/assembler.cc +801 -0
  64. data/ext/v8/upstream/2.3.3/src/assembler.h +573 -0
  65. data/ext/v8/upstream/2.3.3/src/ast-inl.h +81 -0
  66. data/ext/v8/upstream/2.3.3/src/ast.cc +1152 -0
  67. data/ext/v8/upstream/2.3.3/src/ast.h +2106 -0
  68. data/ext/v8/upstream/2.3.3/src/bootstrapper.cc +1819 -0
  69. data/ext/v8/upstream/2.3.3/src/bootstrapper.h +118 -0
  70. data/ext/v8/upstream/2.3.3/src/builtins.cc +1529 -0
  71. data/ext/v8/upstream/2.3.3/src/builtins.h +263 -0
  72. data/ext/v8/upstream/2.3.3/src/bytecodes-irregexp.h +104 -0
  73. data/ext/v8/upstream/2.3.3/src/cached-powers.h +119 -0
  74. data/ext/v8/upstream/2.3.3/src/char-predicates-inl.h +86 -0
  75. data/ext/v8/upstream/2.3.3/src/char-predicates.h +65 -0
  76. data/ext/v8/upstream/2.3.3/src/checks.cc +100 -0
  77. data/ext/v8/upstream/2.3.3/src/checks.h +310 -0
  78. data/ext/v8/upstream/2.3.3/src/circular-queue-inl.h +53 -0
  79. data/ext/v8/upstream/2.3.3/src/circular-queue.cc +121 -0
  80. data/ext/v8/upstream/2.3.3/src/circular-queue.h +103 -0
  81. data/ext/v8/upstream/2.3.3/src/code-stubs.cc +177 -0
  82. data/ext/v8/upstream/2.3.3/src/code-stubs.h +177 -0
  83. data/ext/v8/upstream/2.3.3/src/code.h +68 -0
  84. data/ext/v8/upstream/2.3.3/src/codegen-inl.h +60 -0
  85. data/ext/v8/upstream/2.3.3/src/codegen.cc +516 -0
  86. data/ext/v8/upstream/2.3.3/src/codegen.h +897 -0
  87. data/ext/v8/upstream/2.3.3/src/compilation-cache.cc +562 -0
  88. data/ext/v8/upstream/2.3.3/src/compilation-cache.h +102 -0
  89. data/ext/v8/upstream/2.3.3/src/compiler.cc +654 -0
  90. data/ext/v8/upstream/2.3.3/src/compiler.h +299 -0
  91. data/ext/v8/upstream/2.3.3/src/contexts.cc +256 -0
  92. data/ext/v8/upstream/2.3.3/src/contexts.h +342 -0
  93. data/ext/v8/upstream/2.3.3/src/conversions-inl.h +110 -0
  94. data/ext/v8/upstream/2.3.3/src/conversions.cc +1119 -0
  95. data/ext/v8/upstream/2.3.3/src/conversions.h +123 -0
  96. data/ext/v8/upstream/2.3.3/src/counters.cc +78 -0
  97. data/ext/v8/upstream/2.3.3/src/counters.h +239 -0
  98. data/ext/v8/upstream/2.3.3/src/cpu-profiler-inl.h +100 -0
  99. data/ext/v8/upstream/2.3.3/src/cpu-profiler.cc +538 -0
  100. data/ext/v8/upstream/2.3.3/src/cpu-profiler.h +285 -0
  101. data/ext/v8/upstream/2.3.3/src/cpu.h +65 -0
  102. data/ext/v8/upstream/2.3.3/src/d8-debug.cc +356 -0
  103. data/ext/v8/upstream/2.3.3/src/d8-debug.h +155 -0
  104. data/ext/v8/upstream/2.3.3/src/d8-posix.cc +693 -0
  105. data/ext/v8/upstream/2.3.3/src/d8-readline.cc +128 -0
  106. data/ext/v8/upstream/2.3.3/src/d8-windows.cc +42 -0
  107. data/ext/v8/upstream/2.3.3/src/d8.cc +783 -0
  108. data/ext/v8/upstream/2.3.3/src/d8.h +227 -0
  109. data/ext/v8/upstream/2.3.3/src/d8.js +1683 -0
  110. data/ext/v8/upstream/2.3.3/src/data-flow.cc +758 -0
  111. data/ext/v8/upstream/2.3.3/src/data-flow.h +278 -0
  112. data/ext/v8/upstream/2.3.3/src/date.js +1059 -0
  113. data/ext/v8/upstream/2.3.3/src/dateparser-inl.h +123 -0
  114. data/ext/v8/upstream/2.3.3/src/dateparser.cc +178 -0
  115. data/ext/v8/upstream/2.3.3/src/dateparser.h +244 -0
  116. data/ext/v8/upstream/2.3.3/src/debug-agent.cc +427 -0
  117. data/ext/v8/upstream/2.3.3/src/debug-agent.h +129 -0
  118. data/ext/v8/upstream/2.3.3/src/debug-debugger.js +2227 -0
  119. data/ext/v8/upstream/2.3.3/src/debug.cc +3005 -0
  120. data/ext/v8/upstream/2.3.3/src/debug.h +993 -0
  121. data/ext/v8/upstream/2.3.3/src/disasm.h +77 -0
  122. data/ext/v8/upstream/2.3.3/src/disassembler.cc +312 -0
  123. data/ext/v8/upstream/2.3.3/src/disassembler.h +56 -0
  124. data/ext/v8/upstream/2.3.3/src/diy-fp.cc +58 -0
  125. data/ext/v8/upstream/2.3.3/src/diy-fp.h +117 -0
  126. data/ext/v8/upstream/2.3.3/src/double.h +169 -0
  127. data/ext/v8/upstream/2.3.3/src/dtoa-config.c +92 -0
  128. data/ext/v8/upstream/2.3.3/src/dtoa.cc +77 -0
  129. data/ext/v8/upstream/2.3.3/src/dtoa.h +81 -0
  130. data/ext/v8/upstream/2.3.3/src/execution.cc +809 -0
  131. data/ext/v8/upstream/2.3.3/src/execution.h +336 -0
  132. data/ext/v8/upstream/2.3.3/src/factory.cc +1003 -0
  133. data/ext/v8/upstream/2.3.3/src/factory.h +410 -0
  134. data/ext/v8/upstream/2.3.3/src/fast-codegen.cc +746 -0
  135. data/ext/v8/upstream/2.3.3/src/fast-codegen.h +161 -0
  136. data/ext/v8/upstream/2.3.3/src/fast-dtoa.cc +505 -0
  137. data/ext/v8/upstream/2.3.3/src/fast-dtoa.h +58 -0
  138. data/ext/v8/upstream/2.3.3/src/fixed-dtoa.cc +405 -0
  139. data/ext/v8/upstream/2.3.3/src/fixed-dtoa.h +55 -0
  140. data/ext/v8/upstream/2.3.3/src/flag-definitions.h +455 -0
  141. data/ext/v8/upstream/2.3.3/src/flags.cc +551 -0
  142. data/ext/v8/upstream/2.3.3/src/flags.h +81 -0
  143. data/ext/v8/upstream/2.3.3/src/flow-graph.cc +763 -0
  144. data/ext/v8/upstream/2.3.3/src/flow-graph.h +180 -0
  145. data/ext/v8/upstream/2.3.3/src/frame-element.cc +42 -0
  146. data/ext/v8/upstream/2.3.3/src/frame-element.h +273 -0
  147. data/ext/v8/upstream/2.3.3/src/frames-inl.h +217 -0
  148. data/ext/v8/upstream/2.3.3/src/frames.cc +826 -0
  149. data/ext/v8/upstream/2.3.3/src/frames.h +682 -0
  150. data/ext/v8/upstream/2.3.3/src/full-codegen.cc +1443 -0
  151. data/ext/v8/upstream/2.3.3/src/full-codegen.h +548 -0
  152. data/ext/v8/upstream/2.3.3/src/func-name-inferrer.cc +76 -0
  153. data/ext/v8/upstream/2.3.3/src/func-name-inferrer.h +135 -0
  154. data/ext/v8/upstream/2.3.3/src/global-handles.cc +520 -0
  155. data/ext/v8/upstream/2.3.3/src/global-handles.h +180 -0
  156. data/ext/v8/upstream/2.3.3/src/globals.h +669 -0
  157. data/ext/v8/upstream/2.3.3/src/handles-inl.h +76 -0
  158. data/ext/v8/upstream/2.3.3/src/handles.cc +825 -0
  159. data/ext/v8/upstream/2.3.3/src/handles.h +393 -0
  160. data/ext/v8/upstream/2.3.3/src/hashmap.cc +226 -0
  161. data/ext/v8/upstream/2.3.3/src/hashmap.h +120 -0
  162. data/ext/v8/upstream/2.3.3/src/heap-inl.h +493 -0
  163. data/ext/v8/upstream/2.3.3/src/heap-profiler.cc +779 -0
  164. data/ext/v8/upstream/2.3.3/src/heap-profiler.h +323 -0
  165. data/ext/v8/upstream/2.3.3/src/heap.cc +4994 -0
  166. data/ext/v8/upstream/2.3.3/src/heap.h +1984 -0
  167. data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32-inl.h +360 -0
  168. data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.cc +2600 -0
  169. data/ext/v8/upstream/2.3.3/src/ia32/assembler-ia32.h +969 -0
  170. data/ext/v8/upstream/2.3.3/src/ia32/builtins-ia32.cc +1261 -0
  171. data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32-inl.h +46 -0
  172. data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.cc +13968 -0
  173. data/ext/v8/upstream/2.3.3/src/ia32/codegen-ia32.h +1097 -0
  174. data/ext/v8/upstream/2.3.3/src/ia32/cpu-ia32.cc +83 -0
  175. data/ext/v8/upstream/2.3.3/src/ia32/debug-ia32.cc +309 -0
  176. data/ext/v8/upstream/2.3.3/src/ia32/disasm-ia32.cc +1471 -0
  177. data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.cc +954 -0
  178. data/ext/v8/upstream/2.3.3/src/ia32/fast-codegen-ia32.h +155 -0
  179. data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.cc +115 -0
  180. data/ext/v8/upstream/2.3.3/src/ia32/frames-ia32.h +135 -0
  181. data/ext/v8/upstream/2.3.3/src/ia32/full-codegen-ia32.cc +3281 -0
  182. data/ext/v8/upstream/2.3.3/src/ia32/ic-ia32.cc +1966 -0
  183. data/ext/v8/upstream/2.3.3/src/ia32/jump-target-ia32.cc +437 -0
  184. data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.cc +1610 -0
  185. data/ext/v8/upstream/2.3.3/src/ia32/macro-assembler-ia32.h +610 -0
  186. data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.cc +1247 -0
  187. data/ext/v8/upstream/2.3.3/src/ia32/regexp-macro-assembler-ia32.h +214 -0
  188. data/ext/v8/upstream/2.3.3/src/ia32/register-allocator-ia32-inl.h +82 -0
  189. data/ext/v8/upstream/2.3.3/src/ia32/register-allocator-ia32.cc +157 -0
  190. data/ext/v8/upstream/2.3.3/src/ia32/register-allocator-ia32.h +43 -0
  191. data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.cc +30 -0
  192. data/ext/v8/upstream/2.3.3/src/ia32/simulator-ia32.h +62 -0
  193. data/ext/v8/upstream/2.3.3/src/ia32/stub-cache-ia32.cc +2750 -0
  194. data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.cc +1334 -0
  195. data/ext/v8/upstream/2.3.3/src/ia32/virtual-frame-ia32.h +627 -0
  196. data/ext/v8/upstream/2.3.3/src/ic-inl.h +120 -0
  197. data/ext/v8/upstream/2.3.3/src/ic.cc +1827 -0
  198. data/ext/v8/upstream/2.3.3/src/ic.h +515 -0
  199. data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.cc +646 -0
  200. data/ext/v8/upstream/2.3.3/src/interpreter-irregexp.h +48 -0
  201. data/ext/v8/upstream/2.3.3/src/json.js +268 -0
  202. data/ext/v8/upstream/2.3.3/src/jsregexp.cc +5283 -0
  203. data/ext/v8/upstream/2.3.3/src/jsregexp.h +1463 -0
  204. data/ext/v8/upstream/2.3.3/src/jump-target-heavy-inl.h +51 -0
  205. data/ext/v8/upstream/2.3.3/src/jump-target-heavy.cc +429 -0
  206. data/ext/v8/upstream/2.3.3/src/jump-target-heavy.h +244 -0
  207. data/ext/v8/upstream/2.3.3/src/jump-target-inl.h +48 -0
  208. data/ext/v8/upstream/2.3.3/src/jump-target-light-inl.h +56 -0
  209. data/ext/v8/upstream/2.3.3/src/jump-target-light.cc +110 -0
  210. data/ext/v8/upstream/2.3.3/src/jump-target-light.h +192 -0
  211. data/ext/v8/upstream/2.3.3/src/jump-target.cc +91 -0
  212. data/ext/v8/upstream/2.3.3/src/jump-target.h +90 -0
  213. data/ext/v8/upstream/2.3.3/src/list-inl.h +166 -0
  214. data/ext/v8/upstream/2.3.3/src/list.h +159 -0
  215. data/ext/v8/upstream/2.3.3/src/liveedit-debugger.js +1057 -0
  216. data/ext/v8/upstream/2.3.3/src/liveedit.cc +1480 -0
  217. data/ext/v8/upstream/2.3.3/src/liveedit.h +170 -0
  218. data/ext/v8/upstream/2.3.3/src/log-inl.h +59 -0
  219. data/ext/v8/upstream/2.3.3/src/log-utils.cc +497 -0
  220. data/ext/v8/upstream/2.3.3/src/log-utils.h +289 -0
  221. data/ext/v8/upstream/2.3.3/src/log.cc +1561 -0
  222. data/ext/v8/upstream/2.3.3/src/log.h +384 -0
  223. data/ext/v8/upstream/2.3.3/src/macro-assembler.h +86 -0
  224. data/ext/v8/upstream/2.3.3/src/macros.py +177 -0
  225. data/ext/v8/upstream/2.3.3/src/mark-compact.cc +2330 -0
  226. data/ext/v8/upstream/2.3.3/src/mark-compact.h +451 -0
  227. data/ext/v8/upstream/2.3.3/src/math.js +264 -0
  228. data/ext/v8/upstream/2.3.3/src/memory.h +74 -0
  229. data/ext/v8/upstream/2.3.3/src/messages.cc +183 -0
  230. data/ext/v8/upstream/2.3.3/src/messages.h +113 -0
  231. data/ext/v8/upstream/2.3.3/src/messages.js +982 -0
  232. data/ext/v8/upstream/2.3.3/src/mips/assembler-mips-inl.h +215 -0
  233. data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.cc +1219 -0
  234. data/ext/v8/upstream/2.3.3/src/mips/assembler-mips.h +668 -0
  235. data/ext/v8/upstream/2.3.3/src/mips/builtins-mips.cc +205 -0
  236. data/ext/v8/upstream/2.3.3/src/mips/codegen-mips-inl.h +70 -0
  237. data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.cc +1437 -0
  238. data/ext/v8/upstream/2.3.3/src/mips/codegen-mips.h +434 -0
  239. data/ext/v8/upstream/2.3.3/src/mips/constants-mips.cc +328 -0
  240. data/ext/v8/upstream/2.3.3/src/mips/constants-mips.h +525 -0
  241. data/ext/v8/upstream/2.3.3/src/mips/cpu-mips.cc +73 -0
  242. data/ext/v8/upstream/2.3.3/src/mips/debug-mips.cc +131 -0
  243. data/ext/v8/upstream/2.3.3/src/mips/disasm-mips.cc +787 -0
  244. data/ext/v8/upstream/2.3.3/src/mips/fast-codegen-mips.cc +77 -0
  245. data/ext/v8/upstream/2.3.3/src/mips/frames-mips.cc +102 -0
  246. data/ext/v8/upstream/2.3.3/src/mips/frames-mips.h +164 -0
  247. data/ext/v8/upstream/2.3.3/src/mips/full-codegen-mips.cc +277 -0
  248. data/ext/v8/upstream/2.3.3/src/mips/ic-mips.cc +220 -0
  249. data/ext/v8/upstream/2.3.3/src/mips/jump-target-mips.cc +175 -0
  250. data/ext/v8/upstream/2.3.3/src/mips/macro-assembler-mips.cc +1326 -0
  251. data/ext/v8/upstream/2.3.3/src/mips/macro-assembler-mips.h +461 -0
  252. data/ext/v8/upstream/2.3.3/src/mips/register-allocator-mips-inl.h +137 -0
  253. data/ext/v8/upstream/2.3.3/src/mips/register-allocator-mips.cc +63 -0
  254. data/ext/v8/upstream/2.3.3/src/mips/register-allocator-mips.h +46 -0
  255. data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.cc +1651 -0
  256. data/ext/v8/upstream/2.3.3/src/mips/simulator-mips.h +311 -0
  257. data/ext/v8/upstream/2.3.3/src/mips/stub-cache-mips.cc +403 -0
  258. data/ext/v8/upstream/2.3.3/src/mips/virtual-frame-mips.cc +319 -0
  259. data/ext/v8/upstream/2.3.3/src/mips/virtual-frame-mips.h +548 -0
  260. data/ext/v8/upstream/2.3.3/src/mirror-debugger.js +2380 -0
  261. data/ext/v8/upstream/2.3.3/src/mksnapshot.cc +256 -0
  262. data/ext/v8/upstream/2.3.3/src/natives.h +63 -0
  263. data/ext/v8/upstream/2.3.3/src/objects-debug.cc +1366 -0
  264. data/ext/v8/upstream/2.3.3/src/objects-inl.h +3333 -0
  265. data/ext/v8/upstream/2.3.3/src/objects.cc +8820 -0
  266. data/ext/v8/upstream/2.3.3/src/objects.h +5373 -0
  267. data/ext/v8/upstream/2.3.3/src/oprofile-agent.cc +108 -0
  268. data/ext/v8/upstream/2.3.3/src/oprofile-agent.h +77 -0
  269. data/ext/v8/upstream/2.3.3/src/parser.cc +5207 -0
  270. data/ext/v8/upstream/2.3.3/src/parser.h +197 -0
  271. data/ext/v8/upstream/2.3.3/src/platform-freebsd.cc +667 -0
  272. data/ext/v8/upstream/2.3.3/src/platform-linux.cc +862 -0
  273. data/ext/v8/upstream/2.3.3/src/platform-macos.cc +665 -0
  274. data/ext/v8/upstream/2.3.3/src/platform-nullos.cc +454 -0
  275. data/ext/v8/upstream/2.3.3/src/platform-openbsd.cc +622 -0
  276. data/ext/v8/upstream/2.3.3/src/platform-posix.cc +362 -0
  277. data/ext/v8/upstream/2.3.3/src/platform-solaris.cc +653 -0
  278. data/ext/v8/upstream/2.3.3/src/platform-win32.cc +1911 -0
  279. data/ext/v8/upstream/2.3.3/src/platform.h +577 -0
  280. data/ext/v8/upstream/2.3.3/src/powers-ten.h +2461 -0
  281. data/ext/v8/upstream/2.3.3/src/prettyprinter.cc +1531 -0
  282. data/ext/v8/upstream/2.3.3/src/prettyprinter.h +221 -0
  283. data/ext/v8/upstream/2.3.3/src/profile-generator-inl.h +148 -0
  284. data/ext/v8/upstream/2.3.3/src/profile-generator.cc +1830 -0
  285. data/ext/v8/upstream/2.3.3/src/profile-generator.h +853 -0
  286. data/ext/v8/upstream/2.3.3/src/property.cc +96 -0
  287. data/ext/v8/upstream/2.3.3/src/property.h +315 -0
  288. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp-inl.h +78 -0
  289. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.cc +464 -0
  290. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-irregexp.h +141 -0
  291. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.cc +356 -0
  292. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler-tracer.h +103 -0
  293. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.cc +261 -0
  294. data/ext/v8/upstream/2.3.3/src/regexp-macro-assembler.h +228 -0
  295. data/ext/v8/upstream/2.3.3/src/regexp-stack.cc +103 -0
  296. data/ext/v8/upstream/2.3.3/src/regexp-stack.h +123 -0
  297. data/ext/v8/upstream/2.3.3/src/regexp.js +549 -0
  298. data/ext/v8/upstream/2.3.3/src/register-allocator-inl.h +141 -0
  299. data/ext/v8/upstream/2.3.3/src/register-allocator.cc +104 -0
  300. data/ext/v8/upstream/2.3.3/src/register-allocator.h +320 -0
  301. data/ext/v8/upstream/2.3.3/src/rewriter.cc +1038 -0
  302. data/ext/v8/upstream/2.3.3/src/rewriter.h +54 -0
  303. data/ext/v8/upstream/2.3.3/src/runtime.cc +10599 -0
  304. data/ext/v8/upstream/2.3.3/src/runtime.h +459 -0
  305. data/ext/v8/upstream/2.3.3/src/runtime.js +629 -0
  306. data/ext/v8/upstream/2.3.3/src/scanner.cc +1346 -0
  307. data/ext/v8/upstream/2.3.3/src/scanner.h +503 -0
  308. data/ext/v8/upstream/2.3.3/src/scopeinfo.cc +637 -0
  309. data/ext/v8/upstream/2.3.3/src/scopeinfo.h +233 -0
  310. data/ext/v8/upstream/2.3.3/src/scopes.cc +962 -0
  311. data/ext/v8/upstream/2.3.3/src/scopes.h +400 -0
  312. data/ext/v8/upstream/2.3.3/src/serialize.cc +1461 -0
  313. data/ext/v8/upstream/2.3.3/src/serialize.h +581 -0
  314. data/ext/v8/upstream/2.3.3/src/shell.h +55 -0
  315. data/ext/v8/upstream/2.3.3/src/simulator.h +43 -0
  316. data/ext/v8/upstream/2.3.3/src/smart-pointer.h +109 -0
  317. data/ext/v8/upstream/2.3.3/src/snapshot-common.cc +82 -0
  318. data/ext/v8/upstream/2.3.3/src/snapshot-empty.cc +50 -0
  319. data/ext/v8/upstream/2.3.3/src/snapshot.h +71 -0
  320. data/ext/v8/upstream/2.3.3/src/spaces-inl.h +483 -0
  321. data/ext/v8/upstream/2.3.3/src/spaces.cc +2901 -0
  322. data/ext/v8/upstream/2.3.3/src/spaces.h +2197 -0
  323. data/ext/v8/upstream/2.3.3/src/splay-tree-inl.h +310 -0
  324. data/ext/v8/upstream/2.3.3/src/splay-tree.h +203 -0
  325. data/ext/v8/upstream/2.3.3/src/string-stream.cc +584 -0
  326. data/ext/v8/upstream/2.3.3/src/string-stream.h +189 -0
  327. data/ext/v8/upstream/2.3.3/src/string.js +1006 -0
  328. data/ext/v8/upstream/2.3.3/src/stub-cache.cc +1379 -0
  329. data/ext/v8/upstream/2.3.3/src/stub-cache.h +756 -0
  330. data/ext/v8/upstream/2.3.3/src/third_party/dtoa/COPYING +15 -0
  331. data/ext/v8/upstream/2.3.3/src/third_party/dtoa/dtoa.c +3334 -0
  332. data/ext/v8/upstream/2.3.3/src/third_party/valgrind/valgrind.h +3925 -0
  333. data/ext/v8/upstream/2.3.3/src/token.cc +56 -0
  334. data/ext/v8/upstream/2.3.3/src/token.h +270 -0
  335. data/ext/v8/upstream/2.3.3/src/top.cc +1067 -0
  336. data/ext/v8/upstream/2.3.3/src/top.h +463 -0
  337. data/ext/v8/upstream/2.3.3/src/type-info.cc +53 -0
  338. data/ext/v8/upstream/2.3.3/src/type-info.h +244 -0
  339. data/ext/v8/upstream/2.3.3/src/unbound-queue-inl.h +95 -0
  340. data/ext/v8/upstream/2.3.3/src/unbound-queue.h +67 -0
  341. data/ext/v8/upstream/2.3.3/src/unicode-inl.h +238 -0
  342. data/ext/v8/upstream/2.3.3/src/unicode.cc +749 -0
  343. data/ext/v8/upstream/2.3.3/src/unicode.h +279 -0
  344. data/ext/v8/upstream/2.3.3/src/uri.js +415 -0
  345. data/ext/v8/upstream/2.3.3/src/utils.cc +285 -0
  346. data/ext/v8/upstream/2.3.3/src/utils.h +745 -0
  347. data/ext/v8/upstream/2.3.3/src/v8-counters.cc +55 -0
  348. data/ext/v8/upstream/2.3.3/src/v8-counters.h +250 -0
  349. data/ext/v8/upstream/2.3.3/src/v8.cc +228 -0
  350. data/ext/v8/upstream/2.3.3/src/v8.h +121 -0
  351. data/ext/v8/upstream/2.3.3/src/v8dll-main.cc +39 -0
  352. data/ext/v8/upstream/2.3.3/src/v8natives.js +1188 -0
  353. data/ext/v8/upstream/2.3.3/src/v8threads.cc +461 -0
  354. data/ext/v8/upstream/2.3.3/src/v8threads.h +159 -0
  355. data/ext/v8/upstream/2.3.3/src/variables.cc +119 -0
  356. data/ext/v8/upstream/2.3.3/src/variables.h +205 -0
  357. data/ext/v8/upstream/2.3.3/src/version.cc +88 -0
  358. data/ext/v8/upstream/2.3.3/src/version.h +64 -0
  359. data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy-inl.h +192 -0
  360. data/ext/v8/upstream/2.3.3/src/virtual-frame-heavy.cc +312 -0
  361. data/ext/v8/upstream/2.3.3/src/virtual-frame-inl.h +39 -0
  362. data/ext/v8/upstream/2.3.3/src/virtual-frame-light-inl.h +170 -0
  363. data/ext/v8/upstream/2.3.3/src/virtual-frame-light.cc +52 -0
  364. data/ext/v8/upstream/2.3.3/src/virtual-frame.cc +49 -0
  365. data/ext/v8/upstream/2.3.3/src/virtual-frame.h +46 -0
  366. data/ext/v8/upstream/2.3.3/src/vm-state-inl.h +137 -0
  367. data/ext/v8/upstream/2.3.3/src/vm-state.cc +39 -0
  368. data/ext/v8/upstream/2.3.3/src/vm-state.h +77 -0
  369. data/ext/v8/upstream/2.3.3/src/x64/assembler-x64-inl.h +400 -0
  370. data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.cc +2963 -0
  371. data/ext/v8/upstream/2.3.3/src/x64/assembler-x64.h +1438 -0
  372. data/ext/v8/upstream/2.3.3/src/x64/builtins-x64.cc +1296 -0
  373. data/ext/v8/upstream/2.3.3/src/x64/codegen-x64-inl.h +46 -0
  374. data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.cc +12491 -0
  375. data/ext/v8/upstream/2.3.3/src/x64/codegen-x64.h +1090 -0
  376. data/ext/v8/upstream/2.3.3/src/x64/cpu-x64.cc +83 -0
  377. data/ext/v8/upstream/2.3.3/src/x64/debug-x64.cc +267 -0
  378. data/ext/v8/upstream/2.3.3/src/x64/disasm-x64.cc +1696 -0
  379. data/ext/v8/upstream/2.3.3/src/x64/fast-codegen-x64.cc +250 -0
  380. data/ext/v8/upstream/2.3.3/src/x64/frames-x64.cc +113 -0
  381. data/ext/v8/upstream/2.3.3/src/x64/frames-x64.h +125 -0
  382. data/ext/v8/upstream/2.3.3/src/x64/full-codegen-x64.cc +3270 -0
  383. data/ext/v8/upstream/2.3.3/src/x64/ic-x64.cc +1907 -0
  384. data/ext/v8/upstream/2.3.3/src/x64/jump-target-x64.cc +437 -0
  385. data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.cc +2793 -0
  386. data/ext/v8/upstream/2.3.3/src/x64/macro-assembler-x64.h +916 -0
  387. data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.cc +1374 -0
  388. data/ext/v8/upstream/2.3.3/src/x64/regexp-macro-assembler-x64.h +277 -0
  389. data/ext/v8/upstream/2.3.3/src/x64/register-allocator-x64-inl.h +87 -0
  390. data/ext/v8/upstream/2.3.3/src/x64/register-allocator-x64.cc +91 -0
  391. data/ext/v8/upstream/2.3.3/src/x64/register-allocator-x64.h +43 -0
  392. data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.cc +27 -0
  393. data/ext/v8/upstream/2.3.3/src/x64/simulator-x64.h +63 -0
  394. data/ext/v8/upstream/2.3.3/src/x64/stub-cache-x64.cc +2560 -0
  395. data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.cc +1264 -0
  396. data/ext/v8/upstream/2.3.3/src/x64/virtual-frame-x64.h +590 -0
  397. data/ext/v8/upstream/2.3.3/src/zone-inl.h +82 -0
  398. data/ext/v8/upstream/2.3.3/src/zone.cc +194 -0
  399. data/ext/v8/upstream/2.3.3/src/zone.h +221 -0
  400. data/ext/v8/upstream/2.3.3/tools/codemap.js +270 -0
  401. data/ext/v8/upstream/2.3.3/tools/consarray.js +93 -0
  402. data/ext/v8/upstream/2.3.3/tools/csvparser.js +83 -0
  403. data/ext/v8/upstream/2.3.3/tools/gc-nvp-trace-processor.py +317 -0
  404. data/ext/v8/upstream/2.3.3/tools/generate-ten-powers.scm +286 -0
  405. data/ext/v8/upstream/2.3.3/tools/gyp/v8.gyp +749 -0
  406. data/ext/v8/upstream/2.3.3/tools/js2c.py +380 -0
  407. data/ext/v8/upstream/2.3.3/tools/jsmin.py +280 -0
  408. data/ext/v8/upstream/2.3.3/tools/linux-tick-processor +33 -0
  409. data/ext/v8/upstream/2.3.3/tools/linux-tick-processor.py +78 -0
  410. data/ext/v8/upstream/2.3.3/tools/logreader.js +338 -0
  411. data/ext/v8/upstream/2.3.3/tools/mac-nm +18 -0
  412. data/ext/v8/upstream/2.3.3/tools/mac-tick-processor +6 -0
  413. data/ext/v8/upstream/2.3.3/tools/oprofile/annotate +7 -0
  414. data/ext/v8/upstream/2.3.3/tools/oprofile/common +19 -0
  415. data/ext/v8/upstream/2.3.3/tools/oprofile/dump +7 -0
  416. data/ext/v8/upstream/2.3.3/tools/oprofile/report +7 -0
  417. data/ext/v8/upstream/2.3.3/tools/oprofile/reset +7 -0
  418. data/ext/v8/upstream/2.3.3/tools/oprofile/run +14 -0
  419. data/ext/v8/upstream/2.3.3/tools/oprofile/shutdown +7 -0
  420. data/ext/v8/upstream/2.3.3/tools/oprofile/start +7 -0
  421. data/ext/v8/upstream/2.3.3/tools/presubmit.py +299 -0
  422. data/ext/v8/upstream/2.3.3/tools/process-heap-prof.py +120 -0
  423. data/ext/v8/upstream/2.3.3/tools/profile.js +691 -0
  424. data/ext/v8/upstream/2.3.3/tools/profile_view.js +224 -0
  425. data/ext/v8/upstream/2.3.3/tools/run-valgrind.py +77 -0
  426. data/ext/v8/upstream/2.3.3/tools/splaytree.js +322 -0
  427. data/ext/v8/upstream/2.3.3/tools/splaytree.py +226 -0
  428. data/ext/v8/upstream/2.3.3/tools/stats-viewer.py +468 -0
  429. data/ext/v8/upstream/2.3.3/tools/tickprocessor-driver.js +59 -0
  430. data/ext/v8/upstream/2.3.3/tools/tickprocessor.js +862 -0
  431. data/ext/v8/upstream/2.3.3/tools/tickprocessor.py +571 -0
  432. data/ext/v8/upstream/2.3.3/tools/utils.py +88 -0
  433. data/ext/v8/upstream/2.3.3/tools/visual_studio/README.txt +71 -0
  434. data/ext/v8/upstream/2.3.3/tools/visual_studio/arm.vsprops +14 -0
  435. data/ext/v8/upstream/2.3.3/tools/visual_studio/common.vsprops +34 -0
  436. data/ext/v8/upstream/2.3.3/tools/visual_studio/d8.vcproj +193 -0
  437. data/ext/v8/upstream/2.3.3/tools/visual_studio/d8_arm.vcproj +193 -0
  438. data/ext/v8/upstream/2.3.3/tools/visual_studio/d8_x64.vcproj +209 -0
  439. data/ext/v8/upstream/2.3.3/tools/visual_studio/d8js2c.cmd +6 -0
  440. data/ext/v8/upstream/2.3.3/tools/visual_studio/debug.vsprops +17 -0
  441. data/ext/v8/upstream/2.3.3/tools/visual_studio/ia32.vsprops +17 -0
  442. data/ext/v8/upstream/2.3.3/tools/visual_studio/js2c.cmd +6 -0
  443. data/ext/v8/upstream/2.3.3/tools/visual_studio/release.vsprops +24 -0
  444. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8.sln +101 -0
  445. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8.vcproj +227 -0
  446. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_arm.sln +74 -0
  447. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_arm.vcproj +227 -0
  448. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base.vcproj +1143 -0
  449. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_arm.vcproj +1115 -0
  450. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_base_x64.vcproj +1096 -0
  451. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_cctest.vcproj +265 -0
  452. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_cctest_arm.vcproj +249 -0
  453. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_cctest_x64.vcproj +257 -0
  454. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_mksnapshot.vcproj +145 -0
  455. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_mksnapshot_x64.vcproj +145 -0
  456. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_process_sample.vcproj +145 -0
  457. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_process_sample_arm.vcproj +145 -0
  458. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_process_sample_x64.vcproj +161 -0
  459. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample.vcproj +145 -0
  460. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_arm.vcproj +145 -0
  461. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_shell_sample_x64.vcproj +161 -0
  462. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot.vcproj +142 -0
  463. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot_cc.vcproj +92 -0
  464. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot_cc_x64.vcproj +92 -0
  465. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_snapshot_x64.vcproj +142 -0
  466. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_x64.sln +101 -0
  467. data/ext/v8/upstream/2.3.3/tools/visual_studio/v8_x64.vcproj +227 -0
  468. data/ext/v8/upstream/2.3.3/tools/visual_studio/x64.vsprops +17 -0
  469. data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.bat +29 -0
  470. data/ext/v8/upstream/2.3.3/tools/windows-tick-processor.py +137 -0
  471. data/ext/v8/upstream/Makefile +38 -0
  472. data/ext/v8/upstream/build/scons/CHANGES.txt +5183 -0
  473. data/ext/v8/upstream/build/scons/LICENSE.txt +20 -0
  474. data/ext/v8/upstream/build/scons/MANIFEST +202 -0
  475. data/ext/v8/upstream/build/scons/PKG-INFO +13 -0
  476. data/ext/v8/upstream/build/scons/README.txt +273 -0
  477. data/ext/v8/upstream/build/scons/RELEASE.txt +1040 -0
  478. data/ext/v8/upstream/build/scons/build/lib/SCons/Action.py +1256 -0
  479. data/ext/v8/upstream/build/scons/build/lib/SCons/Builder.py +868 -0
  480. data/ext/v8/upstream/build/scons/build/lib/SCons/CacheDir.py +217 -0
  481. data/ext/v8/upstream/build/scons/build/lib/SCons/Conftest.py +794 -0
  482. data/ext/v8/upstream/build/scons/build/lib/SCons/Debug.py +237 -0
  483. data/ext/v8/upstream/build/scons/build/lib/SCons/Defaults.py +485 -0
  484. data/ext/v8/upstream/build/scons/build/lib/SCons/Environment.py +2327 -0
  485. data/ext/v8/upstream/build/scons/build/lib/SCons/Errors.py +207 -0
  486. data/ext/v8/upstream/build/scons/build/lib/SCons/Executor.py +636 -0
  487. data/ext/v8/upstream/build/scons/build/lib/SCons/Job.py +435 -0
  488. data/ext/v8/upstream/build/scons/build/lib/SCons/Memoize.py +292 -0
  489. data/ext/v8/upstream/build/scons/build/lib/SCons/Node/Alias.py +153 -0
  490. data/ext/v8/upstream/build/scons/build/lib/SCons/Node/FS.py +3220 -0
  491. data/ext/v8/upstream/build/scons/build/lib/SCons/Node/Python.py +128 -0
  492. data/ext/v8/upstream/build/scons/build/lib/SCons/Node/__init__.py +1341 -0
  493. data/ext/v8/upstream/build/scons/build/lib/SCons/Options/BoolOption.py +50 -0
  494. data/ext/v8/upstream/build/scons/build/lib/SCons/Options/EnumOption.py +50 -0
  495. data/ext/v8/upstream/build/scons/build/lib/SCons/Options/ListOption.py +50 -0
  496. data/ext/v8/upstream/build/scons/build/lib/SCons/Options/PackageOption.py +50 -0
  497. data/ext/v8/upstream/build/scons/build/lib/SCons/Options/PathOption.py +76 -0
  498. data/ext/v8/upstream/build/scons/build/lib/SCons/Options/__init__.py +74 -0
  499. data/ext/v8/upstream/build/scons/build/lib/SCons/PathList.py +232 -0
  500. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/__init__.py +236 -0
  501. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/aix.py +70 -0
  502. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/cygwin.py +55 -0
  503. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/darwin.py +46 -0
  504. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/hpux.py +46 -0
  505. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/irix.py +44 -0
  506. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/os2.py +58 -0
  507. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/posix.py +264 -0
  508. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/sunos.py +50 -0
  509. data/ext/v8/upstream/build/scons/build/lib/SCons/Platform/win32.py +386 -0
  510. data/ext/v8/upstream/build/scons/build/lib/SCons/SConf.py +1038 -0
  511. data/ext/v8/upstream/build/scons/build/lib/SCons/SConsign.py +381 -0
  512. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/C.py +132 -0
  513. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/D.py +74 -0
  514. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/Dir.py +111 -0
  515. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/Fortran.py +320 -0
  516. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/IDL.py +48 -0
  517. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/LaTeX.py +378 -0
  518. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/Prog.py +103 -0
  519. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/RC.py +55 -0
  520. data/ext/v8/upstream/build/scons/build/lib/SCons/Scanner/__init__.py +415 -0
  521. data/ext/v8/upstream/build/scons/build/lib/SCons/Script/Interactive.py +386 -0
  522. data/ext/v8/upstream/build/scons/build/lib/SCons/Script/Main.py +1360 -0
  523. data/ext/v8/upstream/build/scons/build/lib/SCons/Script/SConsOptions.py +944 -0
  524. data/ext/v8/upstream/build/scons/build/lib/SCons/Script/SConscript.py +642 -0
  525. data/ext/v8/upstream/build/scons/build/lib/SCons/Script/__init__.py +414 -0
  526. data/ext/v8/upstream/build/scons/build/lib/SCons/Sig.py +63 -0
  527. data/ext/v8/upstream/build/scons/build/lib/SCons/Subst.py +911 -0
  528. data/ext/v8/upstream/build/scons/build/lib/SCons/Taskmaster.py +1030 -0
  529. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/386asm.py +61 -0
  530. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/BitKeeper.py +65 -0
  531. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/CVS.py +73 -0
  532. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/FortranCommon.py +247 -0
  533. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/JavaCommon.py +324 -0
  534. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/__init__.py +56 -0
  535. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/arch.py +61 -0
  536. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/common.py +210 -0
  537. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/netframework.py +84 -0
  538. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/sdk.py +321 -0
  539. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/vc.py +367 -0
  540. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/MSCommon/vs.py +497 -0
  541. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/Perforce.py +104 -0
  542. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/PharLapCommon.py +138 -0
  543. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/RCS.py +64 -0
  544. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/SCCS.py +64 -0
  545. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/Subversion.py +71 -0
  546. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/__init__.py +675 -0
  547. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixc++.py +82 -0
  548. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixcc.py +74 -0
  549. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixf77.py +80 -0
  550. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/aixlink.py +76 -0
  551. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/applelink.py +71 -0
  552. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ar.py +63 -0
  553. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/as.py +78 -0
  554. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/bcc32.py +82 -0
  555. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/c++.py +99 -0
  556. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/cc.py +114 -0
  557. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/cvf.py +58 -0
  558. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/default.py +50 -0
  559. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dmd.py +224 -0
  560. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dvi.py +64 -0
  561. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dvipdf.py +125 -0
  562. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/dvips.py +94 -0
  563. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/f77.py +62 -0
  564. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/f90.py +62 -0
  565. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/f95.py +63 -0
  566. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/filesystem.py +98 -0
  567. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/fortran.py +63 -0
  568. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/g++.py +90 -0
  569. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/g77.py +73 -0
  570. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gas.py +53 -0
  571. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gcc.py +80 -0
  572. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gfortran.py +64 -0
  573. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gnulink.py +63 -0
  574. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/gs.py +81 -0
  575. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/hpc++.py +85 -0
  576. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/hpcc.py +53 -0
  577. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/hplink.py +77 -0
  578. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/icc.py +59 -0
  579. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/icl.py +52 -0
  580. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ifl.py +72 -0
  581. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ifort.py +90 -0
  582. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ilink.py +59 -0
  583. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ilink32.py +60 -0
  584. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/install.py +229 -0
  585. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/intelc.py +490 -0
  586. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/ipkg.py +71 -0
  587. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/jar.py +110 -0
  588. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/javac.py +234 -0
  589. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/javah.py +138 -0
  590. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/latex.py +79 -0
  591. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/lex.py +99 -0
  592. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/link.py +121 -0
  593. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/linkloc.py +112 -0
  594. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/m4.py +63 -0
  595. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/masm.py +77 -0
  596. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/midl.py +90 -0
  597. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mingw.py +159 -0
  598. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mslib.py +64 -0
  599. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mslink.py +266 -0
  600. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mssdk.py +50 -0
  601. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/msvc.py +269 -0
  602. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/msvs.py +1439 -0
  603. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mwcc.py +208 -0
  604. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/mwld.py +107 -0
  605. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/nasm.py +72 -0
  606. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/__init__.py +314 -0
  607. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/ipk.py +185 -0
  608. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/msi.py +526 -0
  609. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/rpm.py +367 -0
  610. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/src_tarbz2.py +43 -0
  611. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/src_targz.py +43 -0
  612. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/src_zip.py +43 -0
  613. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/tarbz2.py +44 -0
  614. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/targz.py +44 -0
  615. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/packaging/zip.py +44 -0
  616. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/pdf.py +78 -0
  617. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/pdflatex.py +83 -0
  618. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/pdftex.py +108 -0
  619. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/qt.py +336 -0
  620. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/rmic.py +121 -0
  621. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/rpcgen.py +70 -0
  622. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/rpm.py +132 -0
  623. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgiar.py +68 -0
  624. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgic++.py +58 -0
  625. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgicc.py +53 -0
  626. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sgilink.py +63 -0
  627. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunar.py +67 -0
  628. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunc++.py +142 -0
  629. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/suncc.py +58 -0
  630. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunf77.py +63 -0
  631. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunf90.py +64 -0
  632. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunf95.py +64 -0
  633. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/sunlink.py +77 -0
  634. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/swig.py +186 -0
  635. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/tar.py +73 -0
  636. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/tex.py +805 -0
  637. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/textfile.py +175 -0
  638. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/tlib.py +53 -0
  639. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/wix.py +100 -0
  640. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/yacc.py +131 -0
  641. data/ext/v8/upstream/build/scons/build/lib/SCons/Tool/zip.py +100 -0
  642. data/ext/v8/upstream/build/scons/build/lib/SCons/Util.py +1645 -0
  643. data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/BoolVariable.py +91 -0
  644. data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/EnumVariable.py +107 -0
  645. data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/ListVariable.py +139 -0
  646. data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/PackageVariable.py +109 -0
  647. data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/PathVariable.py +147 -0
  648. data/ext/v8/upstream/build/scons/build/lib/SCons/Variables/__init__.py +317 -0
  649. data/ext/v8/upstream/build/scons/build/lib/SCons/Warnings.py +228 -0
  650. data/ext/v8/upstream/build/scons/build/lib/SCons/__init__.py +49 -0
  651. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/__init__.py +302 -0
  652. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_UserString.py +98 -0
  653. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_hashlib.py +91 -0
  654. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_itertools.py +124 -0
  655. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_optparse.py +1725 -0
  656. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_sets.py +583 -0
  657. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_sets15.py +176 -0
  658. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_shlex.py +325 -0
  659. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_subprocess.py +1296 -0
  660. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/_scons_textwrap.py +382 -0
  661. data/ext/v8/upstream/build/scons/build/lib/SCons/compat/builtins.py +187 -0
  662. data/ext/v8/upstream/build/scons/build/lib/SCons/cpp.py +598 -0
  663. data/ext/v8/upstream/build/scons/build/lib/SCons/dblite.py +248 -0
  664. data/ext/v8/upstream/build/scons/build/lib/SCons/exitfuncs.py +77 -0
  665. data/ext/v8/upstream/build/scons/build/scripts/scons +184 -0
  666. data/ext/v8/upstream/build/scons/build/scripts/scons-time +1529 -0
  667. data/ext/v8/upstream/build/scons/build/scripts/scons.bat +31 -0
  668. data/ext/v8/upstream/build/scons/build/scripts/sconsign +508 -0
  669. data/ext/v8/upstream/build/scons/engine/SCons/Action.py +1256 -0
  670. data/ext/v8/upstream/build/scons/engine/SCons/Builder.py +868 -0
  671. data/ext/v8/upstream/build/scons/engine/SCons/CacheDir.py +217 -0
  672. data/ext/v8/upstream/build/scons/engine/SCons/Conftest.py +794 -0
  673. data/ext/v8/upstream/build/scons/engine/SCons/Debug.py +237 -0
  674. data/ext/v8/upstream/build/scons/engine/SCons/Defaults.py +485 -0
  675. data/ext/v8/upstream/build/scons/engine/SCons/Environment.py +2327 -0
  676. data/ext/v8/upstream/build/scons/engine/SCons/Errors.py +207 -0
  677. data/ext/v8/upstream/build/scons/engine/SCons/Executor.py +636 -0
  678. data/ext/v8/upstream/build/scons/engine/SCons/Job.py +435 -0
  679. data/ext/v8/upstream/build/scons/engine/SCons/Memoize.py +292 -0
  680. data/ext/v8/upstream/build/scons/engine/SCons/Node/Alias.py +153 -0
  681. data/ext/v8/upstream/build/scons/engine/SCons/Node/FS.py +3220 -0
  682. data/ext/v8/upstream/build/scons/engine/SCons/Node/Python.py +128 -0
  683. data/ext/v8/upstream/build/scons/engine/SCons/Node/__init__.py +1341 -0
  684. data/ext/v8/upstream/build/scons/engine/SCons/Options/BoolOption.py +50 -0
  685. data/ext/v8/upstream/build/scons/engine/SCons/Options/EnumOption.py +50 -0
  686. data/ext/v8/upstream/build/scons/engine/SCons/Options/ListOption.py +50 -0
  687. data/ext/v8/upstream/build/scons/engine/SCons/Options/PackageOption.py +50 -0
  688. data/ext/v8/upstream/build/scons/engine/SCons/Options/PathOption.py +76 -0
  689. data/ext/v8/upstream/build/scons/engine/SCons/Options/__init__.py +74 -0
  690. data/ext/v8/upstream/build/scons/engine/SCons/PathList.py +232 -0
  691. data/ext/v8/upstream/build/scons/engine/SCons/Platform/__init__.py +236 -0
  692. data/ext/v8/upstream/build/scons/engine/SCons/Platform/aix.py +70 -0
  693. data/ext/v8/upstream/build/scons/engine/SCons/Platform/cygwin.py +55 -0
  694. data/ext/v8/upstream/build/scons/engine/SCons/Platform/darwin.py +46 -0
  695. data/ext/v8/upstream/build/scons/engine/SCons/Platform/hpux.py +46 -0
  696. data/ext/v8/upstream/build/scons/engine/SCons/Platform/irix.py +44 -0
  697. data/ext/v8/upstream/build/scons/engine/SCons/Platform/os2.py +58 -0
  698. data/ext/v8/upstream/build/scons/engine/SCons/Platform/posix.py +264 -0
  699. data/ext/v8/upstream/build/scons/engine/SCons/Platform/sunos.py +50 -0
  700. data/ext/v8/upstream/build/scons/engine/SCons/Platform/win32.py +386 -0
  701. data/ext/v8/upstream/build/scons/engine/SCons/SConf.py +1038 -0
  702. data/ext/v8/upstream/build/scons/engine/SCons/SConsign.py +381 -0
  703. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/C.py +132 -0
  704. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/D.py +74 -0
  705. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/Dir.py +111 -0
  706. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/Fortran.py +320 -0
  707. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/IDL.py +48 -0
  708. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/LaTeX.py +378 -0
  709. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/Prog.py +103 -0
  710. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/RC.py +55 -0
  711. data/ext/v8/upstream/build/scons/engine/SCons/Scanner/__init__.py +415 -0
  712. data/ext/v8/upstream/build/scons/engine/SCons/Script/Interactive.py +386 -0
  713. data/ext/v8/upstream/build/scons/engine/SCons/Script/Main.py +1360 -0
  714. data/ext/v8/upstream/build/scons/engine/SCons/Script/SConsOptions.py +944 -0
  715. data/ext/v8/upstream/build/scons/engine/SCons/Script/SConscript.py +642 -0
  716. data/ext/v8/upstream/build/scons/engine/SCons/Script/__init__.py +414 -0
  717. data/ext/v8/upstream/build/scons/engine/SCons/Sig.py +63 -0
  718. data/ext/v8/upstream/build/scons/engine/SCons/Subst.py +911 -0
  719. data/ext/v8/upstream/build/scons/engine/SCons/Taskmaster.py +1030 -0
  720. data/ext/v8/upstream/build/scons/engine/SCons/Tool/386asm.py +61 -0
  721. data/ext/v8/upstream/build/scons/engine/SCons/Tool/BitKeeper.py +65 -0
  722. data/ext/v8/upstream/build/scons/engine/SCons/Tool/CVS.py +73 -0
  723. data/ext/v8/upstream/build/scons/engine/SCons/Tool/FortranCommon.py +247 -0
  724. data/ext/v8/upstream/build/scons/engine/SCons/Tool/JavaCommon.py +324 -0
  725. data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/__init__.py +56 -0
  726. data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/arch.py +61 -0
  727. data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/common.py +210 -0
  728. data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/netframework.py +84 -0
  729. data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/sdk.py +321 -0
  730. data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/vc.py +367 -0
  731. data/ext/v8/upstream/build/scons/engine/SCons/Tool/MSCommon/vs.py +497 -0
  732. data/ext/v8/upstream/build/scons/engine/SCons/Tool/Perforce.py +104 -0
  733. data/ext/v8/upstream/build/scons/engine/SCons/Tool/PharLapCommon.py +138 -0
  734. data/ext/v8/upstream/build/scons/engine/SCons/Tool/RCS.py +64 -0
  735. data/ext/v8/upstream/build/scons/engine/SCons/Tool/SCCS.py +64 -0
  736. data/ext/v8/upstream/build/scons/engine/SCons/Tool/Subversion.py +71 -0
  737. data/ext/v8/upstream/build/scons/engine/SCons/Tool/__init__.py +675 -0
  738. data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixc++.py +82 -0
  739. data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixcc.py +74 -0
  740. data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixf77.py +80 -0
  741. data/ext/v8/upstream/build/scons/engine/SCons/Tool/aixlink.py +76 -0
  742. data/ext/v8/upstream/build/scons/engine/SCons/Tool/applelink.py +71 -0
  743. data/ext/v8/upstream/build/scons/engine/SCons/Tool/ar.py +63 -0
  744. data/ext/v8/upstream/build/scons/engine/SCons/Tool/as.py +78 -0
  745. data/ext/v8/upstream/build/scons/engine/SCons/Tool/bcc32.py +82 -0
  746. data/ext/v8/upstream/build/scons/engine/SCons/Tool/c++.py +99 -0
  747. data/ext/v8/upstream/build/scons/engine/SCons/Tool/cc.py +114 -0
  748. data/ext/v8/upstream/build/scons/engine/SCons/Tool/cvf.py +58 -0
  749. data/ext/v8/upstream/build/scons/engine/SCons/Tool/default.py +50 -0
  750. data/ext/v8/upstream/build/scons/engine/SCons/Tool/dmd.py +224 -0
  751. data/ext/v8/upstream/build/scons/engine/SCons/Tool/dvi.py +64 -0
  752. data/ext/v8/upstream/build/scons/engine/SCons/Tool/dvipdf.py +125 -0
  753. data/ext/v8/upstream/build/scons/engine/SCons/Tool/dvips.py +94 -0
  754. data/ext/v8/upstream/build/scons/engine/SCons/Tool/f77.py +62 -0
  755. data/ext/v8/upstream/build/scons/engine/SCons/Tool/f90.py +62 -0
  756. data/ext/v8/upstream/build/scons/engine/SCons/Tool/f95.py +63 -0
  757. data/ext/v8/upstream/build/scons/engine/SCons/Tool/filesystem.py +98 -0
  758. data/ext/v8/upstream/build/scons/engine/SCons/Tool/fortran.py +63 -0
  759. data/ext/v8/upstream/build/scons/engine/SCons/Tool/g++.py +90 -0
  760. data/ext/v8/upstream/build/scons/engine/SCons/Tool/g77.py +73 -0
  761. data/ext/v8/upstream/build/scons/engine/SCons/Tool/gas.py +53 -0
  762. data/ext/v8/upstream/build/scons/engine/SCons/Tool/gcc.py +80 -0
  763. data/ext/v8/upstream/build/scons/engine/SCons/Tool/gfortran.py +64 -0
  764. data/ext/v8/upstream/build/scons/engine/SCons/Tool/gnulink.py +63 -0
  765. data/ext/v8/upstream/build/scons/engine/SCons/Tool/gs.py +81 -0
  766. data/ext/v8/upstream/build/scons/engine/SCons/Tool/hpc++.py +85 -0
  767. data/ext/v8/upstream/build/scons/engine/SCons/Tool/hpcc.py +53 -0
  768. data/ext/v8/upstream/build/scons/engine/SCons/Tool/hplink.py +77 -0
  769. data/ext/v8/upstream/build/scons/engine/SCons/Tool/icc.py +59 -0
  770. data/ext/v8/upstream/build/scons/engine/SCons/Tool/icl.py +52 -0
  771. data/ext/v8/upstream/build/scons/engine/SCons/Tool/ifl.py +72 -0
  772. data/ext/v8/upstream/build/scons/engine/SCons/Tool/ifort.py +90 -0
  773. data/ext/v8/upstream/build/scons/engine/SCons/Tool/ilink.py +59 -0
  774. data/ext/v8/upstream/build/scons/engine/SCons/Tool/ilink32.py +60 -0
  775. data/ext/v8/upstream/build/scons/engine/SCons/Tool/install.py +229 -0
  776. data/ext/v8/upstream/build/scons/engine/SCons/Tool/intelc.py +490 -0
  777. data/ext/v8/upstream/build/scons/engine/SCons/Tool/ipkg.py +71 -0
  778. data/ext/v8/upstream/build/scons/engine/SCons/Tool/jar.py +110 -0
  779. data/ext/v8/upstream/build/scons/engine/SCons/Tool/javac.py +234 -0
  780. data/ext/v8/upstream/build/scons/engine/SCons/Tool/javah.py +138 -0
  781. data/ext/v8/upstream/build/scons/engine/SCons/Tool/latex.py +79 -0
  782. data/ext/v8/upstream/build/scons/engine/SCons/Tool/lex.py +99 -0
  783. data/ext/v8/upstream/build/scons/engine/SCons/Tool/link.py +121 -0
  784. data/ext/v8/upstream/build/scons/engine/SCons/Tool/linkloc.py +112 -0
  785. data/ext/v8/upstream/build/scons/engine/SCons/Tool/m4.py +63 -0
  786. data/ext/v8/upstream/build/scons/engine/SCons/Tool/masm.py +77 -0
  787. data/ext/v8/upstream/build/scons/engine/SCons/Tool/midl.py +90 -0
  788. data/ext/v8/upstream/build/scons/engine/SCons/Tool/mingw.py +159 -0
  789. data/ext/v8/upstream/build/scons/engine/SCons/Tool/mslib.py +64 -0
  790. data/ext/v8/upstream/build/scons/engine/SCons/Tool/mslink.py +266 -0
  791. data/ext/v8/upstream/build/scons/engine/SCons/Tool/mssdk.py +50 -0
  792. data/ext/v8/upstream/build/scons/engine/SCons/Tool/msvc.py +269 -0
  793. data/ext/v8/upstream/build/scons/engine/SCons/Tool/msvs.py +1439 -0
  794. data/ext/v8/upstream/build/scons/engine/SCons/Tool/mwcc.py +208 -0
  795. data/ext/v8/upstream/build/scons/engine/SCons/Tool/mwld.py +107 -0
  796. data/ext/v8/upstream/build/scons/engine/SCons/Tool/nasm.py +72 -0
  797. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/__init__.py +314 -0
  798. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/ipk.py +185 -0
  799. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/msi.py +526 -0
  800. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/rpm.py +367 -0
  801. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/src_tarbz2.py +43 -0
  802. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/src_targz.py +43 -0
  803. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/src_zip.py +43 -0
  804. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/tarbz2.py +44 -0
  805. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/targz.py +44 -0
  806. data/ext/v8/upstream/build/scons/engine/SCons/Tool/packaging/zip.py +44 -0
  807. data/ext/v8/upstream/build/scons/engine/SCons/Tool/pdf.py +78 -0
  808. data/ext/v8/upstream/build/scons/engine/SCons/Tool/pdflatex.py +83 -0
  809. data/ext/v8/upstream/build/scons/engine/SCons/Tool/pdftex.py +108 -0
  810. data/ext/v8/upstream/build/scons/engine/SCons/Tool/qt.py +336 -0
  811. data/ext/v8/upstream/build/scons/engine/SCons/Tool/rmic.py +121 -0
  812. data/ext/v8/upstream/build/scons/engine/SCons/Tool/rpcgen.py +70 -0
  813. data/ext/v8/upstream/build/scons/engine/SCons/Tool/rpm.py +132 -0
  814. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgiar.py +68 -0
  815. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgic++.py +58 -0
  816. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgicc.py +53 -0
  817. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sgilink.py +63 -0
  818. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunar.py +67 -0
  819. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunc++.py +142 -0
  820. data/ext/v8/upstream/build/scons/engine/SCons/Tool/suncc.py +58 -0
  821. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunf77.py +63 -0
  822. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunf90.py +64 -0
  823. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunf95.py +64 -0
  824. data/ext/v8/upstream/build/scons/engine/SCons/Tool/sunlink.py +77 -0
  825. data/ext/v8/upstream/build/scons/engine/SCons/Tool/swig.py +186 -0
  826. data/ext/v8/upstream/build/scons/engine/SCons/Tool/tar.py +73 -0
  827. data/ext/v8/upstream/build/scons/engine/SCons/Tool/tex.py +805 -0
  828. data/ext/v8/upstream/build/scons/engine/SCons/Tool/textfile.py +175 -0
  829. data/ext/v8/upstream/build/scons/engine/SCons/Tool/tlib.py +53 -0
  830. data/ext/v8/upstream/build/scons/engine/SCons/Tool/wix.py +100 -0
  831. data/ext/v8/upstream/build/scons/engine/SCons/Tool/yacc.py +131 -0
  832. data/ext/v8/upstream/build/scons/engine/SCons/Tool/zip.py +100 -0
  833. data/ext/v8/upstream/build/scons/engine/SCons/Util.py +1645 -0
  834. data/ext/v8/upstream/build/scons/engine/SCons/Variables/BoolVariable.py +91 -0
  835. data/ext/v8/upstream/build/scons/engine/SCons/Variables/EnumVariable.py +107 -0
  836. data/ext/v8/upstream/build/scons/engine/SCons/Variables/ListVariable.py +139 -0
  837. data/ext/v8/upstream/build/scons/engine/SCons/Variables/PackageVariable.py +109 -0
  838. data/ext/v8/upstream/build/scons/engine/SCons/Variables/PathVariable.py +147 -0
  839. data/ext/v8/upstream/build/scons/engine/SCons/Variables/__init__.py +317 -0
  840. data/ext/v8/upstream/build/scons/engine/SCons/Warnings.py +228 -0
  841. data/ext/v8/upstream/build/scons/engine/SCons/__init__.py +49 -0
  842. data/ext/v8/upstream/build/scons/engine/SCons/compat/__init__.py +302 -0
  843. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_UserString.py +98 -0
  844. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_hashlib.py +91 -0
  845. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_itertools.py +124 -0
  846. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_optparse.py +1725 -0
  847. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_sets.py +583 -0
  848. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_sets15.py +176 -0
  849. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_shlex.py +325 -0
  850. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_subprocess.py +1296 -0
  851. data/ext/v8/upstream/build/scons/engine/SCons/compat/_scons_textwrap.py +382 -0
  852. data/ext/v8/upstream/build/scons/engine/SCons/compat/builtins.py +187 -0
  853. data/ext/v8/upstream/build/scons/engine/SCons/cpp.py +598 -0
  854. data/ext/v8/upstream/build/scons/engine/SCons/dblite.py +248 -0
  855. data/ext/v8/upstream/build/scons/engine/SCons/exitfuncs.py +77 -0
  856. data/ext/v8/upstream/build/scons/install/bin/scons +184 -0
  857. data/ext/v8/upstream/build/scons/install/bin/scons-1.2.0.d20100117 +184 -0
  858. data/ext/v8/upstream/build/scons/install/bin/scons-time +1529 -0
  859. data/ext/v8/upstream/build/scons/install/bin/scons-time-1.2.0.d20100117 +1529 -0
  860. data/ext/v8/upstream/build/scons/install/bin/sconsign +508 -0
  861. data/ext/v8/upstream/build/scons/install/bin/sconsign-1.2.0.d20100117 +508 -0
  862. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Action.py +1256 -0
  863. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Action.pyc +0 -0
  864. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Builder.py +868 -0
  865. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Builder.pyc +0 -0
  866. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/CacheDir.py +217 -0
  867. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/CacheDir.pyc +0 -0
  868. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Conftest.py +794 -0
  869. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Conftest.pyc +0 -0
  870. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Debug.py +237 -0
  871. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Debug.pyc +0 -0
  872. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Defaults.py +485 -0
  873. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Defaults.pyc +0 -0
  874. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Environment.py +2327 -0
  875. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Environment.pyc +0 -0
  876. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Errors.py +207 -0
  877. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Errors.pyc +0 -0
  878. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Executor.py +636 -0
  879. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Executor.pyc +0 -0
  880. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Job.py +435 -0
  881. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Job.pyc +0 -0
  882. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Memoize.py +292 -0
  883. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Memoize.pyc +0 -0
  884. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Alias.py +153 -0
  885. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Alias.pyc +0 -0
  886. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/FS.py +3220 -0
  887. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/FS.pyc +0 -0
  888. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Python.py +128 -0
  889. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/Python.pyc +0 -0
  890. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/__init__.py +1341 -0
  891. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Node/__init__.pyc +0 -0
  892. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/BoolOption.py +50 -0
  893. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/BoolOption.pyc +0 -0
  894. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/EnumOption.py +50 -0
  895. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/EnumOption.pyc +0 -0
  896. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/ListOption.py +50 -0
  897. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/ListOption.pyc +0 -0
  898. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PackageOption.py +50 -0
  899. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PackageOption.pyc +0 -0
  900. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PathOption.py +76 -0
  901. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/PathOption.pyc +0 -0
  902. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/__init__.py +74 -0
  903. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Options/__init__.pyc +0 -0
  904. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/PathList.py +232 -0
  905. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/PathList.pyc +0 -0
  906. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/__init__.py +236 -0
  907. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/__init__.pyc +0 -0
  908. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/aix.py +70 -0
  909. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/aix.pyc +0 -0
  910. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/cygwin.py +55 -0
  911. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/cygwin.pyc +0 -0
  912. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/darwin.py +46 -0
  913. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/darwin.pyc +0 -0
  914. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/hpux.py +46 -0
  915. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/hpux.pyc +0 -0
  916. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/irix.py +44 -0
  917. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/irix.pyc +0 -0
  918. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/os2.py +58 -0
  919. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/os2.pyc +0 -0
  920. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/posix.py +264 -0
  921. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/posix.pyc +0 -0
  922. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/sunos.py +50 -0
  923. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/sunos.pyc +0 -0
  924. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/win32.py +386 -0
  925. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Platform/win32.pyc +0 -0
  926. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConf.py +1038 -0
  927. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConf.pyc +0 -0
  928. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConsign.py +381 -0
  929. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/SConsign.pyc +0 -0
  930. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/C.py +132 -0
  931. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/C.pyc +0 -0
  932. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/D.py +74 -0
  933. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/D.pyc +0 -0
  934. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Dir.py +111 -0
  935. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Dir.pyc +0 -0
  936. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Fortran.py +320 -0
  937. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Fortran.pyc +0 -0
  938. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/IDL.py +48 -0
  939. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/IDL.pyc +0 -0
  940. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/LaTeX.py +378 -0
  941. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/LaTeX.pyc +0 -0
  942. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Prog.py +103 -0
  943. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/Prog.pyc +0 -0
  944. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/RC.py +55 -0
  945. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/RC.pyc +0 -0
  946. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/__init__.py +415 -0
  947. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Scanner/__init__.pyc +0 -0
  948. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Interactive.py +386 -0
  949. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Interactive.pyc +0 -0
  950. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Main.py +1360 -0
  951. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/Main.pyc +0 -0
  952. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConsOptions.py +944 -0
  953. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConsOptions.pyc +0 -0
  954. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConscript.py +642 -0
  955. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/SConscript.pyc +0 -0
  956. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/__init__.py +414 -0
  957. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Script/__init__.pyc +0 -0
  958. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Sig.py +63 -0
  959. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Sig.pyc +0 -0
  960. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Subst.py +911 -0
  961. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Subst.pyc +0 -0
  962. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Taskmaster.py +1030 -0
  963. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Taskmaster.pyc +0 -0
  964. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/386asm.py +61 -0
  965. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/386asm.pyc +0 -0
  966. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/BitKeeper.py +65 -0
  967. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/BitKeeper.pyc +0 -0
  968. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/CVS.py +73 -0
  969. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/CVS.pyc +0 -0
  970. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/FortranCommon.py +247 -0
  971. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/FortranCommon.pyc +0 -0
  972. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/JavaCommon.py +324 -0
  973. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/JavaCommon.pyc +0 -0
  974. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/__init__.py +56 -0
  975. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/__init__.pyc +0 -0
  976. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/arch.py +61 -0
  977. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/arch.pyc +0 -0
  978. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.py +210 -0
  979. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pyc +0 -0
  980. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/netframework.py +84 -0
  981. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/netframework.pyc +0 -0
  982. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/sdk.py +321 -0
  983. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/sdk.pyc +0 -0
  984. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vc.py +367 -0
  985. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vc.pyc +0 -0
  986. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vs.py +497 -0
  987. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/vs.pyc +0 -0
  988. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Perforce.py +104 -0
  989. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Perforce.pyc +0 -0
  990. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/PharLapCommon.py +138 -0
  991. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/PharLapCommon.pyc +0 -0
  992. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/RCS.py +64 -0
  993. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/RCS.pyc +0 -0
  994. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/SCCS.py +64 -0
  995. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/SCCS.pyc +0 -0
  996. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Subversion.py +71 -0
  997. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/Subversion.pyc +0 -0
  998. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/__init__.py +675 -0
  999. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/__init__.pyc +0 -0
  1000. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixc++.py +82 -0
  1001. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixc++.pyc +0 -0
  1002. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixcc.py +74 -0
  1003. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixcc.pyc +0 -0
  1004. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixf77.py +80 -0
  1005. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixf77.pyc +0 -0
  1006. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixlink.py +76 -0
  1007. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/aixlink.pyc +0 -0
  1008. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/applelink.py +71 -0
  1009. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/applelink.pyc +0 -0
  1010. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ar.py +63 -0
  1011. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ar.pyc +0 -0
  1012. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/as.py +78 -0
  1013. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/as.pyc +0 -0
  1014. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/bcc32.py +82 -0
  1015. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/bcc32.pyc +0 -0
  1016. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/c++.py +99 -0
  1017. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/c++.pyc +0 -0
  1018. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cc.py +114 -0
  1019. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cc.pyc +0 -0
  1020. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cvf.py +58 -0
  1021. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/cvf.pyc +0 -0
  1022. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/default.py +50 -0
  1023. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/default.pyc +0 -0
  1024. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dmd.py +224 -0
  1025. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dmd.pyc +0 -0
  1026. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvi.py +64 -0
  1027. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvi.pyc +0 -0
  1028. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvipdf.py +125 -0
  1029. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvipdf.pyc +0 -0
  1030. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvips.py +94 -0
  1031. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/dvips.pyc +0 -0
  1032. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f77.py +62 -0
  1033. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f77.pyc +0 -0
  1034. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f90.py +62 -0
  1035. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f90.pyc +0 -0
  1036. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f95.py +63 -0
  1037. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/f95.pyc +0 -0
  1038. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/filesystem.py +98 -0
  1039. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/filesystem.pyc +0 -0
  1040. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/fortran.py +63 -0
  1041. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/fortran.pyc +0 -0
  1042. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g++.py +90 -0
  1043. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g++.pyc +0 -0
  1044. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g77.py +73 -0
  1045. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/g77.pyc +0 -0
  1046. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gas.py +53 -0
  1047. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gas.pyc +0 -0
  1048. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gcc.py +80 -0
  1049. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gcc.pyc +0 -0
  1050. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gfortran.py +64 -0
  1051. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gfortran.pyc +0 -0
  1052. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gnulink.py +63 -0
  1053. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gnulink.pyc +0 -0
  1054. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gs.py +81 -0
  1055. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/gs.pyc +0 -0
  1056. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpc++.py +85 -0
  1057. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpc++.pyc +0 -0
  1058. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpcc.py +53 -0
  1059. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hpcc.pyc +0 -0
  1060. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hplink.py +77 -0
  1061. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/hplink.pyc +0 -0
  1062. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icc.py +59 -0
  1063. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icc.pyc +0 -0
  1064. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icl.py +52 -0
  1065. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/icl.pyc +0 -0
  1066. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifl.py +72 -0
  1067. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifl.pyc +0 -0
  1068. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifort.py +90 -0
  1069. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ifort.pyc +0 -0
  1070. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink.py +59 -0
  1071. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink.pyc +0 -0
  1072. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink32.py +60 -0
  1073. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ilink32.pyc +0 -0
  1074. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/install.py +229 -0
  1075. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/install.pyc +0 -0
  1076. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/intelc.py +490 -0
  1077. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/intelc.pyc +0 -0
  1078. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ipkg.py +71 -0
  1079. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/ipkg.pyc +0 -0
  1080. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/jar.py +110 -0
  1081. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/jar.pyc +0 -0
  1082. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javac.py +234 -0
  1083. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javac.pyc +0 -0
  1084. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javah.py +138 -0
  1085. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/javah.pyc +0 -0
  1086. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/latex.py +79 -0
  1087. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/latex.pyc +0 -0
  1088. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/lex.py +99 -0
  1089. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/lex.pyc +0 -0
  1090. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/link.py +121 -0
  1091. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/link.pyc +0 -0
  1092. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/linkloc.py +112 -0
  1093. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/linkloc.pyc +0 -0
  1094. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/m4.py +63 -0
  1095. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/m4.pyc +0 -0
  1096. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/masm.py +77 -0
  1097. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/masm.pyc +0 -0
  1098. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/midl.py +90 -0
  1099. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/midl.pyc +0 -0
  1100. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mingw.py +159 -0
  1101. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mingw.pyc +0 -0
  1102. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslib.py +64 -0
  1103. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslib.pyc +0 -0
  1104. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslink.py +266 -0
  1105. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mslink.pyc +0 -0
  1106. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mssdk.py +50 -0
  1107. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mssdk.pyc +0 -0
  1108. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvc.py +269 -0
  1109. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvc.pyc +0 -0
  1110. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvs.py +1439 -0
  1111. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/msvs.pyc +0 -0
  1112. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.py +208 -0
  1113. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwcc.pyc +0 -0
  1114. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwld.py +107 -0
  1115. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/mwld.pyc +0 -0
  1116. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/nasm.py +72 -0
  1117. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/nasm.pyc +0 -0
  1118. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/__init__.py +314 -0
  1119. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/__init__.pyc +0 -0
  1120. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/ipk.py +185 -0
  1121. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/ipk.pyc +0 -0
  1122. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/msi.py +526 -0
  1123. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/msi.pyc +0 -0
  1124. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/rpm.py +367 -0
  1125. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/rpm.pyc +0 -0
  1126. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_tarbz2.py +43 -0
  1127. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_tarbz2.pyc +0 -0
  1128. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_targz.py +43 -0
  1129. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_targz.pyc +0 -0
  1130. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_zip.py +43 -0
  1131. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/src_zip.pyc +0 -0
  1132. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/tarbz2.py +44 -0
  1133. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/tarbz2.pyc +0 -0
  1134. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/targz.py +44 -0
  1135. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/targz.pyc +0 -0
  1136. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/zip.py +44 -0
  1137. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/packaging/zip.pyc +0 -0
  1138. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdf.py +78 -0
  1139. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdf.pyc +0 -0
  1140. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdflatex.py +83 -0
  1141. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdflatex.pyc +0 -0
  1142. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdftex.py +108 -0
  1143. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/pdftex.pyc +0 -0
  1144. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/qt.py +336 -0
  1145. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/qt.pyc +0 -0
  1146. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rmic.py +121 -0
  1147. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rmic.pyc +0 -0
  1148. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpcgen.py +70 -0
  1149. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpcgen.pyc +0 -0
  1150. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpm.py +132 -0
  1151. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/rpm.pyc +0 -0
  1152. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgiar.py +68 -0
  1153. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgiar.pyc +0 -0
  1154. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgic++.py +58 -0
  1155. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgic++.pyc +0 -0
  1156. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgicc.py +53 -0
  1157. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgicc.pyc +0 -0
  1158. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgilink.py +63 -0
  1159. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sgilink.pyc +0 -0
  1160. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunar.py +67 -0
  1161. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunar.pyc +0 -0
  1162. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunc++.py +142 -0
  1163. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunc++.pyc +0 -0
  1164. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/suncc.py +58 -0
  1165. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/suncc.pyc +0 -0
  1166. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf77.py +63 -0
  1167. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf77.pyc +0 -0
  1168. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf90.py +64 -0
  1169. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf90.pyc +0 -0
  1170. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf95.py +64 -0
  1171. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunf95.pyc +0 -0
  1172. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunlink.py +77 -0
  1173. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/sunlink.pyc +0 -0
  1174. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/swig.py +186 -0
  1175. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/swig.pyc +0 -0
  1176. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tar.py +73 -0
  1177. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tar.pyc +0 -0
  1178. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tex.py +805 -0
  1179. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tex.pyc +0 -0
  1180. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/textfile.py +175 -0
  1181. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/textfile.pyc +0 -0
  1182. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tlib.py +53 -0
  1183. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/tlib.pyc +0 -0
  1184. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/wix.py +100 -0
  1185. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/wix.pyc +0 -0
  1186. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/yacc.py +131 -0
  1187. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/yacc.pyc +0 -0
  1188. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/zip.py +100 -0
  1189. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Tool/zip.pyc +0 -0
  1190. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Util.py +1645 -0
  1191. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Util.pyc +0 -0
  1192. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/BoolVariable.py +91 -0
  1193. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/BoolVariable.pyc +0 -0
  1194. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/EnumVariable.py +107 -0
  1195. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/EnumVariable.pyc +0 -0
  1196. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.py +139 -0
  1197. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/ListVariable.pyc +0 -0
  1198. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PackageVariable.py +109 -0
  1199. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PackageVariable.pyc +0 -0
  1200. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PathVariable.py +147 -0
  1201. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/PathVariable.pyc +0 -0
  1202. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/__init__.py +317 -0
  1203. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Variables/__init__.pyc +0 -0
  1204. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Warnings.py +228 -0
  1205. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/Warnings.pyc +0 -0
  1206. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/__init__.py +49 -0
  1207. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/__init__.pyc +0 -0
  1208. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/__init__.py +302 -0
  1209. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/__init__.pyc +0 -0
  1210. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_UserString.py +98 -0
  1211. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_UserString.pyc +0 -0
  1212. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_hashlib.py +91 -0
  1213. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_hashlib.pyc +0 -0
  1214. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_itertools.py +124 -0
  1215. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_itertools.pyc +0 -0
  1216. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_optparse.py +1725 -0
  1217. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_optparse.pyc +0 -0
  1218. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets.py +583 -0
  1219. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets.pyc +0 -0
  1220. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets15.py +176 -0
  1221. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_sets15.pyc +0 -0
  1222. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_shlex.py +325 -0
  1223. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_shlex.pyc +0 -0
  1224. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_subprocess.py +1296 -0
  1225. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_subprocess.pyc +0 -0
  1226. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_textwrap.py +382 -0
  1227. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/_scons_textwrap.pyc +0 -0
  1228. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/builtins.py +187 -0
  1229. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/compat/builtins.pyc +0 -0
  1230. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/cpp.py +598 -0
  1231. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/cpp.pyc +0 -0
  1232. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/dblite.py +248 -0
  1233. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/dblite.pyc +0 -0
  1234. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/exitfuncs.py +77 -0
  1235. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/SCons/exitfuncs.pyc +0 -0
  1236. data/ext/v8/upstream/build/scons/install/lib/scons-1.2.0.d20100117/scons-1.2.0.d20100117.egg-info +13 -0
  1237. data/ext/v8/upstream/build/scons/install/man/man1/scons-time.1 +1017 -0
  1238. data/ext/v8/upstream/build/scons/install/man/man1/scons.1 +15179 -0
  1239. data/ext/v8/upstream/build/scons/install/man/man1/sconsign.1 +208 -0
  1240. data/ext/v8/upstream/build/scons/os_spawnv_fix.diff +83 -0
  1241. data/ext/v8/upstream/build/scons/scons-time.1 +1017 -0
  1242. data/ext/v8/upstream/build/scons/scons.1 +15179 -0
  1243. data/ext/v8/upstream/build/scons/sconsign.1 +208 -0
  1244. data/ext/v8/upstream/build/scons/script/scons +184 -0
  1245. data/ext/v8/upstream/build/scons/script/scons-time +1529 -0
  1246. data/ext/v8/upstream/build/scons/script/scons.bat +31 -0
  1247. data/ext/v8/upstream/build/scons/script/sconsign +508 -0
  1248. data/ext/v8/upstream/build/scons/setup.cfg +6 -0
  1249. data/ext/v8/upstream/build/scons/setup.py +427 -0
  1250. data/ext/v8/upstream/build/v8/.gitignore +26 -0
  1251. data/ext/v8/upstream/build/v8/AUTHORS +31 -0
  1252. data/ext/v8/upstream/build/v8/ChangeLog +1916 -0
  1253. data/ext/v8/upstream/build/v8/LICENSE +55 -0
  1254. data/ext/v8/upstream/build/v8/SConstruct +1158 -0
  1255. data/ext/v8/upstream/build/v8/SConstruct.orig +1154 -0
  1256. data/ext/v8/upstream/build/v8/include/v8-debug.h +381 -0
  1257. data/ext/v8/upstream/build/v8/include/v8-profiler.h +353 -0
  1258. data/ext/v8/upstream/build/v8/include/v8.h +3616 -0
  1259. data/ext/v8/upstream/build/v8/src/SConscript +330 -0
  1260. data/ext/v8/upstream/build/v8/src/accessors.cc +661 -0
  1261. data/ext/v8/upstream/build/v8/src/accessors.h +114 -0
  1262. data/ext/v8/upstream/build/v8/src/allocation.cc +198 -0
  1263. data/ext/v8/upstream/build/v8/src/allocation.h +169 -0
  1264. data/ext/v8/upstream/build/v8/src/api.cc +4795 -0
  1265. data/ext/v8/upstream/build/v8/src/api.h +485 -0
  1266. data/ext/v8/upstream/build/v8/src/apinatives.js +110 -0
  1267. data/ext/v8/upstream/build/v8/src/apiutils.h +69 -0
  1268. data/ext/v8/upstream/build/v8/src/arguments.h +96 -0
  1269. data/ext/v8/upstream/build/v8/src/arm/assembler-arm-inl.h +305 -0
  1270. data/ext/v8/upstream/build/v8/src/arm/assembler-arm.cc +2580 -0
  1271. data/ext/v8/upstream/build/v8/src/arm/assembler-arm.h +1275 -0
  1272. data/ext/v8/upstream/build/v8/src/arm/builtins-arm.cc +1320 -0
  1273. data/ext/v8/upstream/build/v8/src/arm/codegen-arm-inl.h +48 -0
  1274. data/ext/v8/upstream/build/v8/src/arm/codegen-arm.cc +11398 -0
  1275. data/ext/v8/upstream/build/v8/src/arm/codegen-arm.h +1102 -0
  1276. data/ext/v8/upstream/build/v8/src/arm/constants-arm.cc +154 -0
  1277. data/ext/v8/upstream/build/v8/src/arm/constants-arm.h +388 -0
  1278. data/ext/v8/upstream/build/v8/src/arm/cpu-arm.cc +142 -0
  1279. data/ext/v8/upstream/build/v8/src/arm/debug-arm.cc +309 -0
  1280. data/ext/v8/upstream/build/v8/src/arm/disasm-arm.cc +1459 -0
  1281. data/ext/v8/upstream/build/v8/src/arm/fast-codegen-arm.cc +241 -0
  1282. data/ext/v8/upstream/build/v8/src/arm/frames-arm.cc +123 -0
  1283. data/ext/v8/upstream/build/v8/src/arm/frames-arm.h +162 -0
  1284. data/ext/v8/upstream/build/v8/src/arm/full-codegen-arm.cc +3178 -0
  1285. data/ext/v8/upstream/build/v8/src/arm/ic-arm.cc +2258 -0
  1286. data/ext/v8/upstream/build/v8/src/arm/jump-target-arm.cc +164 -0
  1287. data/ext/v8/upstream/build/v8/src/arm/macro-assembler-arm.cc +1892 -0
  1288. data/ext/v8/upstream/build/v8/src/arm/macro-assembler-arm.h +727 -0
  1289. data/ext/v8/upstream/build/v8/src/arm/regexp-macro-assembler-arm.cc +1261 -0
  1290. data/ext/v8/upstream/build/v8/src/arm/regexp-macro-assembler-arm.h +266 -0
  1291. data/ext/v8/upstream/build/v8/src/arm/register-allocator-arm-inl.h +100 -0
  1292. data/ext/v8/upstream/build/v8/src/arm/register-allocator-arm.cc +63 -0
  1293. data/ext/v8/upstream/build/v8/src/arm/register-allocator-arm.h +44 -0
  1294. data/ext/v8/upstream/build/v8/src/arm/simulator-arm.cc +2822 -0
  1295. data/ext/v8/upstream/build/v8/src/arm/simulator-arm.h +361 -0
  1296. data/ext/v8/upstream/build/v8/src/arm/stub-cache-arm.cc +2387 -0
  1297. data/ext/v8/upstream/build/v8/src/arm/virtual-frame-arm-inl.h +59 -0
  1298. data/ext/v8/upstream/build/v8/src/arm/virtual-frame-arm.cc +834 -0
  1299. data/ext/v8/upstream/build/v8/src/arm/virtual-frame-arm.h +519 -0
  1300. data/ext/v8/upstream/build/v8/src/array.js +1127 -0
  1301. data/ext/v8/upstream/build/v8/src/assembler.cc +801 -0
  1302. data/ext/v8/upstream/build/v8/src/assembler.h +573 -0
  1303. data/ext/v8/upstream/build/v8/src/ast-inl.h +81 -0
  1304. data/ext/v8/upstream/build/v8/src/ast.cc +1152 -0
  1305. data/ext/v8/upstream/build/v8/src/ast.h +2106 -0
  1306. data/ext/v8/upstream/build/v8/src/bootstrapper.cc +1819 -0
  1307. data/ext/v8/upstream/build/v8/src/bootstrapper.h +118 -0
  1308. data/ext/v8/upstream/build/v8/src/builtins.cc +1529 -0
  1309. data/ext/v8/upstream/build/v8/src/builtins.h +263 -0
  1310. data/ext/v8/upstream/build/v8/src/bytecodes-irregexp.h +104 -0
  1311. data/ext/v8/upstream/build/v8/src/cached-powers.h +119 -0
  1312. data/ext/v8/upstream/build/v8/src/char-predicates-inl.h +86 -0
  1313. data/ext/v8/upstream/build/v8/src/char-predicates.h +65 -0
  1314. data/ext/v8/upstream/build/v8/src/checks.cc +100 -0
  1315. data/ext/v8/upstream/build/v8/src/checks.h +310 -0
  1316. data/ext/v8/upstream/build/v8/src/circular-queue-inl.h +53 -0
  1317. data/ext/v8/upstream/build/v8/src/circular-queue.cc +121 -0
  1318. data/ext/v8/upstream/build/v8/src/circular-queue.h +103 -0
  1319. data/ext/v8/upstream/build/v8/src/code-stubs.cc +177 -0
  1320. data/ext/v8/upstream/build/v8/src/code-stubs.h +177 -0
  1321. data/ext/v8/upstream/build/v8/src/code.h +68 -0
  1322. data/ext/v8/upstream/build/v8/src/codegen-inl.h +60 -0
  1323. data/ext/v8/upstream/build/v8/src/codegen.cc +516 -0
  1324. data/ext/v8/upstream/build/v8/src/codegen.h +897 -0
  1325. data/ext/v8/upstream/build/v8/src/compilation-cache.cc +562 -0
  1326. data/ext/v8/upstream/build/v8/src/compilation-cache.h +102 -0
  1327. data/ext/v8/upstream/build/v8/src/compiler.cc +654 -0
  1328. data/ext/v8/upstream/build/v8/src/compiler.h +299 -0
  1329. data/ext/v8/upstream/build/v8/src/contexts.cc +256 -0
  1330. data/ext/v8/upstream/build/v8/src/contexts.h +342 -0
  1331. data/ext/v8/upstream/build/v8/src/conversions-inl.h +110 -0
  1332. data/ext/v8/upstream/build/v8/src/conversions.cc +1119 -0
  1333. data/ext/v8/upstream/build/v8/src/conversions.h +123 -0
  1334. data/ext/v8/upstream/build/v8/src/counters.cc +78 -0
  1335. data/ext/v8/upstream/build/v8/src/counters.h +239 -0
  1336. data/ext/v8/upstream/build/v8/src/cpu-profiler-inl.h +100 -0
  1337. data/ext/v8/upstream/build/v8/src/cpu-profiler.cc +538 -0
  1338. data/ext/v8/upstream/build/v8/src/cpu-profiler.h +285 -0
  1339. data/ext/v8/upstream/build/v8/src/cpu.h +65 -0
  1340. data/ext/v8/upstream/build/v8/src/d8-debug.cc +356 -0
  1341. data/ext/v8/upstream/build/v8/src/d8-debug.h +155 -0
  1342. data/ext/v8/upstream/build/v8/src/d8-posix.cc +693 -0
  1343. data/ext/v8/upstream/build/v8/src/d8-readline.cc +128 -0
  1344. data/ext/v8/upstream/build/v8/src/d8-windows.cc +42 -0
  1345. data/ext/v8/upstream/build/v8/src/d8.cc +783 -0
  1346. data/ext/v8/upstream/build/v8/src/d8.h +227 -0
  1347. data/ext/v8/upstream/build/v8/src/d8.js +1683 -0
  1348. data/ext/v8/upstream/build/v8/src/data-flow.cc +758 -0
  1349. data/ext/v8/upstream/build/v8/src/data-flow.h +278 -0
  1350. data/ext/v8/upstream/build/v8/src/date.js +1059 -0
  1351. data/ext/v8/upstream/build/v8/src/dateparser-inl.h +123 -0
  1352. data/ext/v8/upstream/build/v8/src/dateparser.cc +178 -0
  1353. data/ext/v8/upstream/build/v8/src/dateparser.h +244 -0
  1354. data/ext/v8/upstream/build/v8/src/debug-agent.cc +427 -0
  1355. data/ext/v8/upstream/build/v8/src/debug-agent.h +129 -0
  1356. data/ext/v8/upstream/build/v8/src/debug-debugger.js +2227 -0
  1357. data/ext/v8/upstream/build/v8/src/debug.cc +3005 -0
  1358. data/ext/v8/upstream/build/v8/src/debug.h +993 -0
  1359. data/ext/v8/upstream/build/v8/src/disasm.h +77 -0
  1360. data/ext/v8/upstream/build/v8/src/disassembler.cc +312 -0
  1361. data/ext/v8/upstream/build/v8/src/disassembler.h +56 -0
  1362. data/ext/v8/upstream/build/v8/src/diy-fp.cc +58 -0
  1363. data/ext/v8/upstream/build/v8/src/diy-fp.h +117 -0
  1364. data/ext/v8/upstream/build/v8/src/double.h +169 -0
  1365. data/ext/v8/upstream/build/v8/src/dtoa-config.c +92 -0
  1366. data/ext/v8/upstream/build/v8/src/dtoa.cc +77 -0
  1367. data/ext/v8/upstream/build/v8/src/dtoa.h +81 -0
  1368. data/ext/v8/upstream/build/v8/src/execution.cc +809 -0
  1369. data/ext/v8/upstream/build/v8/src/execution.h +336 -0
  1370. data/ext/v8/upstream/build/v8/src/factory.cc +1003 -0
  1371. data/ext/v8/upstream/build/v8/src/factory.h +410 -0
  1372. data/ext/v8/upstream/build/v8/src/fast-codegen.cc +746 -0
  1373. data/ext/v8/upstream/build/v8/src/fast-codegen.h +161 -0
  1374. data/ext/v8/upstream/build/v8/src/fast-dtoa.cc +505 -0
  1375. data/ext/v8/upstream/build/v8/src/fast-dtoa.h +58 -0
  1376. data/ext/v8/upstream/build/v8/src/fixed-dtoa.cc +405 -0
  1377. data/ext/v8/upstream/build/v8/src/fixed-dtoa.h +55 -0
  1378. data/ext/v8/upstream/build/v8/src/flag-definitions.h +455 -0
  1379. data/ext/v8/upstream/build/v8/src/flags.cc +551 -0
  1380. data/ext/v8/upstream/build/v8/src/flags.h +81 -0
  1381. data/ext/v8/upstream/build/v8/src/flow-graph.cc +763 -0
  1382. data/ext/v8/upstream/build/v8/src/flow-graph.h +180 -0
  1383. data/ext/v8/upstream/build/v8/src/frame-element.cc +42 -0
  1384. data/ext/v8/upstream/build/v8/src/frame-element.h +273 -0
  1385. data/ext/v8/upstream/build/v8/src/frames-inl.h +217 -0
  1386. data/ext/v8/upstream/build/v8/src/frames.cc +826 -0
  1387. data/ext/v8/upstream/build/v8/src/frames.h +682 -0
  1388. data/ext/v8/upstream/build/v8/src/full-codegen.cc +1443 -0
  1389. data/ext/v8/upstream/build/v8/src/full-codegen.h +548 -0
  1390. data/ext/v8/upstream/build/v8/src/func-name-inferrer.cc +76 -0
  1391. data/ext/v8/upstream/build/v8/src/func-name-inferrer.h +135 -0
  1392. data/ext/v8/upstream/build/v8/src/global-handles.cc +520 -0
  1393. data/ext/v8/upstream/build/v8/src/global-handles.h +180 -0
  1394. data/ext/v8/upstream/build/v8/src/globals.h +669 -0
  1395. data/ext/v8/upstream/build/v8/src/handles-inl.h +76 -0
  1396. data/ext/v8/upstream/build/v8/src/handles.cc +825 -0
  1397. data/ext/v8/upstream/build/v8/src/handles.h +393 -0
  1398. data/ext/v8/upstream/build/v8/src/hashmap.cc +226 -0
  1399. data/ext/v8/upstream/build/v8/src/hashmap.h +120 -0
  1400. data/ext/v8/upstream/build/v8/src/heap-inl.h +493 -0
  1401. data/ext/v8/upstream/build/v8/src/heap-profiler.cc +779 -0
  1402. data/ext/v8/upstream/build/v8/src/heap-profiler.h +323 -0
  1403. data/ext/v8/upstream/build/v8/src/heap.cc +4994 -0
  1404. data/ext/v8/upstream/build/v8/src/heap.h +1984 -0
  1405. data/ext/v8/upstream/build/v8/src/ia32/assembler-ia32-inl.h +360 -0
  1406. data/ext/v8/upstream/build/v8/src/ia32/assembler-ia32.cc +2600 -0
  1407. data/ext/v8/upstream/build/v8/src/ia32/assembler-ia32.h +969 -0
  1408. data/ext/v8/upstream/build/v8/src/ia32/builtins-ia32.cc +1261 -0
  1409. data/ext/v8/upstream/build/v8/src/ia32/codegen-ia32-inl.h +46 -0
  1410. data/ext/v8/upstream/build/v8/src/ia32/codegen-ia32.cc +13968 -0
  1411. data/ext/v8/upstream/build/v8/src/ia32/codegen-ia32.h +1097 -0
  1412. data/ext/v8/upstream/build/v8/src/ia32/cpu-ia32.cc +83 -0
  1413. data/ext/v8/upstream/build/v8/src/ia32/debug-ia32.cc +309 -0
  1414. data/ext/v8/upstream/build/v8/src/ia32/disasm-ia32.cc +1471 -0
  1415. data/ext/v8/upstream/build/v8/src/ia32/fast-codegen-ia32.cc +954 -0
  1416. data/ext/v8/upstream/build/v8/src/ia32/fast-codegen-ia32.h +155 -0
  1417. data/ext/v8/upstream/build/v8/src/ia32/frames-ia32.cc +115 -0
  1418. data/ext/v8/upstream/build/v8/src/ia32/frames-ia32.h +135 -0
  1419. data/ext/v8/upstream/build/v8/src/ia32/full-codegen-ia32.cc +3281 -0
  1420. data/ext/v8/upstream/build/v8/src/ia32/ic-ia32.cc +1966 -0
  1421. data/ext/v8/upstream/build/v8/src/ia32/jump-target-ia32.cc +437 -0
  1422. data/ext/v8/upstream/build/v8/src/ia32/macro-assembler-ia32.cc +1610 -0
  1423. data/ext/v8/upstream/build/v8/src/ia32/macro-assembler-ia32.h +610 -0
  1424. data/ext/v8/upstream/build/v8/src/ia32/regexp-macro-assembler-ia32.cc +1247 -0
  1425. data/ext/v8/upstream/build/v8/src/ia32/regexp-macro-assembler-ia32.h +214 -0
  1426. data/ext/v8/upstream/build/v8/src/ia32/register-allocator-ia32-inl.h +82 -0
  1427. data/ext/v8/upstream/build/v8/src/ia32/register-allocator-ia32.cc +157 -0
  1428. data/ext/v8/upstream/build/v8/src/ia32/register-allocator-ia32.h +43 -0
  1429. data/ext/v8/upstream/build/v8/src/ia32/simulator-ia32.cc +30 -0
  1430. data/ext/v8/upstream/build/v8/src/ia32/simulator-ia32.h +62 -0
  1431. data/ext/v8/upstream/build/v8/src/ia32/stub-cache-ia32.cc +2750 -0
  1432. data/ext/v8/upstream/build/v8/src/ia32/virtual-frame-ia32.cc +1334 -0
  1433. data/ext/v8/upstream/build/v8/src/ia32/virtual-frame-ia32.h +627 -0
  1434. data/ext/v8/upstream/build/v8/src/ic-inl.h +120 -0
  1435. data/ext/v8/upstream/build/v8/src/ic.cc +1827 -0
  1436. data/ext/v8/upstream/build/v8/src/ic.h +515 -0
  1437. data/ext/v8/upstream/build/v8/src/interpreter-irregexp.cc +646 -0
  1438. data/ext/v8/upstream/build/v8/src/interpreter-irregexp.h +48 -0
  1439. data/ext/v8/upstream/build/v8/src/json.js +268 -0
  1440. data/ext/v8/upstream/build/v8/src/jsregexp.cc +5283 -0
  1441. data/ext/v8/upstream/build/v8/src/jsregexp.h +1463 -0
  1442. data/ext/v8/upstream/build/v8/src/jump-target-heavy-inl.h +51 -0
  1443. data/ext/v8/upstream/build/v8/src/jump-target-heavy.cc +429 -0
  1444. data/ext/v8/upstream/build/v8/src/jump-target-heavy.h +244 -0
  1445. data/ext/v8/upstream/build/v8/src/jump-target-inl.h +48 -0
  1446. data/ext/v8/upstream/build/v8/src/jump-target-light-inl.h +56 -0
  1447. data/ext/v8/upstream/build/v8/src/jump-target-light.cc +110 -0
  1448. data/ext/v8/upstream/build/v8/src/jump-target-light.h +192 -0
  1449. data/ext/v8/upstream/build/v8/src/jump-target.cc +91 -0
  1450. data/ext/v8/upstream/build/v8/src/jump-target.h +90 -0
  1451. data/ext/v8/upstream/build/v8/src/list-inl.h +166 -0
  1452. data/ext/v8/upstream/build/v8/src/list.h +159 -0
  1453. data/ext/v8/upstream/build/v8/src/liveedit-debugger.js +1057 -0
  1454. data/ext/v8/upstream/build/v8/src/liveedit.cc +1480 -0
  1455. data/ext/v8/upstream/build/v8/src/liveedit.h +170 -0
  1456. data/ext/v8/upstream/build/v8/src/log-inl.h +59 -0
  1457. data/ext/v8/upstream/build/v8/src/log-utils.cc +497 -0
  1458. data/ext/v8/upstream/build/v8/src/log-utils.h +289 -0
  1459. data/ext/v8/upstream/build/v8/src/log.cc +1561 -0
  1460. data/ext/v8/upstream/build/v8/src/log.h +384 -0
  1461. data/ext/v8/upstream/build/v8/src/macro-assembler.h +86 -0
  1462. data/ext/v8/upstream/build/v8/src/macros.py +177 -0
  1463. data/ext/v8/upstream/build/v8/src/mark-compact.cc +2330 -0
  1464. data/ext/v8/upstream/build/v8/src/mark-compact.h +451 -0
  1465. data/ext/v8/upstream/build/v8/src/math.js +264 -0
  1466. data/ext/v8/upstream/build/v8/src/memory.h +74 -0
  1467. data/ext/v8/upstream/build/v8/src/messages.cc +183 -0
  1468. data/ext/v8/upstream/build/v8/src/messages.h +113 -0
  1469. data/ext/v8/upstream/build/v8/src/messages.js +982 -0
  1470. data/ext/v8/upstream/build/v8/src/mips/assembler-mips-inl.h +215 -0
  1471. data/ext/v8/upstream/build/v8/src/mips/assembler-mips.cc +1219 -0
  1472. data/ext/v8/upstream/build/v8/src/mips/assembler-mips.h +668 -0
  1473. data/ext/v8/upstream/build/v8/src/mips/builtins-mips.cc +205 -0
  1474. data/ext/v8/upstream/build/v8/src/mips/codegen-mips-inl.h +70 -0
  1475. data/ext/v8/upstream/build/v8/src/mips/codegen-mips.cc +1437 -0
  1476. data/ext/v8/upstream/build/v8/src/mips/codegen-mips.h +434 -0
  1477. data/ext/v8/upstream/build/v8/src/mips/constants-mips.cc +328 -0
  1478. data/ext/v8/upstream/build/v8/src/mips/constants-mips.h +525 -0
  1479. data/ext/v8/upstream/build/v8/src/mips/cpu-mips.cc +73 -0
  1480. data/ext/v8/upstream/build/v8/src/mips/debug-mips.cc +131 -0
  1481. data/ext/v8/upstream/build/v8/src/mips/disasm-mips.cc +787 -0
  1482. data/ext/v8/upstream/build/v8/src/mips/fast-codegen-mips.cc +77 -0
  1483. data/ext/v8/upstream/build/v8/src/mips/frames-mips.cc +102 -0
  1484. data/ext/v8/upstream/build/v8/src/mips/frames-mips.h +164 -0
  1485. data/ext/v8/upstream/build/v8/src/mips/full-codegen-mips.cc +277 -0
  1486. data/ext/v8/upstream/build/v8/src/mips/ic-mips.cc +220 -0
  1487. data/ext/v8/upstream/build/v8/src/mips/jump-target-mips.cc +175 -0
  1488. data/ext/v8/upstream/build/v8/src/mips/macro-assembler-mips.cc +1326 -0
  1489. data/ext/v8/upstream/build/v8/src/mips/macro-assembler-mips.h +461 -0
  1490. data/ext/v8/upstream/build/v8/src/mips/register-allocator-mips-inl.h +137 -0
  1491. data/ext/v8/upstream/build/v8/src/mips/register-allocator-mips.cc +63 -0
  1492. data/ext/v8/upstream/build/v8/src/mips/register-allocator-mips.h +46 -0
  1493. data/ext/v8/upstream/build/v8/src/mips/simulator-mips.cc +1651 -0
  1494. data/ext/v8/upstream/build/v8/src/mips/simulator-mips.h +311 -0
  1495. data/ext/v8/upstream/build/v8/src/mips/stub-cache-mips.cc +403 -0
  1496. data/ext/v8/upstream/build/v8/src/mips/virtual-frame-mips.cc +319 -0
  1497. data/ext/v8/upstream/build/v8/src/mips/virtual-frame-mips.h +548 -0
  1498. data/ext/v8/upstream/build/v8/src/mirror-debugger.js +2380 -0
  1499. data/ext/v8/upstream/build/v8/src/mksnapshot.cc +256 -0
  1500. data/ext/v8/upstream/build/v8/src/natives.h +63 -0
  1501. data/ext/v8/upstream/build/v8/src/objects-debug.cc +1366 -0
  1502. data/ext/v8/upstream/build/v8/src/objects-inl.h +3333 -0
  1503. data/ext/v8/upstream/build/v8/src/objects.cc +8820 -0
  1504. data/ext/v8/upstream/build/v8/src/objects.h +5373 -0
  1505. data/ext/v8/upstream/build/v8/src/oprofile-agent.cc +108 -0
  1506. data/ext/v8/upstream/build/v8/src/oprofile-agent.h +77 -0
  1507. data/ext/v8/upstream/build/v8/src/parser.cc +5207 -0
  1508. data/ext/v8/upstream/build/v8/src/parser.h +197 -0
  1509. data/ext/v8/upstream/build/v8/src/platform-freebsd.cc +667 -0
  1510. data/ext/v8/upstream/build/v8/src/platform-linux.cc +862 -0
  1511. data/ext/v8/upstream/build/v8/src/platform-macos.cc +665 -0
  1512. data/ext/v8/upstream/build/v8/src/platform-nullos.cc +454 -0
  1513. data/ext/v8/upstream/build/v8/src/platform-openbsd.cc +622 -0
  1514. data/ext/v8/upstream/build/v8/src/platform-posix.cc +362 -0
  1515. data/ext/v8/upstream/build/v8/src/platform-solaris.cc +653 -0
  1516. data/ext/v8/upstream/build/v8/src/platform-win32.cc +1911 -0
  1517. data/ext/v8/upstream/build/v8/src/platform.h +577 -0
  1518. data/ext/v8/upstream/build/v8/src/powers-ten.h +2461 -0
  1519. data/ext/v8/upstream/build/v8/src/prettyprinter.cc +1531 -0
  1520. data/ext/v8/upstream/build/v8/src/prettyprinter.h +221 -0
  1521. data/ext/v8/upstream/build/v8/src/profile-generator-inl.h +148 -0
  1522. data/ext/v8/upstream/build/v8/src/profile-generator.cc +1830 -0
  1523. data/ext/v8/upstream/build/v8/src/profile-generator.h +853 -0
  1524. data/ext/v8/upstream/build/v8/src/property.cc +96 -0
  1525. data/ext/v8/upstream/build/v8/src/property.h +315 -0
  1526. data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-irregexp-inl.h +78 -0
  1527. data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-irregexp.cc +464 -0
  1528. data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-irregexp.h +141 -0
  1529. data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-tracer.cc +356 -0
  1530. data/ext/v8/upstream/build/v8/src/regexp-macro-assembler-tracer.h +103 -0
  1531. data/ext/v8/upstream/build/v8/src/regexp-macro-assembler.cc +261 -0
  1532. data/ext/v8/upstream/build/v8/src/regexp-macro-assembler.h +228 -0
  1533. data/ext/v8/upstream/build/v8/src/regexp-stack.cc +103 -0
  1534. data/ext/v8/upstream/build/v8/src/regexp-stack.h +123 -0
  1535. data/ext/v8/upstream/build/v8/src/regexp.js +549 -0
  1536. data/ext/v8/upstream/build/v8/src/register-allocator-inl.h +141 -0
  1537. data/ext/v8/upstream/build/v8/src/register-allocator.cc +104 -0
  1538. data/ext/v8/upstream/build/v8/src/register-allocator.h +320 -0
  1539. data/ext/v8/upstream/build/v8/src/rewriter.cc +1038 -0
  1540. data/ext/v8/upstream/build/v8/src/rewriter.h +54 -0
  1541. data/ext/v8/upstream/build/v8/src/runtime.cc +10599 -0
  1542. data/ext/v8/upstream/build/v8/src/runtime.h +459 -0
  1543. data/ext/v8/upstream/build/v8/src/runtime.js +629 -0
  1544. data/ext/v8/upstream/build/v8/src/scanner.cc +1346 -0
  1545. data/ext/v8/upstream/build/v8/src/scanner.h +503 -0
  1546. data/ext/v8/upstream/build/v8/src/scopeinfo.cc +637 -0
  1547. data/ext/v8/upstream/build/v8/src/scopeinfo.h +233 -0
  1548. data/ext/v8/upstream/build/v8/src/scopes.cc +962 -0
  1549. data/ext/v8/upstream/build/v8/src/scopes.h +400 -0
  1550. data/ext/v8/upstream/build/v8/src/serialize.cc +1461 -0
  1551. data/ext/v8/upstream/build/v8/src/serialize.h +581 -0
  1552. data/ext/v8/upstream/build/v8/src/shell.h +55 -0
  1553. data/ext/v8/upstream/build/v8/src/simulator.h +43 -0
  1554. data/ext/v8/upstream/build/v8/src/smart-pointer.h +109 -0
  1555. data/ext/v8/upstream/build/v8/src/snapshot-common.cc +82 -0
  1556. data/ext/v8/upstream/build/v8/src/snapshot-empty.cc +50 -0
  1557. data/ext/v8/upstream/build/v8/src/snapshot.h +71 -0
  1558. data/ext/v8/upstream/build/v8/src/spaces-inl.h +483 -0
  1559. data/ext/v8/upstream/build/v8/src/spaces.cc +2901 -0
  1560. data/ext/v8/upstream/build/v8/src/spaces.h +2197 -0
  1561. data/ext/v8/upstream/build/v8/src/splay-tree-inl.h +310 -0
  1562. data/ext/v8/upstream/build/v8/src/splay-tree.h +203 -0
  1563. data/ext/v8/upstream/build/v8/src/string-stream.cc +584 -0
  1564. data/ext/v8/upstream/build/v8/src/string-stream.h +189 -0
  1565. data/ext/v8/upstream/build/v8/src/string.js +1006 -0
  1566. data/ext/v8/upstream/build/v8/src/stub-cache.cc +1379 -0
  1567. data/ext/v8/upstream/build/v8/src/stub-cache.h +756 -0
  1568. data/ext/v8/upstream/build/v8/src/third_party/dtoa/COPYING +15 -0
  1569. data/ext/v8/upstream/build/v8/src/third_party/dtoa/dtoa.c +3334 -0
  1570. data/ext/v8/upstream/build/v8/src/third_party/valgrind/valgrind.h +3925 -0
  1571. data/ext/v8/upstream/build/v8/src/token.cc +56 -0
  1572. data/ext/v8/upstream/build/v8/src/token.h +270 -0
  1573. data/ext/v8/upstream/build/v8/src/top.cc +1067 -0
  1574. data/ext/v8/upstream/build/v8/src/top.h +463 -0
  1575. data/ext/v8/upstream/build/v8/src/type-info.cc +53 -0
  1576. data/ext/v8/upstream/build/v8/src/type-info.h +244 -0
  1577. data/ext/v8/upstream/build/v8/src/unbound-queue-inl.h +95 -0
  1578. data/ext/v8/upstream/build/v8/src/unbound-queue.h +67 -0
  1579. data/ext/v8/upstream/build/v8/src/unicode-inl.h +238 -0
  1580. data/ext/v8/upstream/build/v8/src/unicode.cc +749 -0
  1581. data/ext/v8/upstream/build/v8/src/unicode.h +279 -0
  1582. data/ext/v8/upstream/build/v8/src/uri.js +415 -0
  1583. data/ext/v8/upstream/build/v8/src/utils.cc +285 -0
  1584. data/ext/v8/upstream/build/v8/src/utils.h +745 -0
  1585. data/ext/v8/upstream/build/v8/src/v8-counters.cc +55 -0
  1586. data/ext/v8/upstream/build/v8/src/v8-counters.h +250 -0
  1587. data/ext/v8/upstream/build/v8/src/v8.cc +228 -0
  1588. data/ext/v8/upstream/build/v8/src/v8.h +121 -0
  1589. data/ext/v8/upstream/build/v8/src/v8dll-main.cc +39 -0
  1590. data/ext/v8/upstream/build/v8/src/v8natives.js +1188 -0
  1591. data/ext/v8/upstream/build/v8/src/v8threads.cc +461 -0
  1592. data/ext/v8/upstream/build/v8/src/v8threads.h +159 -0
  1593. data/ext/v8/upstream/build/v8/src/variables.cc +119 -0
  1594. data/ext/v8/upstream/build/v8/src/variables.h +205 -0
  1595. data/ext/v8/upstream/build/v8/src/version.cc +88 -0
  1596. data/ext/v8/upstream/build/v8/src/version.h +64 -0
  1597. data/ext/v8/upstream/build/v8/src/virtual-frame-heavy-inl.h +192 -0
  1598. data/ext/v8/upstream/build/v8/src/virtual-frame-heavy.cc +312 -0
  1599. data/ext/v8/upstream/build/v8/src/virtual-frame-inl.h +39 -0
  1600. data/ext/v8/upstream/build/v8/src/virtual-frame-light-inl.h +170 -0
  1601. data/ext/v8/upstream/build/v8/src/virtual-frame-light.cc +52 -0
  1602. data/ext/v8/upstream/build/v8/src/virtual-frame.cc +49 -0
  1603. data/ext/v8/upstream/build/v8/src/virtual-frame.h +46 -0
  1604. data/ext/v8/upstream/build/v8/src/vm-state-inl.h +137 -0
  1605. data/ext/v8/upstream/build/v8/src/vm-state.cc +39 -0
  1606. data/ext/v8/upstream/build/v8/src/vm-state.h +77 -0
  1607. data/ext/v8/upstream/build/v8/src/x64/assembler-x64-inl.h +400 -0
  1608. data/ext/v8/upstream/build/v8/src/x64/assembler-x64.cc +2963 -0
  1609. data/ext/v8/upstream/build/v8/src/x64/assembler-x64.h +1438 -0
  1610. data/ext/v8/upstream/build/v8/src/x64/builtins-x64.cc +1296 -0
  1611. data/ext/v8/upstream/build/v8/src/x64/codegen-x64-inl.h +46 -0
  1612. data/ext/v8/upstream/build/v8/src/x64/codegen-x64.cc +12491 -0
  1613. data/ext/v8/upstream/build/v8/src/x64/codegen-x64.h +1090 -0
  1614. data/ext/v8/upstream/build/v8/src/x64/cpu-x64.cc +83 -0
  1615. data/ext/v8/upstream/build/v8/src/x64/debug-x64.cc +267 -0
  1616. data/ext/v8/upstream/build/v8/src/x64/disasm-x64.cc +1696 -0
  1617. data/ext/v8/upstream/build/v8/src/x64/fast-codegen-x64.cc +250 -0
  1618. data/ext/v8/upstream/build/v8/src/x64/frames-x64.cc +113 -0
  1619. data/ext/v8/upstream/build/v8/src/x64/frames-x64.h +125 -0
  1620. data/ext/v8/upstream/build/v8/src/x64/full-codegen-x64.cc +3270 -0
  1621. data/ext/v8/upstream/build/v8/src/x64/ic-x64.cc +1907 -0
  1622. data/ext/v8/upstream/build/v8/src/x64/jump-target-x64.cc +437 -0
  1623. data/ext/v8/upstream/build/v8/src/x64/macro-assembler-x64.cc +2793 -0
  1624. data/ext/v8/upstream/build/v8/src/x64/macro-assembler-x64.h +916 -0
  1625. data/ext/v8/upstream/build/v8/src/x64/regexp-macro-assembler-x64.cc +1374 -0
  1626. data/ext/v8/upstream/build/v8/src/x64/regexp-macro-assembler-x64.h +277 -0
  1627. data/ext/v8/upstream/build/v8/src/x64/register-allocator-x64-inl.h +87 -0
  1628. data/ext/v8/upstream/build/v8/src/x64/register-allocator-x64.cc +91 -0
  1629. data/ext/v8/upstream/build/v8/src/x64/register-allocator-x64.h +43 -0
  1630. data/ext/v8/upstream/build/v8/src/x64/simulator-x64.cc +27 -0
  1631. data/ext/v8/upstream/build/v8/src/x64/simulator-x64.h +63 -0
  1632. data/ext/v8/upstream/build/v8/src/x64/stub-cache-x64.cc +2560 -0
  1633. data/ext/v8/upstream/build/v8/src/x64/virtual-frame-x64.cc +1264 -0
  1634. data/ext/v8/upstream/build/v8/src/x64/virtual-frame-x64.h +590 -0
  1635. data/ext/v8/upstream/build/v8/src/zone-inl.h +82 -0
  1636. data/ext/v8/upstream/build/v8/src/zone.cc +194 -0
  1637. data/ext/v8/upstream/build/v8/src/zone.h +221 -0
  1638. data/ext/v8/upstream/build/v8/tools/codemap.js +270 -0
  1639. data/ext/v8/upstream/build/v8/tools/consarray.js +93 -0
  1640. data/ext/v8/upstream/build/v8/tools/csvparser.js +83 -0
  1641. data/ext/v8/upstream/build/v8/tools/gc-nvp-trace-processor.py +317 -0
  1642. data/ext/v8/upstream/build/v8/tools/generate-ten-powers.scm +286 -0
  1643. data/ext/v8/upstream/build/v8/tools/gyp/v8.gyp +749 -0
  1644. data/ext/v8/upstream/build/v8/tools/js2c.py +380 -0
  1645. data/ext/v8/upstream/build/v8/tools/jsmin.py +280 -0
  1646. data/ext/v8/upstream/build/v8/tools/linux-tick-processor +33 -0
  1647. data/ext/v8/upstream/build/v8/tools/linux-tick-processor.py +78 -0
  1648. data/ext/v8/upstream/build/v8/tools/logreader.js +338 -0
  1649. data/ext/v8/upstream/build/v8/tools/mac-nm +18 -0
  1650. data/ext/v8/upstream/build/v8/tools/mac-tick-processor +6 -0
  1651. data/ext/v8/upstream/build/v8/tools/oprofile/annotate +7 -0
  1652. data/ext/v8/upstream/build/v8/tools/oprofile/common +19 -0
  1653. data/ext/v8/upstream/build/v8/tools/oprofile/dump +7 -0
  1654. data/ext/v8/upstream/build/v8/tools/oprofile/report +7 -0
  1655. data/ext/v8/upstream/build/v8/tools/oprofile/reset +7 -0
  1656. data/ext/v8/upstream/build/v8/tools/oprofile/run +14 -0
  1657. data/ext/v8/upstream/build/v8/tools/oprofile/shutdown +7 -0
  1658. data/ext/v8/upstream/build/v8/tools/oprofile/start +7 -0
  1659. data/ext/v8/upstream/build/v8/tools/presubmit.py +299 -0
  1660. data/ext/v8/upstream/build/v8/tools/process-heap-prof.py +120 -0
  1661. data/ext/v8/upstream/build/v8/tools/profile.js +691 -0
  1662. data/ext/v8/upstream/build/v8/tools/profile_view.js +224 -0
  1663. data/ext/v8/upstream/build/v8/tools/run-valgrind.py +77 -0
  1664. data/ext/v8/upstream/build/v8/tools/splaytree.js +322 -0
  1665. data/ext/v8/upstream/build/v8/tools/splaytree.py +226 -0
  1666. data/ext/v8/upstream/build/v8/tools/stats-viewer.py +468 -0
  1667. data/ext/v8/upstream/build/v8/tools/tickprocessor-driver.js +59 -0
  1668. data/ext/v8/upstream/build/v8/tools/tickprocessor.js +862 -0
  1669. data/ext/v8/upstream/build/v8/tools/tickprocessor.py +571 -0
  1670. data/ext/v8/upstream/build/v8/tools/utils.py +88 -0
  1671. data/ext/v8/upstream/build/v8/tools/visual_studio/README.txt +71 -0
  1672. data/ext/v8/upstream/build/v8/tools/visual_studio/arm.vsprops +14 -0
  1673. data/ext/v8/upstream/build/v8/tools/visual_studio/common.vsprops +34 -0
  1674. data/ext/v8/upstream/build/v8/tools/visual_studio/d8.vcproj +193 -0
  1675. data/ext/v8/upstream/build/v8/tools/visual_studio/d8_arm.vcproj +193 -0
  1676. data/ext/v8/upstream/build/v8/tools/visual_studio/d8_x64.vcproj +209 -0
  1677. data/ext/v8/upstream/build/v8/tools/visual_studio/d8js2c.cmd +6 -0
  1678. data/ext/v8/upstream/build/v8/tools/visual_studio/debug.vsprops +17 -0
  1679. data/ext/v8/upstream/build/v8/tools/visual_studio/ia32.vsprops +17 -0
  1680. data/ext/v8/upstream/build/v8/tools/visual_studio/js2c.cmd +6 -0
  1681. data/ext/v8/upstream/build/v8/tools/visual_studio/release.vsprops +24 -0
  1682. data/ext/v8/upstream/build/v8/tools/visual_studio/v8.sln +101 -0
  1683. data/ext/v8/upstream/build/v8/tools/visual_studio/v8.vcproj +227 -0
  1684. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_arm.sln +74 -0
  1685. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_arm.vcproj +227 -0
  1686. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_base.vcproj +1143 -0
  1687. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_base_arm.vcproj +1115 -0
  1688. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_base_x64.vcproj +1096 -0
  1689. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_cctest.vcproj +265 -0
  1690. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_cctest_arm.vcproj +249 -0
  1691. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_cctest_x64.vcproj +257 -0
  1692. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_mksnapshot.vcproj +145 -0
  1693. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_mksnapshot_x64.vcproj +145 -0
  1694. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_process_sample.vcproj +145 -0
  1695. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_process_sample_arm.vcproj +145 -0
  1696. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_process_sample_x64.vcproj +161 -0
  1697. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_shell_sample.vcproj +145 -0
  1698. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_shell_sample_arm.vcproj +145 -0
  1699. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_shell_sample_x64.vcproj +161 -0
  1700. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot.vcproj +142 -0
  1701. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot_cc.vcproj +92 -0
  1702. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot_cc_x64.vcproj +92 -0
  1703. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_snapshot_x64.vcproj +142 -0
  1704. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_x64.sln +101 -0
  1705. data/ext/v8/upstream/build/v8/tools/visual_studio/v8_x64.vcproj +227 -0
  1706. data/ext/v8/upstream/build/v8/tools/visual_studio/x64.vsprops +17 -0
  1707. data/ext/v8/upstream/build/v8/tools/windows-tick-processor.bat +29 -0
  1708. data/ext/v8/upstream/build/v8/tools/windows-tick-processor.py +137 -0
  1709. data/ext/v8/upstream/detect_cpu.rb +27 -0
  1710. data/ext/v8/upstream/fpic-on-linux-amd64.patch +13 -0
  1711. data/ext/v8/upstream/scons/CHANGES.txt +5183 -0
  1712. data/ext/v8/upstream/scons/LICENSE.txt +20 -0
  1713. data/ext/v8/upstream/scons/MANIFEST +202 -0
  1714. data/ext/v8/upstream/scons/PKG-INFO +13 -0
  1715. data/ext/v8/upstream/scons/README.txt +273 -0
  1716. data/ext/v8/upstream/scons/RELEASE.txt +1040 -0
  1717. data/ext/v8/upstream/scons/engine/SCons/Action.py +1256 -0
  1718. data/ext/v8/upstream/scons/engine/SCons/Builder.py +868 -0
  1719. data/ext/v8/upstream/scons/engine/SCons/CacheDir.py +217 -0
  1720. data/ext/v8/upstream/scons/engine/SCons/Conftest.py +794 -0
  1721. data/ext/v8/upstream/scons/engine/SCons/Debug.py +237 -0
  1722. data/ext/v8/upstream/scons/engine/SCons/Defaults.py +485 -0
  1723. data/ext/v8/upstream/scons/engine/SCons/Environment.py +2327 -0
  1724. data/ext/v8/upstream/scons/engine/SCons/Errors.py +207 -0
  1725. data/ext/v8/upstream/scons/engine/SCons/Executor.py +636 -0
  1726. data/ext/v8/upstream/scons/engine/SCons/Job.py +435 -0
  1727. data/ext/v8/upstream/scons/engine/SCons/Memoize.py +292 -0
  1728. data/ext/v8/upstream/scons/engine/SCons/Node/Alias.py +153 -0
  1729. data/ext/v8/upstream/scons/engine/SCons/Node/FS.py +3220 -0
  1730. data/ext/v8/upstream/scons/engine/SCons/Node/Python.py +128 -0
  1731. data/ext/v8/upstream/scons/engine/SCons/Node/__init__.py +1341 -0
  1732. data/ext/v8/upstream/scons/engine/SCons/Options/BoolOption.py +50 -0
  1733. data/ext/v8/upstream/scons/engine/SCons/Options/EnumOption.py +50 -0
  1734. data/ext/v8/upstream/scons/engine/SCons/Options/ListOption.py +50 -0
  1735. data/ext/v8/upstream/scons/engine/SCons/Options/PackageOption.py +50 -0
  1736. data/ext/v8/upstream/scons/engine/SCons/Options/PathOption.py +76 -0
  1737. data/ext/v8/upstream/scons/engine/SCons/Options/__init__.py +74 -0
  1738. data/ext/v8/upstream/scons/engine/SCons/PathList.py +232 -0
  1739. data/ext/v8/upstream/scons/engine/SCons/Platform/__init__.py +236 -0
  1740. data/ext/v8/upstream/scons/engine/SCons/Platform/aix.py +70 -0
  1741. data/ext/v8/upstream/scons/engine/SCons/Platform/cygwin.py +55 -0
  1742. data/ext/v8/upstream/scons/engine/SCons/Platform/darwin.py +46 -0
  1743. data/ext/v8/upstream/scons/engine/SCons/Platform/hpux.py +46 -0
  1744. data/ext/v8/upstream/scons/engine/SCons/Platform/irix.py +44 -0
  1745. data/ext/v8/upstream/scons/engine/SCons/Platform/os2.py +58 -0
  1746. data/ext/v8/upstream/scons/engine/SCons/Platform/posix.py +264 -0
  1747. data/ext/v8/upstream/scons/engine/SCons/Platform/sunos.py +50 -0
  1748. data/ext/v8/upstream/scons/engine/SCons/Platform/win32.py +386 -0
  1749. data/ext/v8/upstream/scons/engine/SCons/SConf.py +1038 -0
  1750. data/ext/v8/upstream/scons/engine/SCons/SConsign.py +381 -0
  1751. data/ext/v8/upstream/scons/engine/SCons/Scanner/C.py +132 -0
  1752. data/ext/v8/upstream/scons/engine/SCons/Scanner/D.py +74 -0
  1753. data/ext/v8/upstream/scons/engine/SCons/Scanner/Dir.py +111 -0
  1754. data/ext/v8/upstream/scons/engine/SCons/Scanner/Fortran.py +320 -0
  1755. data/ext/v8/upstream/scons/engine/SCons/Scanner/IDL.py +48 -0
  1756. data/ext/v8/upstream/scons/engine/SCons/Scanner/LaTeX.py +378 -0
  1757. data/ext/v8/upstream/scons/engine/SCons/Scanner/Prog.py +103 -0
  1758. data/ext/v8/upstream/scons/engine/SCons/Scanner/RC.py +55 -0
  1759. data/ext/v8/upstream/scons/engine/SCons/Scanner/__init__.py +415 -0
  1760. data/ext/v8/upstream/scons/engine/SCons/Script/Interactive.py +386 -0
  1761. data/ext/v8/upstream/scons/engine/SCons/Script/Main.py +1360 -0
  1762. data/ext/v8/upstream/scons/engine/SCons/Script/SConsOptions.py +944 -0
  1763. data/ext/v8/upstream/scons/engine/SCons/Script/SConscript.py +642 -0
  1764. data/ext/v8/upstream/scons/engine/SCons/Script/__init__.py +414 -0
  1765. data/ext/v8/upstream/scons/engine/SCons/Sig.py +63 -0
  1766. data/ext/v8/upstream/scons/engine/SCons/Subst.py +911 -0
  1767. data/ext/v8/upstream/scons/engine/SCons/Taskmaster.py +1030 -0
  1768. data/ext/v8/upstream/scons/engine/SCons/Tool/386asm.py +61 -0
  1769. data/ext/v8/upstream/scons/engine/SCons/Tool/BitKeeper.py +65 -0
  1770. data/ext/v8/upstream/scons/engine/SCons/Tool/CVS.py +73 -0
  1771. data/ext/v8/upstream/scons/engine/SCons/Tool/FortranCommon.py +247 -0
  1772. data/ext/v8/upstream/scons/engine/SCons/Tool/JavaCommon.py +324 -0
  1773. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/__init__.py +56 -0
  1774. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/arch.py +61 -0
  1775. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/common.py +210 -0
  1776. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/netframework.py +84 -0
  1777. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/sdk.py +321 -0
  1778. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vc.py +367 -0
  1779. data/ext/v8/upstream/scons/engine/SCons/Tool/MSCommon/vs.py +497 -0
  1780. data/ext/v8/upstream/scons/engine/SCons/Tool/Perforce.py +104 -0
  1781. data/ext/v8/upstream/scons/engine/SCons/Tool/PharLapCommon.py +138 -0
  1782. data/ext/v8/upstream/scons/engine/SCons/Tool/RCS.py +64 -0
  1783. data/ext/v8/upstream/scons/engine/SCons/Tool/SCCS.py +64 -0
  1784. data/ext/v8/upstream/scons/engine/SCons/Tool/Subversion.py +71 -0
  1785. data/ext/v8/upstream/scons/engine/SCons/Tool/__init__.py +675 -0
  1786. data/ext/v8/upstream/scons/engine/SCons/Tool/aixc++.py +82 -0
  1787. data/ext/v8/upstream/scons/engine/SCons/Tool/aixcc.py +74 -0
  1788. data/ext/v8/upstream/scons/engine/SCons/Tool/aixf77.py +80 -0
  1789. data/ext/v8/upstream/scons/engine/SCons/Tool/aixlink.py +76 -0
  1790. data/ext/v8/upstream/scons/engine/SCons/Tool/applelink.py +71 -0
  1791. data/ext/v8/upstream/scons/engine/SCons/Tool/ar.py +63 -0
  1792. data/ext/v8/upstream/scons/engine/SCons/Tool/as.py +78 -0
  1793. data/ext/v8/upstream/scons/engine/SCons/Tool/bcc32.py +82 -0
  1794. data/ext/v8/upstream/scons/engine/SCons/Tool/c++.py +99 -0
  1795. data/ext/v8/upstream/scons/engine/SCons/Tool/cc.py +114 -0
  1796. data/ext/v8/upstream/scons/engine/SCons/Tool/cvf.py +58 -0
  1797. data/ext/v8/upstream/scons/engine/SCons/Tool/default.py +50 -0
  1798. data/ext/v8/upstream/scons/engine/SCons/Tool/dmd.py +224 -0
  1799. data/ext/v8/upstream/scons/engine/SCons/Tool/dvi.py +64 -0
  1800. data/ext/v8/upstream/scons/engine/SCons/Tool/dvipdf.py +125 -0
  1801. data/ext/v8/upstream/scons/engine/SCons/Tool/dvips.py +94 -0
  1802. data/ext/v8/upstream/scons/engine/SCons/Tool/f77.py +62 -0
  1803. data/ext/v8/upstream/scons/engine/SCons/Tool/f90.py +62 -0
  1804. data/ext/v8/upstream/scons/engine/SCons/Tool/f95.py +63 -0
  1805. data/ext/v8/upstream/scons/engine/SCons/Tool/filesystem.py +98 -0
  1806. data/ext/v8/upstream/scons/engine/SCons/Tool/fortran.py +63 -0
  1807. data/ext/v8/upstream/scons/engine/SCons/Tool/g++.py +90 -0
  1808. data/ext/v8/upstream/scons/engine/SCons/Tool/g77.py +73 -0
  1809. data/ext/v8/upstream/scons/engine/SCons/Tool/gas.py +53 -0
  1810. data/ext/v8/upstream/scons/engine/SCons/Tool/gcc.py +80 -0
  1811. data/ext/v8/upstream/scons/engine/SCons/Tool/gfortran.py +64 -0
  1812. data/ext/v8/upstream/scons/engine/SCons/Tool/gnulink.py +63 -0
  1813. data/ext/v8/upstream/scons/engine/SCons/Tool/gs.py +81 -0
  1814. data/ext/v8/upstream/scons/engine/SCons/Tool/hpc++.py +85 -0
  1815. data/ext/v8/upstream/scons/engine/SCons/Tool/hpcc.py +53 -0
  1816. data/ext/v8/upstream/scons/engine/SCons/Tool/hplink.py +77 -0
  1817. data/ext/v8/upstream/scons/engine/SCons/Tool/icc.py +59 -0
  1818. data/ext/v8/upstream/scons/engine/SCons/Tool/icl.py +52 -0
  1819. data/ext/v8/upstream/scons/engine/SCons/Tool/ifl.py +72 -0
  1820. data/ext/v8/upstream/scons/engine/SCons/Tool/ifort.py +90 -0
  1821. data/ext/v8/upstream/scons/engine/SCons/Tool/ilink.py +59 -0
  1822. data/ext/v8/upstream/scons/engine/SCons/Tool/ilink32.py +60 -0
  1823. data/ext/v8/upstream/scons/engine/SCons/Tool/install.py +229 -0
  1824. data/ext/v8/upstream/scons/engine/SCons/Tool/intelc.py +490 -0
  1825. data/ext/v8/upstream/scons/engine/SCons/Tool/ipkg.py +71 -0
  1826. data/ext/v8/upstream/scons/engine/SCons/Tool/jar.py +110 -0
  1827. data/ext/v8/upstream/scons/engine/SCons/Tool/javac.py +234 -0
  1828. data/ext/v8/upstream/scons/engine/SCons/Tool/javah.py +138 -0
  1829. data/ext/v8/upstream/scons/engine/SCons/Tool/latex.py +79 -0
  1830. data/ext/v8/upstream/scons/engine/SCons/Tool/lex.py +99 -0
  1831. data/ext/v8/upstream/scons/engine/SCons/Tool/link.py +121 -0
  1832. data/ext/v8/upstream/scons/engine/SCons/Tool/linkloc.py +112 -0
  1833. data/ext/v8/upstream/scons/engine/SCons/Tool/m4.py +63 -0
  1834. data/ext/v8/upstream/scons/engine/SCons/Tool/masm.py +77 -0
  1835. data/ext/v8/upstream/scons/engine/SCons/Tool/midl.py +90 -0
  1836. data/ext/v8/upstream/scons/engine/SCons/Tool/mingw.py +159 -0
  1837. data/ext/v8/upstream/scons/engine/SCons/Tool/mslib.py +64 -0
  1838. data/ext/v8/upstream/scons/engine/SCons/Tool/mslink.py +266 -0
  1839. data/ext/v8/upstream/scons/engine/SCons/Tool/mssdk.py +50 -0
  1840. data/ext/v8/upstream/scons/engine/SCons/Tool/msvc.py +269 -0
  1841. data/ext/v8/upstream/scons/engine/SCons/Tool/msvs.py +1439 -0
  1842. data/ext/v8/upstream/scons/engine/SCons/Tool/mwcc.py +208 -0
  1843. data/ext/v8/upstream/scons/engine/SCons/Tool/mwld.py +107 -0
  1844. data/ext/v8/upstream/scons/engine/SCons/Tool/nasm.py +72 -0
  1845. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/__init__.py +314 -0
  1846. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/ipk.py +185 -0
  1847. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/msi.py +526 -0
  1848. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/rpm.py +367 -0
  1849. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_tarbz2.py +43 -0
  1850. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_targz.py +43 -0
  1851. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/src_zip.py +43 -0
  1852. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/tarbz2.py +44 -0
  1853. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/targz.py +44 -0
  1854. data/ext/v8/upstream/scons/engine/SCons/Tool/packaging/zip.py +44 -0
  1855. data/ext/v8/upstream/scons/engine/SCons/Tool/pdf.py +78 -0
  1856. data/ext/v8/upstream/scons/engine/SCons/Tool/pdflatex.py +83 -0
  1857. data/ext/v8/upstream/scons/engine/SCons/Tool/pdftex.py +108 -0
  1858. data/ext/v8/upstream/scons/engine/SCons/Tool/qt.py +336 -0
  1859. data/ext/v8/upstream/scons/engine/SCons/Tool/rmic.py +121 -0
  1860. data/ext/v8/upstream/scons/engine/SCons/Tool/rpcgen.py +70 -0
  1861. data/ext/v8/upstream/scons/engine/SCons/Tool/rpm.py +132 -0
  1862. data/ext/v8/upstream/scons/engine/SCons/Tool/sgiar.py +68 -0
  1863. data/ext/v8/upstream/scons/engine/SCons/Tool/sgic++.py +58 -0
  1864. data/ext/v8/upstream/scons/engine/SCons/Tool/sgicc.py +53 -0
  1865. data/ext/v8/upstream/scons/engine/SCons/Tool/sgilink.py +63 -0
  1866. data/ext/v8/upstream/scons/engine/SCons/Tool/sunar.py +67 -0
  1867. data/ext/v8/upstream/scons/engine/SCons/Tool/sunc++.py +142 -0
  1868. data/ext/v8/upstream/scons/engine/SCons/Tool/suncc.py +58 -0
  1869. data/ext/v8/upstream/scons/engine/SCons/Tool/sunf77.py +63 -0
  1870. data/ext/v8/upstream/scons/engine/SCons/Tool/sunf90.py +64 -0
  1871. data/ext/v8/upstream/scons/engine/SCons/Tool/sunf95.py +64 -0
  1872. data/ext/v8/upstream/scons/engine/SCons/Tool/sunlink.py +77 -0
  1873. data/ext/v8/upstream/scons/engine/SCons/Tool/swig.py +186 -0
  1874. data/ext/v8/upstream/scons/engine/SCons/Tool/tar.py +73 -0
  1875. data/ext/v8/upstream/scons/engine/SCons/Tool/tex.py +805 -0
  1876. data/ext/v8/upstream/scons/engine/SCons/Tool/textfile.py +175 -0
  1877. data/ext/v8/upstream/scons/engine/SCons/Tool/tlib.py +53 -0
  1878. data/ext/v8/upstream/scons/engine/SCons/Tool/wix.py +100 -0
  1879. data/ext/v8/upstream/scons/engine/SCons/Tool/yacc.py +131 -0
  1880. data/ext/v8/upstream/scons/engine/SCons/Tool/zip.py +100 -0
  1881. data/ext/v8/upstream/scons/engine/SCons/Util.py +1645 -0
  1882. data/ext/v8/upstream/scons/engine/SCons/Variables/BoolVariable.py +91 -0
  1883. data/ext/v8/upstream/scons/engine/SCons/Variables/EnumVariable.py +107 -0
  1884. data/ext/v8/upstream/scons/engine/SCons/Variables/ListVariable.py +139 -0
  1885. data/ext/v8/upstream/scons/engine/SCons/Variables/PackageVariable.py +109 -0
  1886. data/ext/v8/upstream/scons/engine/SCons/Variables/PathVariable.py +147 -0
  1887. data/ext/v8/upstream/scons/engine/SCons/Variables/__init__.py +317 -0
  1888. data/ext/v8/upstream/scons/engine/SCons/Warnings.py +228 -0
  1889. data/ext/v8/upstream/scons/engine/SCons/__init__.py +49 -0
  1890. data/ext/v8/upstream/scons/engine/SCons/compat/__init__.py +302 -0
  1891. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_UserString.py +98 -0
  1892. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_hashlib.py +91 -0
  1893. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_itertools.py +124 -0
  1894. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_optparse.py +1725 -0
  1895. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets.py +583 -0
  1896. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_sets15.py +176 -0
  1897. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_shlex.py +325 -0
  1898. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_subprocess.py +1296 -0
  1899. data/ext/v8/upstream/scons/engine/SCons/compat/_scons_textwrap.py +382 -0
  1900. data/ext/v8/upstream/scons/engine/SCons/compat/builtins.py +187 -0
  1901. data/ext/v8/upstream/scons/engine/SCons/cpp.py +598 -0
  1902. data/ext/v8/upstream/scons/engine/SCons/dblite.py +248 -0
  1903. data/ext/v8/upstream/scons/engine/SCons/exitfuncs.py +77 -0
  1904. data/ext/v8/upstream/scons/os_spawnv_fix.diff +83 -0
  1905. data/ext/v8/upstream/scons/scons-time.1 +1017 -0
  1906. data/ext/v8/upstream/scons/scons.1 +15179 -0
  1907. data/ext/v8/upstream/scons/sconsign.1 +208 -0
  1908. data/ext/v8/upstream/scons/script/scons +184 -0
  1909. data/ext/v8/upstream/scons/script/scons-time +1529 -0
  1910. data/ext/v8/upstream/scons/script/scons.bat +31 -0
  1911. data/ext/v8/upstream/scons/script/sconsign +508 -0
  1912. data/ext/v8/upstream/scons/setup.cfg +6 -0
  1913. data/ext/v8/upstream/scons/setup.py +427 -0
  1914. data/ext/v8/v8.cpp +41 -0
  1915. data/ext/v8/v8_array.cpp +50 -0
  1916. data/ext/v8/v8_array.h +8 -0
  1917. data/ext/v8/v8_callbacks.cpp +121 -0
  1918. data/ext/v8/v8_callbacks.h +8 -0
  1919. data/ext/v8/v8_cxt.cpp +92 -0
  1920. data/ext/v8/v8_cxt.h +6 -0
  1921. data/ext/v8/v8_date.cpp +35 -0
  1922. data/ext/v8/v8_date.h +6 -0
  1923. data/ext/v8/v8_exception.cpp +128 -0
  1924. data/ext/v8/v8_exception.h +11 -0
  1925. data/ext/v8/v8_external.cpp +57 -0
  1926. data/ext/v8/v8_external.h +9 -0
  1927. data/ext/v8/v8_func.cpp +66 -0
  1928. data/ext/v8/v8_func.h +12 -0
  1929. data/ext/v8/v8_locker.cpp +41 -0
  1930. data/ext/v8/v8_locker.h +6 -0
  1931. data/ext/v8/v8_msg.cpp +68 -0
  1932. data/ext/v8/v8_msg.h +10 -0
  1933. data/ext/v8/v8_obj.cpp +96 -0
  1934. data/ext/v8/v8_obj.h +11 -0
  1935. data/ext/v8/v8_ref.cpp +37 -0
  1936. data/ext/v8/v8_ref.h +28 -0
  1937. data/ext/v8/v8_script.cpp +36 -0
  1938. data/ext/v8/v8_script.h +8 -0
  1939. data/ext/v8/v8_str.cpp +52 -0
  1940. data/ext/v8/v8_str.h +9 -0
  1941. data/ext/v8/v8_template.cpp +329 -0
  1942. data/ext/v8/v8_template.h +8 -0
  1943. data/ext/v8/v8_try_catch.cpp +99 -0
  1944. data/ext/v8/v8_try_catch.h +5 -0
  1945. data/ext/v8/v8_value.cpp +167 -0
  1946. data/ext/v8/v8_value.h +10 -0
  1947. data/lib/v8.rb +16 -0
  1948. data/lib/v8/access.rb +87 -0
  1949. data/lib/v8/array.rb +17 -0
  1950. data/lib/v8/cli.rb +131 -0
  1951. data/lib/v8/context.rb +88 -0
  1952. data/lib/v8/error.rb +129 -0
  1953. data/lib/v8/function.rb +28 -0
  1954. data/lib/v8/object.rb +69 -0
  1955. data/lib/v8/portal.rb +327 -0
  1956. data/lib/v8/portal/functions.rb +45 -0
  1957. data/lib/v8/tap.rb +9 -0
  1958. data/lib/v8/version.rb +3 -0
  1959. data/spec/ext/cxt_spec.rb +12 -0
  1960. data/spec/ext/func_spec.rb +49 -0
  1961. data/spec/ext/try_catch_spec.rb +32 -0
  1962. data/spec/redjs_helper.rb +3 -0
  1963. data/spec/spec_helper.rb +8 -0
  1964. data/spec/v8/error_spec.rb +131 -0
  1965. data/therubyracer-heroku.gemspec +24 -0
  1966. metadata +2061 -0
@@ -0,0 +1,155 @@
1
+ // Copyright 2010 the V8 project authors. All rights reserved.
2
+ // Redistribution and use in source and binary forms, with or without
3
+ // modification, are permitted provided that the following conditions are
4
+ // met:
5
+ //
6
+ // * Redistributions of source code must retain the above copyright
7
+ // notice, this list of conditions and the following disclaimer.
8
+ // * Redistributions in binary form must reproduce the above
9
+ // copyright notice, this list of conditions and the following
10
+ // disclaimer in the documentation and/or other materials provided
11
+ // with the distribution.
12
+ // * Neither the name of Google Inc. nor the names of its
13
+ // contributors may be used to endorse or promote products derived
14
+ // from this software without specific prior written permission.
15
+ //
16
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+
28
+ #ifndef V8_FAST_CODEGEN_IA32_H_
29
+ #define V8_FAST_CODEGEN_IA32_H_
30
+
31
+ #include "v8.h"
32
+
33
+ #include "ast.h"
34
+ #include "compiler.h"
35
+ #include "list.h"
36
+
37
+ namespace v8 {
38
+ namespace internal {
39
+
40
+ class FastCodeGenSyntaxChecker: public AstVisitor {
41
+ public:
42
+ explicit FastCodeGenSyntaxChecker()
43
+ : info_(NULL), has_supported_syntax_(true) {
44
+ }
45
+
46
+ void Check(CompilationInfo* info);
47
+
48
+ CompilationInfo* info() { return info_; }
49
+ bool has_supported_syntax() { return has_supported_syntax_; }
50
+
51
+ private:
52
+ void VisitDeclarations(ZoneList<Declaration*>* decls);
53
+ void VisitStatements(ZoneList<Statement*>* stmts);
54
+
55
+ // AST node visit functions.
56
+ #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
57
+ AST_NODE_LIST(DECLARE_VISIT)
58
+ #undef DECLARE_VISIT
59
+
60
+ CompilationInfo* info_;
61
+ bool has_supported_syntax_;
62
+
63
+ DISALLOW_COPY_AND_ASSIGN(FastCodeGenSyntaxChecker);
64
+ };
65
+
66
+
67
+ class FastCodeGenerator: public AstVisitor {
68
+ public:
69
+ explicit FastCodeGenerator(MacroAssembler* masm)
70
+ : masm_(masm), info_(NULL), destination_(no_reg), smi_bits_(0) {
71
+ }
72
+
73
+ static Handle<Code> MakeCode(CompilationInfo* info);
74
+
75
+ void Generate(CompilationInfo* compilation_info);
76
+
77
+ private:
78
+ MacroAssembler* masm() { return masm_; }
79
+ CompilationInfo* info() { return info_; }
80
+
81
+ Register destination() { return destination_; }
82
+ void set_destination(Register reg) { destination_ = reg; }
83
+
84
+ FunctionLiteral* function() { return info_->function(); }
85
+ Scope* scope() { return info_->scope(); }
86
+
87
+ // Platform-specific fixed registers, all guaranteed distinct.
88
+ Register accumulator0();
89
+ Register accumulator1();
90
+ Register scratch0();
91
+ Register scratch1();
92
+ Register receiver_reg();
93
+ Register context_reg();
94
+
95
+ Register other_accumulator(Register reg) {
96
+ ASSERT(reg.is(accumulator0()) || reg.is(accumulator1()));
97
+ return (reg.is(accumulator0())) ? accumulator1() : accumulator0();
98
+ }
99
+
100
+ // Flags are true if the respective register is statically known to hold a
101
+ // smi. We do not track every register, only the accumulator registers.
102
+ bool is_smi(Register reg) {
103
+ ASSERT(!reg.is(no_reg));
104
+ return (smi_bits_ & reg.bit()) != 0;
105
+ }
106
+ void set_as_smi(Register reg) {
107
+ ASSERT(!reg.is(no_reg));
108
+ smi_bits_ = smi_bits_ | reg.bit();
109
+ }
110
+ void clear_as_smi(Register reg) {
111
+ ASSERT(!reg.is(no_reg));
112
+ smi_bits_ = smi_bits_ & ~reg.bit();
113
+ }
114
+
115
+ // AST node visit functions.
116
+ #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
117
+ AST_NODE_LIST(DECLARE_VISIT)
118
+ #undef DECLARE_VISIT
119
+
120
+ // Emit code to load the receiver from the stack into receiver_reg.
121
+ void EmitLoadReceiver();
122
+
123
+ // Emit code to load a global variable directly from a global property
124
+ // cell into the destination register.
125
+ void EmitGlobalVariableLoad(Handle<Object> cell);
126
+
127
+ // Emit a store to an own property of this. The stored value is expected
128
+ // in accumulator0 and the receiver in receiver_reg. The receiver
129
+ // register is preserved and the result (the stored value) is left in the
130
+ // destination register.
131
+ void EmitThisPropertyStore(Handle<String> name);
132
+
133
+ // Emit a load from an own property of this. The receiver is expected in
134
+ // receiver_reg. The receiver register is preserved and the result is
135
+ // left in the destination register.
136
+ void EmitThisPropertyLoad(Handle<String> name);
137
+
138
+ // Emit a bitwise or operation. The left operand is in accumulator1 and
139
+ // the right is in accumulator0. The result should be left in the
140
+ // destination register.
141
+ void EmitBitOr();
142
+
143
+ MacroAssembler* masm_;
144
+ CompilationInfo* info_;
145
+
146
+ Register destination_;
147
+ uint32_t smi_bits_;
148
+
149
+ DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator);
150
+ };
151
+
152
+
153
+ } } // namespace v8::internal
154
+
155
+ #endif // V8_FAST_CODEGEN_IA32_H_
@@ -0,0 +1,115 @@
1
+ // Copyright 2006-2008 the V8 project authors. All rights reserved.
2
+ // Redistribution and use in source and binary forms, with or without
3
+ // modification, are permitted provided that the following conditions are
4
+ // met:
5
+ //
6
+ // * Redistributions of source code must retain the above copyright
7
+ // notice, this list of conditions and the following disclaimer.
8
+ // * Redistributions in binary form must reproduce the above
9
+ // copyright notice, this list of conditions and the following
10
+ // disclaimer in the documentation and/or other materials provided
11
+ // with the distribution.
12
+ // * Neither the name of Google Inc. nor the names of its
13
+ // contributors may be used to endorse or promote products derived
14
+ // from this software without specific prior written permission.
15
+ //
16
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+
28
+ #include "v8.h"
29
+
30
+ #if defined(V8_TARGET_ARCH_IA32)
31
+
32
+ #include "frames-inl.h"
33
+
34
+ namespace v8 {
35
+ namespace internal {
36
+
37
+
38
+ StackFrame::Type StackFrame::ComputeType(State* state) {
39
+ ASSERT(state->fp != NULL);
40
+ if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) {
41
+ return ARGUMENTS_ADAPTOR;
42
+ }
43
+ // The marker and function offsets overlap. If the marker isn't a
44
+ // smi then the frame is a JavaScript frame -- and the marker is
45
+ // really the function.
46
+ const int offset = StandardFrameConstants::kMarkerOffset;
47
+ Object* marker = Memory::Object_at(state->fp + offset);
48
+ if (!marker->IsSmi()) return JAVA_SCRIPT;
49
+ return static_cast<StackFrame::Type>(Smi::cast(marker)->value());
50
+ }
51
+
52
+
53
+ StackFrame::Type ExitFrame::GetStateForFramePointer(Address fp, State* state) {
54
+ if (fp == 0) return NONE;
55
+ // Compute the stack pointer.
56
+ Address sp = Memory::Address_at(fp + ExitFrameConstants::kSPOffset);
57
+ // Fill in the state.
58
+ state->fp = fp;
59
+ state->sp = sp;
60
+ state->pc_address = reinterpret_cast<Address*>(sp - 1 * kPointerSize);
61
+ return EXIT;
62
+ }
63
+
64
+
65
+ void ExitFrame::Iterate(ObjectVisitor* v) const {
66
+ v->VisitPointer(&code_slot());
67
+ // The arguments are traversed as part of the expression stack of
68
+ // the calling frame.
69
+ }
70
+
71
+
72
+ int JavaScriptFrame::GetProvidedParametersCount() const {
73
+ return ComputeParametersCount();
74
+ }
75
+
76
+
77
+ Address JavaScriptFrame::GetCallerStackPointer() const {
78
+ int arguments;
79
+ if (Heap::gc_state() != Heap::NOT_IN_GC || disable_heap_access_) {
80
+ // The arguments for cooked frames are traversed as if they were
81
+ // expression stack elements of the calling frame. The reason for
82
+ // this rather strange decision is that we cannot access the
83
+ // function during mark-compact GCs when the stack is cooked.
84
+ // In fact accessing heap objects (like function->shared() below)
85
+ // at all during GC is problematic.
86
+ arguments = 0;
87
+ } else {
88
+ // Compute the number of arguments by getting the number of formal
89
+ // parameters of the function. We must remember to take the
90
+ // receiver into account (+1).
91
+ JSFunction* function = JSFunction::cast(this->function());
92
+ arguments = function->shared()->formal_parameter_count() + 1;
93
+ }
94
+ const int offset = StandardFrameConstants::kCallerSPOffset;
95
+ return fp() + offset + (arguments * kPointerSize);
96
+ }
97
+
98
+
99
+ Address ArgumentsAdaptorFrame::GetCallerStackPointer() const {
100
+ const int arguments = Smi::cast(GetExpression(0))->value();
101
+ const int offset = StandardFrameConstants::kCallerSPOffset;
102
+ return fp() + offset + (arguments + 1) * kPointerSize;
103
+ }
104
+
105
+
106
+ Address InternalFrame::GetCallerStackPointer() const {
107
+ // Internal frames have no arguments. The stack pointer of the
108
+ // caller is at a fixed offset from the frame pointer.
109
+ return fp() + StandardFrameConstants::kCallerSPOffset;
110
+ }
111
+
112
+
113
+ } } // namespace v8::internal
114
+
115
+ #endif // V8_TARGET_ARCH_IA32
@@ -0,0 +1,135 @@
1
+ // Copyright 2006-2008 the V8 project authors. All rights reserved.
2
+ // Redistribution and use in source and binary forms, with or without
3
+ // modification, are permitted provided that the following conditions are
4
+ // met:
5
+ //
6
+ // * Redistributions of source code must retain the above copyright
7
+ // notice, this list of conditions and the following disclaimer.
8
+ // * Redistributions in binary form must reproduce the above
9
+ // copyright notice, this list of conditions and the following
10
+ // disclaimer in the documentation and/or other materials provided
11
+ // with the distribution.
12
+ // * Neither the name of Google Inc. nor the names of its
13
+ // contributors may be used to endorse or promote products derived
14
+ // from this software without specific prior written permission.
15
+ //
16
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+
28
+ #ifndef V8_IA32_FRAMES_IA32_H_
29
+ #define V8_IA32_FRAMES_IA32_H_
30
+
31
+ namespace v8 {
32
+ namespace internal {
33
+
34
+
35
+ // Register lists
36
+ // Note that the bit values must match those used in actual instruction encoding
37
+ static const int kNumRegs = 8;
38
+
39
+
40
+ // Caller-saved registers
41
+ static const RegList kJSCallerSaved =
42
+ 1 << 0 | // eax
43
+ 1 << 1 | // ecx
44
+ 1 << 2 | // edx
45
+ 1 << 3 | // ebx - used as a caller-saved register in JavaScript code
46
+ 1 << 7; // edi - callee function
47
+
48
+ static const int kNumJSCallerSaved = 5;
49
+
50
+ typedef Object* JSCallerSavedBuffer[kNumJSCallerSaved];
51
+
52
+ // ----------------------------------------------------
53
+
54
+
55
+ class StackHandlerConstants : public AllStatic {
56
+ public:
57
+ static const int kNextOffset = 0 * kPointerSize;
58
+ static const int kFPOffset = 1 * kPointerSize;
59
+ static const int kStateOffset = 2 * kPointerSize;
60
+ static const int kPCOffset = 3 * kPointerSize;
61
+
62
+ static const int kSize = kPCOffset + kPointerSize;
63
+ };
64
+
65
+
66
+ class EntryFrameConstants : public AllStatic {
67
+ public:
68
+ static const int kCallerFPOffset = -6 * kPointerSize;
69
+
70
+ static const int kFunctionArgOffset = +3 * kPointerSize;
71
+ static const int kReceiverArgOffset = +4 * kPointerSize;
72
+ static const int kArgcOffset = +5 * kPointerSize;
73
+ static const int kArgvOffset = +6 * kPointerSize;
74
+ };
75
+
76
+
77
+ class ExitFrameConstants : public AllStatic {
78
+ public:
79
+ static const int kCodeOffset = -2 * kPointerSize;
80
+ static const int kSPOffset = -1 * kPointerSize;
81
+
82
+ static const int kCallerFPOffset = 0 * kPointerSize;
83
+ static const int kCallerPCOffset = +1 * kPointerSize;
84
+
85
+ // FP-relative displacement of the caller's SP. It points just
86
+ // below the saved PC.
87
+ static const int kCallerSPDisplacement = +2 * kPointerSize;
88
+ };
89
+
90
+
91
+ class StandardFrameConstants : public AllStatic {
92
+ public:
93
+ static const int kExpressionsOffset = -3 * kPointerSize;
94
+ static const int kMarkerOffset = -2 * kPointerSize;
95
+ static const int kContextOffset = -1 * kPointerSize;
96
+ static const int kCallerFPOffset = 0 * kPointerSize;
97
+ static const int kCallerPCOffset = +1 * kPointerSize;
98
+ static const int kCallerSPOffset = +2 * kPointerSize;
99
+ };
100
+
101
+
102
+ class JavaScriptFrameConstants : public AllStatic {
103
+ public:
104
+ // FP-relative.
105
+ static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
106
+ static const int kSavedRegistersOffset = +2 * kPointerSize;
107
+ static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
108
+
109
+ // Caller SP-relative.
110
+ static const int kParam0Offset = -2 * kPointerSize;
111
+ static const int kReceiverOffset = -1 * kPointerSize;
112
+ };
113
+
114
+
115
+ class ArgumentsAdaptorFrameConstants : public AllStatic {
116
+ public:
117
+ static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
118
+ };
119
+
120
+
121
+ class InternalFrameConstants : public AllStatic {
122
+ public:
123
+ static const int kCodeOffset = StandardFrameConstants::kExpressionsOffset;
124
+ };
125
+
126
+
127
+ inline Object* JavaScriptFrame::function_slot_object() const {
128
+ const int offset = JavaScriptFrameConstants::kFunctionOffset;
129
+ return Memory::Object_at(fp() + offset);
130
+ }
131
+
132
+
133
+ } } // namespace v8::internal
134
+
135
+ #endif // V8_IA32_FRAMES_IA32_H_
@@ -0,0 +1,3281 @@
1
+ // Copyright 2010 the V8 project authors. All rights reserved.
2
+ // Redistribution and use in source and binary forms, with or without
3
+ // modification, are permitted provided that the following conditions are
4
+ // met:
5
+ //
6
+ // * Redistributions of source code must retain the above copyright
7
+ // notice, this list of conditions and the following disclaimer.
8
+ // * Redistributions in binary form must reproduce the above
9
+ // copyright notice, this list of conditions and the following
10
+ // disclaimer in the documentation and/or other materials provided
11
+ // with the distribution.
12
+ // * Neither the name of Google Inc. nor the names of its
13
+ // contributors may be used to endorse or promote products derived
14
+ // from this software without specific prior written permission.
15
+ //
16
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+
28
+ #include "v8.h"
29
+
30
+ #if defined(V8_TARGET_ARCH_IA32)
31
+
32
+ #include "codegen-inl.h"
33
+ #include "compiler.h"
34
+ #include "debug.h"
35
+ #include "full-codegen.h"
36
+ #include "parser.h"
37
+ #include "scopes.h"
38
+
39
+ namespace v8 {
40
+ namespace internal {
41
+
42
+ #define __ ACCESS_MASM(masm_)
43
+
44
+ // Generate code for a JS function. On entry to the function the receiver
45
+ // and arguments have been pushed on the stack left to right, with the
46
+ // return address on top of them. The actual argument count matches the
47
+ // formal parameter count expected by the function.
48
+ //
49
+ // The live registers are:
50
+ // o edi: the JS function object being called (ie, ourselves)
51
+ // o esi: our context
52
+ // o ebp: our caller's frame pointer
53
+ // o esp: stack pointer (pointing to return address)
54
+ //
55
+ // The function builds a JS frame. Please see JavaScriptFrameConstants in
56
+ // frames-ia32.h for its layout.
57
+ void FullCodeGenerator::Generate(CompilationInfo* info, Mode mode) {
58
+ ASSERT(info_ == NULL);
59
+ info_ = info;
60
+ SetFunctionPosition(function());
61
+ Comment cmnt(masm_, "[ function compiled by full code generator");
62
+
63
+ if (mode == PRIMARY) {
64
+ __ push(ebp); // Caller's frame pointer.
65
+ __ mov(ebp, esp);
66
+ __ push(esi); // Callee's context.
67
+ __ push(edi); // Callee's JS Function.
68
+
69
+ { Comment cmnt(masm_, "[ Allocate locals");
70
+ int locals_count = scope()->num_stack_slots();
71
+ if (locals_count == 1) {
72
+ __ push(Immediate(Factory::undefined_value()));
73
+ } else if (locals_count > 1) {
74
+ __ mov(eax, Immediate(Factory::undefined_value()));
75
+ for (int i = 0; i < locals_count; i++) {
76
+ __ push(eax);
77
+ }
78
+ }
79
+ }
80
+
81
+ bool function_in_register = true;
82
+
83
+ // Possibly allocate a local context.
84
+ int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
85
+ if (heap_slots > 0) {
86
+ Comment cmnt(masm_, "[ Allocate local context");
87
+ // Argument to NewContext is the function, which is still in edi.
88
+ __ push(edi);
89
+ if (heap_slots <= FastNewContextStub::kMaximumSlots) {
90
+ FastNewContextStub stub(heap_slots);
91
+ __ CallStub(&stub);
92
+ } else {
93
+ __ CallRuntime(Runtime::kNewContext, 1);
94
+ }
95
+ function_in_register = false;
96
+ // Context is returned in both eax and esi. It replaces the context
97
+ // passed to us. It's saved in the stack and kept live in esi.
98
+ __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), esi);
99
+
100
+ // Copy parameters into context if necessary.
101
+ int num_parameters = scope()->num_parameters();
102
+ for (int i = 0; i < num_parameters; i++) {
103
+ Slot* slot = scope()->parameter(i)->slot();
104
+ if (slot != NULL && slot->type() == Slot::CONTEXT) {
105
+ int parameter_offset = StandardFrameConstants::kCallerSPOffset +
106
+ (num_parameters - 1 - i) * kPointerSize;
107
+ // Load parameter from stack.
108
+ __ mov(eax, Operand(ebp, parameter_offset));
109
+ // Store it in the context.
110
+ int context_offset = Context::SlotOffset(slot->index());
111
+ __ mov(Operand(esi, context_offset), eax);
112
+ // Update the write barrier. This clobbers all involved
113
+ // registers, so we have use a third register to avoid
114
+ // clobbering esi.
115
+ __ mov(ecx, esi);
116
+ __ RecordWrite(ecx, context_offset, eax, ebx);
117
+ }
118
+ }
119
+ }
120
+
121
+ Variable* arguments = scope()->arguments()->AsVariable();
122
+ if (arguments != NULL) {
123
+ // Function uses arguments object.
124
+ Comment cmnt(masm_, "[ Allocate arguments object");
125
+ if (function_in_register) {
126
+ __ push(edi);
127
+ } else {
128
+ __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
129
+ }
130
+ // Receiver is just before the parameters on the caller's stack.
131
+ int offset = scope()->num_parameters() * kPointerSize;
132
+ __ lea(edx,
133
+ Operand(ebp, StandardFrameConstants::kCallerSPOffset + offset));
134
+ __ push(edx);
135
+ __ push(Immediate(Smi::FromInt(scope()->num_parameters())));
136
+ // Arguments to ArgumentsAccessStub:
137
+ // function, receiver address, parameter count.
138
+ // The stub will rewrite receiver and parameter count if the previous
139
+ // stack frame was an arguments adapter frame.
140
+ ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT);
141
+ __ CallStub(&stub);
142
+ __ mov(ecx, eax); // Duplicate result.
143
+ Move(arguments->slot(), eax, ebx, edx);
144
+ Slot* dot_arguments_slot =
145
+ scope()->arguments_shadow()->AsVariable()->slot();
146
+ Move(dot_arguments_slot, ecx, ebx, edx);
147
+ }
148
+ }
149
+
150
+ { Comment cmnt(masm_, "[ Declarations");
151
+ // For named function expressions, declare the function name as a
152
+ // constant.
153
+ if (scope()->is_function_scope() && scope()->function() != NULL) {
154
+ EmitDeclaration(scope()->function(), Variable::CONST, NULL);
155
+ }
156
+ // Visit all the explicit declarations unless there is an illegal
157
+ // redeclaration.
158
+ if (scope()->HasIllegalRedeclaration()) {
159
+ scope()->VisitIllegalRedeclaration(this);
160
+ } else {
161
+ VisitDeclarations(scope()->declarations());
162
+ }
163
+ }
164
+
165
+ { Comment cmnt(masm_, "[ Stack check");
166
+ Label ok;
167
+ ExternalReference stack_limit =
168
+ ExternalReference::address_of_stack_limit();
169
+ __ cmp(esp, Operand::StaticVariable(stack_limit));
170
+ __ j(above_equal, &ok, taken);
171
+ StackCheckStub stub;
172
+ __ CallStub(&stub);
173
+ __ bind(&ok);
174
+ }
175
+
176
+ if (FLAG_trace) {
177
+ __ CallRuntime(Runtime::kTraceEnter, 0);
178
+ }
179
+
180
+ { Comment cmnt(masm_, "[ Body");
181
+ ASSERT(loop_depth() == 0);
182
+ VisitStatements(function()->body());
183
+ ASSERT(loop_depth() == 0);
184
+ }
185
+
186
+ { Comment cmnt(masm_, "[ return <undefined>;");
187
+ // Emit a 'return undefined' in case control fell off the end of the body.
188
+ __ mov(eax, Factory::undefined_value());
189
+ EmitReturnSequence();
190
+ }
191
+ }
192
+
193
+
194
+ void FullCodeGenerator::EmitReturnSequence() {
195
+ Comment cmnt(masm_, "[ Return sequence");
196
+ if (return_label_.is_bound()) {
197
+ __ jmp(&return_label_);
198
+ } else {
199
+ // Common return label
200
+ __ bind(&return_label_);
201
+ if (FLAG_trace) {
202
+ __ push(eax);
203
+ __ CallRuntime(Runtime::kTraceExit, 1);
204
+ }
205
+ #ifdef DEBUG
206
+ // Add a label for checking the size of the code used for returning.
207
+ Label check_exit_codesize;
208
+ masm_->bind(&check_exit_codesize);
209
+ #endif
210
+ CodeGenerator::RecordPositions(masm_, function()->end_position());
211
+ __ RecordJSReturn();
212
+ // Do not use the leave instruction here because it is too short to
213
+ // patch with the code required by the debugger.
214
+ __ mov(esp, ebp);
215
+ __ pop(ebp);
216
+ __ ret((scope()->num_parameters() + 1) * kPointerSize);
217
+ #ifdef ENABLE_DEBUGGER_SUPPORT
218
+ // Check that the size of the code used for returning matches what is
219
+ // expected by the debugger.
220
+ ASSERT_EQ(Assembler::kJSReturnSequenceLength,
221
+ masm_->SizeOfCodeGeneratedSince(&check_exit_codesize));
222
+ #endif
223
+ }
224
+ }
225
+
226
+
227
+ void FullCodeGenerator::Apply(Expression::Context context, Register reg) {
228
+ switch (context) {
229
+ case Expression::kUninitialized:
230
+ UNREACHABLE();
231
+
232
+ case Expression::kEffect:
233
+ // Nothing to do.
234
+ break;
235
+
236
+ case Expression::kValue:
237
+ // Move value into place.
238
+ switch (location_) {
239
+ case kAccumulator:
240
+ if (!reg.is(result_register())) __ mov(result_register(), reg);
241
+ break;
242
+ case kStack:
243
+ __ push(reg);
244
+ break;
245
+ }
246
+ break;
247
+
248
+ case Expression::kTest:
249
+ // For simplicity we always test the accumulator register.
250
+ if (!reg.is(result_register())) __ mov(result_register(), reg);
251
+ DoTest(context);
252
+ break;
253
+
254
+ case Expression::kValueTest:
255
+ case Expression::kTestValue:
256
+ if (!reg.is(result_register())) __ mov(result_register(), reg);
257
+ switch (location_) {
258
+ case kAccumulator:
259
+ break;
260
+ case kStack:
261
+ __ push(result_register());
262
+ break;
263
+ }
264
+ DoTest(context);
265
+ break;
266
+ }
267
+ }
268
+
269
+
270
+ void FullCodeGenerator::Apply(Expression::Context context, Slot* slot) {
271
+ switch (context) {
272
+ case Expression::kUninitialized:
273
+ UNREACHABLE();
274
+ case Expression::kEffect:
275
+ // Nothing to do.
276
+ break;
277
+ case Expression::kValue: {
278
+ MemOperand slot_operand = EmitSlotSearch(slot, result_register());
279
+ switch (location_) {
280
+ case kAccumulator:
281
+ __ mov(result_register(), slot_operand);
282
+ break;
283
+ case kStack:
284
+ // Memory operands can be pushed directly.
285
+ __ push(slot_operand);
286
+ break;
287
+ }
288
+ break;
289
+ }
290
+
291
+ case Expression::kTest:
292
+ // For simplicity we always test the accumulator register.
293
+ Move(result_register(), slot);
294
+ DoTest(context);
295
+ break;
296
+
297
+ case Expression::kValueTest:
298
+ case Expression::kTestValue:
299
+ Move(result_register(), slot);
300
+ switch (location_) {
301
+ case kAccumulator:
302
+ break;
303
+ case kStack:
304
+ __ push(result_register());
305
+ break;
306
+ }
307
+ DoTest(context);
308
+ break;
309
+ }
310
+ }
311
+
312
+
313
+ void FullCodeGenerator::Apply(Expression::Context context, Literal* lit) {
314
+ switch (context) {
315
+ case Expression::kUninitialized:
316
+ UNREACHABLE();
317
+ case Expression::kEffect:
318
+ // Nothing to do.
319
+ break;
320
+ case Expression::kValue:
321
+ switch (location_) {
322
+ case kAccumulator:
323
+ __ mov(result_register(), lit->handle());
324
+ break;
325
+ case kStack:
326
+ // Immediates can be pushed directly.
327
+ __ push(Immediate(lit->handle()));
328
+ break;
329
+ }
330
+ break;
331
+
332
+ case Expression::kTest:
333
+ // For simplicity we always test the accumulator register.
334
+ __ mov(result_register(), lit->handle());
335
+ DoTest(context);
336
+ break;
337
+
338
+ case Expression::kValueTest:
339
+ case Expression::kTestValue:
340
+ __ mov(result_register(), lit->handle());
341
+ switch (location_) {
342
+ case kAccumulator:
343
+ break;
344
+ case kStack:
345
+ __ push(result_register());
346
+ break;
347
+ }
348
+ DoTest(context);
349
+ break;
350
+ }
351
+ }
352
+
353
+
354
+ void FullCodeGenerator::ApplyTOS(Expression::Context context) {
355
+ switch (context) {
356
+ case Expression::kUninitialized:
357
+ UNREACHABLE();
358
+
359
+ case Expression::kEffect:
360
+ __ Drop(1);
361
+ break;
362
+
363
+ case Expression::kValue:
364
+ switch (location_) {
365
+ case kAccumulator:
366
+ __ pop(result_register());
367
+ break;
368
+ case kStack:
369
+ break;
370
+ }
371
+ break;
372
+
373
+ case Expression::kTest:
374
+ // For simplicity we always test the accumulator register.
375
+ __ pop(result_register());
376
+ DoTest(context);
377
+ break;
378
+
379
+ case Expression::kValueTest:
380
+ case Expression::kTestValue:
381
+ switch (location_) {
382
+ case kAccumulator:
383
+ __ pop(result_register());
384
+ break;
385
+ case kStack:
386
+ __ mov(result_register(), Operand(esp, 0));
387
+ break;
388
+ }
389
+ DoTest(context);
390
+ break;
391
+ }
392
+ }
393
+
394
+
395
+ void FullCodeGenerator::DropAndApply(int count,
396
+ Expression::Context context,
397
+ Register reg) {
398
+ ASSERT(count > 0);
399
+ ASSERT(!reg.is(esp));
400
+ switch (context) {
401
+ case Expression::kUninitialized:
402
+ UNREACHABLE();
403
+
404
+ case Expression::kEffect:
405
+ __ Drop(count);
406
+ break;
407
+
408
+ case Expression::kValue:
409
+ switch (location_) {
410
+ case kAccumulator:
411
+ __ Drop(count);
412
+ if (!reg.is(result_register())) __ mov(result_register(), reg);
413
+ break;
414
+ case kStack:
415
+ if (count > 1) __ Drop(count - 1);
416
+ __ mov(Operand(esp, 0), reg);
417
+ break;
418
+ }
419
+ break;
420
+
421
+ case Expression::kTest:
422
+ // For simplicity we always test the accumulator register.
423
+ __ Drop(count);
424
+ if (!reg.is(result_register())) __ mov(result_register(), reg);
425
+ DoTest(context);
426
+ break;
427
+
428
+ case Expression::kValueTest:
429
+ case Expression::kTestValue:
430
+ switch (location_) {
431
+ case kAccumulator:
432
+ __ Drop(count);
433
+ if (!reg.is(result_register())) __ mov(result_register(), reg);
434
+ break;
435
+ case kStack:
436
+ if (count > 1) __ Drop(count - 1);
437
+ __ mov(result_register(), reg);
438
+ __ mov(Operand(esp, 0), result_register());
439
+ break;
440
+ }
441
+ DoTest(context);
442
+ break;
443
+ }
444
+ }
445
+
446
+
447
+ void FullCodeGenerator::PrepareTest(Label* materialize_true,
448
+ Label* materialize_false,
449
+ Label** if_true,
450
+ Label** if_false) {
451
+ switch (context_) {
452
+ case Expression::kUninitialized:
453
+ UNREACHABLE();
454
+ break;
455
+ case Expression::kEffect:
456
+ // In an effect context, the true and the false case branch to the
457
+ // same label.
458
+ *if_true = *if_false = materialize_true;
459
+ break;
460
+ case Expression::kValue:
461
+ *if_true = materialize_true;
462
+ *if_false = materialize_false;
463
+ break;
464
+ case Expression::kTest:
465
+ *if_true = true_label_;
466
+ *if_false = false_label_;
467
+ break;
468
+ case Expression::kValueTest:
469
+ *if_true = materialize_true;
470
+ *if_false = false_label_;
471
+ break;
472
+ case Expression::kTestValue:
473
+ *if_true = true_label_;
474
+ *if_false = materialize_false;
475
+ break;
476
+ }
477
+ }
478
+
479
+
480
+ void FullCodeGenerator::Apply(Expression::Context context,
481
+ Label* materialize_true,
482
+ Label* materialize_false) {
483
+ switch (context) {
484
+ case Expression::kUninitialized:
485
+
486
+ case Expression::kEffect:
487
+ ASSERT_EQ(materialize_true, materialize_false);
488
+ __ bind(materialize_true);
489
+ break;
490
+
491
+ case Expression::kValue: {
492
+ Label done;
493
+ switch (location_) {
494
+ case kAccumulator:
495
+ __ bind(materialize_true);
496
+ __ mov(result_register(), Factory::true_value());
497
+ __ jmp(&done);
498
+ __ bind(materialize_false);
499
+ __ mov(result_register(), Factory::false_value());
500
+ break;
501
+ case kStack:
502
+ __ bind(materialize_true);
503
+ __ push(Immediate(Factory::true_value()));
504
+ __ jmp(&done);
505
+ __ bind(materialize_false);
506
+ __ push(Immediate(Factory::false_value()));
507
+ break;
508
+ }
509
+ __ bind(&done);
510
+ break;
511
+ }
512
+
513
+ case Expression::kTest:
514
+ break;
515
+
516
+ case Expression::kValueTest:
517
+ __ bind(materialize_true);
518
+ switch (location_) {
519
+ case kAccumulator:
520
+ __ mov(result_register(), Factory::true_value());
521
+ break;
522
+ case kStack:
523
+ __ push(Immediate(Factory::true_value()));
524
+ break;
525
+ }
526
+ __ jmp(true_label_);
527
+ break;
528
+
529
+ case Expression::kTestValue:
530
+ __ bind(materialize_false);
531
+ switch (location_) {
532
+ case kAccumulator:
533
+ __ mov(result_register(), Factory::false_value());
534
+ break;
535
+ case kStack:
536
+ __ push(Immediate(Factory::false_value()));
537
+ break;
538
+ }
539
+ __ jmp(false_label_);
540
+ break;
541
+ }
542
+ }
543
+
544
+
545
+ // Convert constant control flow (true or false) to the result expected for
546
+ // a given expression context.
547
+ void FullCodeGenerator::Apply(Expression::Context context, bool flag) {
548
+ switch (context) {
549
+ case Expression::kUninitialized:
550
+ UNREACHABLE();
551
+ break;
552
+ case Expression::kEffect:
553
+ break;
554
+ case Expression::kValue: {
555
+ Handle<Object> value =
556
+ flag ? Factory::true_value() : Factory::false_value();
557
+ switch (location_) {
558
+ case kAccumulator:
559
+ __ mov(result_register(), value);
560
+ break;
561
+ case kStack:
562
+ __ push(Immediate(value));
563
+ break;
564
+ }
565
+ break;
566
+ }
567
+ case Expression::kTest:
568
+ __ jmp(flag ? true_label_ : false_label_);
569
+ break;
570
+ case Expression::kTestValue:
571
+ switch (location_) {
572
+ case kAccumulator:
573
+ // If value is false it's needed.
574
+ if (!flag) __ mov(result_register(), Factory::false_value());
575
+ break;
576
+ case kStack:
577
+ // If value is false it's needed.
578
+ if (!flag) __ push(Immediate(Factory::false_value()));
579
+ break;
580
+ }
581
+ __ jmp(flag ? true_label_ : false_label_);
582
+ break;
583
+ case Expression::kValueTest:
584
+ switch (location_) {
585
+ case kAccumulator:
586
+ // If value is true it's needed.
587
+ if (flag) __ mov(result_register(), Factory::true_value());
588
+ break;
589
+ case kStack:
590
+ // If value is true it's needed.
591
+ if (flag) __ push(Immediate(Factory::true_value()));
592
+ break;
593
+ }
594
+ __ jmp(flag ? true_label_ : false_label_);
595
+ break;
596
+ }
597
+ }
598
+
599
+
600
+ void FullCodeGenerator::DoTest(Expression::Context context) {
601
+ // The value to test is in the accumulator. If the value might be needed
602
+ // on the stack (value/test and test/value contexts with a stack location
603
+ // desired), then the value is already duplicated on the stack.
604
+ ASSERT_NE(NULL, true_label_);
605
+ ASSERT_NE(NULL, false_label_);
606
+
607
+ // In value/test and test/value expression contexts with stack as the
608
+ // desired location, there is already an extra value on the stack. Use a
609
+ // label to discard it if unneeded.
610
+ Label discard;
611
+ Label* if_true = true_label_;
612
+ Label* if_false = false_label_;
613
+ switch (context) {
614
+ case Expression::kUninitialized:
615
+ case Expression::kEffect:
616
+ case Expression::kValue:
617
+ UNREACHABLE();
618
+ case Expression::kTest:
619
+ break;
620
+ case Expression::kValueTest:
621
+ switch (location_) {
622
+ case kAccumulator:
623
+ break;
624
+ case kStack:
625
+ if_false = &discard;
626
+ break;
627
+ }
628
+ break;
629
+ case Expression::kTestValue:
630
+ switch (location_) {
631
+ case kAccumulator:
632
+ break;
633
+ case kStack:
634
+ if_true = &discard;
635
+ break;
636
+ }
637
+ break;
638
+ }
639
+
640
+ // Emit the inlined tests assumed by the stub.
641
+ __ cmp(result_register(), Factory::undefined_value());
642
+ __ j(equal, if_false);
643
+ __ cmp(result_register(), Factory::true_value());
644
+ __ j(equal, if_true);
645
+ __ cmp(result_register(), Factory::false_value());
646
+ __ j(equal, if_false);
647
+ ASSERT_EQ(0, kSmiTag);
648
+ __ test(result_register(), Operand(result_register()));
649
+ __ j(zero, if_false);
650
+ __ test(result_register(), Immediate(kSmiTagMask));
651
+ __ j(zero, if_true);
652
+
653
+ // Save a copy of the value if it may be needed and isn't already saved.
654
+ switch (context) {
655
+ case Expression::kUninitialized:
656
+ case Expression::kEffect:
657
+ case Expression::kValue:
658
+ UNREACHABLE();
659
+ case Expression::kTest:
660
+ break;
661
+ case Expression::kValueTest:
662
+ switch (location_) {
663
+ case kAccumulator:
664
+ __ push(result_register());
665
+ break;
666
+ case kStack:
667
+ break;
668
+ }
669
+ break;
670
+ case Expression::kTestValue:
671
+ switch (location_) {
672
+ case kAccumulator:
673
+ __ push(result_register());
674
+ break;
675
+ case kStack:
676
+ break;
677
+ }
678
+ break;
679
+ }
680
+
681
+ // Call the ToBoolean stub for all other cases.
682
+ ToBooleanStub stub;
683
+ __ push(result_register());
684
+ __ CallStub(&stub);
685
+ __ test(eax, Operand(eax));
686
+
687
+ // The stub returns nonzero for true. Complete based on the context.
688
+ switch (context) {
689
+ case Expression::kUninitialized:
690
+ case Expression::kEffect:
691
+ case Expression::kValue:
692
+ UNREACHABLE();
693
+
694
+ case Expression::kTest:
695
+ __ j(not_zero, true_label_);
696
+ __ jmp(false_label_);
697
+ break;
698
+
699
+ case Expression::kValueTest:
700
+ switch (location_) {
701
+ case kAccumulator:
702
+ __ j(zero, &discard);
703
+ __ pop(result_register());
704
+ __ jmp(true_label_);
705
+ break;
706
+ case kStack:
707
+ __ j(not_zero, true_label_);
708
+ break;
709
+ }
710
+ __ bind(&discard);
711
+ __ Drop(1);
712
+ __ jmp(false_label_);
713
+ break;
714
+
715
+ case Expression::kTestValue:
716
+ switch (location_) {
717
+ case kAccumulator:
718
+ __ j(not_zero, &discard);
719
+ __ pop(result_register());
720
+ __ jmp(false_label_);
721
+ break;
722
+ case kStack:
723
+ __ j(zero, false_label_);
724
+ break;
725
+ }
726
+ __ bind(&discard);
727
+ __ Drop(1);
728
+ __ jmp(true_label_);
729
+ break;
730
+ }
731
+ }
732
+
733
+
734
+ MemOperand FullCodeGenerator::EmitSlotSearch(Slot* slot, Register scratch) {
735
+ switch (slot->type()) {
736
+ case Slot::PARAMETER:
737
+ case Slot::LOCAL:
738
+ return Operand(ebp, SlotOffset(slot));
739
+ case Slot::CONTEXT: {
740
+ int context_chain_length =
741
+ scope()->ContextChainLength(slot->var()->scope());
742
+ __ LoadContext(scratch, context_chain_length);
743
+ return CodeGenerator::ContextOperand(scratch, slot->index());
744
+ }
745
+ case Slot::LOOKUP:
746
+ UNREACHABLE();
747
+ }
748
+ UNREACHABLE();
749
+ return Operand(eax, 0);
750
+ }
751
+
752
+
753
+ void FullCodeGenerator::Move(Register destination, Slot* source) {
754
+ MemOperand location = EmitSlotSearch(source, destination);
755
+ __ mov(destination, location);
756
+ }
757
+
758
+
759
+ void FullCodeGenerator::Move(Slot* dst,
760
+ Register src,
761
+ Register scratch1,
762
+ Register scratch2) {
763
+ ASSERT(dst->type() != Slot::LOOKUP); // Not yet implemented.
764
+ ASSERT(!scratch1.is(src) && !scratch2.is(src));
765
+ MemOperand location = EmitSlotSearch(dst, scratch1);
766
+ __ mov(location, src);
767
+ // Emit the write barrier code if the location is in the heap.
768
+ if (dst->type() == Slot::CONTEXT) {
769
+ int offset = FixedArray::kHeaderSize + dst->index() * kPointerSize;
770
+ __ RecordWrite(scratch1, offset, src, scratch2);
771
+ }
772
+ }
773
+
774
+
775
+ void FullCodeGenerator::EmitDeclaration(Variable* variable,
776
+ Variable::Mode mode,
777
+ FunctionLiteral* function) {
778
+ Comment cmnt(masm_, "[ Declaration");
779
+ ASSERT(variable != NULL); // Must have been resolved.
780
+ Slot* slot = variable->slot();
781
+ Property* prop = variable->AsProperty();
782
+ if (slot != NULL) {
783
+ switch (slot->type()) {
784
+ case Slot::PARAMETER:
785
+ case Slot::LOCAL:
786
+ if (mode == Variable::CONST) {
787
+ __ mov(Operand(ebp, SlotOffset(slot)),
788
+ Immediate(Factory::the_hole_value()));
789
+ } else if (function != NULL) {
790
+ VisitForValue(function, kAccumulator);
791
+ __ mov(Operand(ebp, SlotOffset(slot)), result_register());
792
+ }
793
+ break;
794
+
795
+ case Slot::CONTEXT:
796
+ // We bypass the general EmitSlotSearch because we know more about
797
+ // this specific context.
798
+
799
+ // The variable in the decl always resides in the current context.
800
+ ASSERT_EQ(0, scope()->ContextChainLength(variable->scope()));
801
+ if (FLAG_debug_code) {
802
+ // Check if we have the correct context pointer.
803
+ __ mov(ebx,
804
+ CodeGenerator::ContextOperand(esi, Context::FCONTEXT_INDEX));
805
+ __ cmp(ebx, Operand(esi));
806
+ __ Check(equal, "Unexpected declaration in current context.");
807
+ }
808
+ if (mode == Variable::CONST) {
809
+ __ mov(CodeGenerator::ContextOperand(esi, slot->index()),
810
+ Immediate(Factory::the_hole_value()));
811
+ // No write barrier since the hole value is in old space.
812
+ } else if (function != NULL) {
813
+ VisitForValue(function, kAccumulator);
814
+ __ mov(CodeGenerator::ContextOperand(esi, slot->index()),
815
+ result_register());
816
+ int offset = Context::SlotOffset(slot->index());
817
+ __ mov(ebx, esi);
818
+ __ RecordWrite(ebx, offset, result_register(), ecx);
819
+ }
820
+ break;
821
+
822
+ case Slot::LOOKUP: {
823
+ __ push(esi);
824
+ __ push(Immediate(variable->name()));
825
+ // Declaration nodes are always introduced in one of two modes.
826
+ ASSERT(mode == Variable::VAR || mode == Variable::CONST);
827
+ PropertyAttributes attr = (mode == Variable::VAR) ? NONE : READ_ONLY;
828
+ __ push(Immediate(Smi::FromInt(attr)));
829
+ // Push initial value, if any.
830
+ // Note: For variables we must not push an initial value (such as
831
+ // 'undefined') because we may have a (legal) redeclaration and we
832
+ // must not destroy the current value.
833
+ if (mode == Variable::CONST) {
834
+ __ push(Immediate(Factory::the_hole_value()));
835
+ } else if (function != NULL) {
836
+ VisitForValue(function, kStack);
837
+ } else {
838
+ __ push(Immediate(Smi::FromInt(0))); // No initial value!
839
+ }
840
+ __ CallRuntime(Runtime::kDeclareContextSlot, 4);
841
+ break;
842
+ }
843
+ }
844
+
845
+ } else if (prop != NULL) {
846
+ if (function != NULL || mode == Variable::CONST) {
847
+ // We are declaring a function or constant that rewrites to a
848
+ // property. Use (keyed) IC to set the initial value.
849
+ VisitForValue(prop->obj(), kStack);
850
+ if (function != NULL) {
851
+ VisitForValue(prop->key(), kStack);
852
+ VisitForValue(function, kAccumulator);
853
+ __ pop(ecx);
854
+ } else {
855
+ VisitForValue(prop->key(), kAccumulator);
856
+ __ mov(ecx, result_register());
857
+ __ mov(result_register(), Factory::the_hole_value());
858
+ }
859
+ __ pop(edx);
860
+
861
+ Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize));
862
+ __ call(ic, RelocInfo::CODE_TARGET);
863
+ // Absence of a test eax instruction following the call
864
+ // indicates that none of the load was inlined.
865
+ __ nop();
866
+ }
867
+ }
868
+ }
869
+
870
+
871
+ void FullCodeGenerator::VisitDeclaration(Declaration* decl) {
872
+ EmitDeclaration(decl->proxy()->var(), decl->mode(), decl->fun());
873
+ }
874
+
875
+
876
+ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
877
+ // Call the runtime to declare the globals.
878
+ __ push(esi); // The context is the first argument.
879
+ __ push(Immediate(pairs));
880
+ __ push(Immediate(Smi::FromInt(is_eval() ? 1 : 0)));
881
+ __ CallRuntime(Runtime::kDeclareGlobals, 3);
882
+ // Return value is ignored.
883
+ }
884
+
885
+
886
+ void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
887
+ Comment cmnt(masm_, "[ SwitchStatement");
888
+ Breakable nested_statement(this, stmt);
889
+ SetStatementPosition(stmt);
890
+ // Keep the switch value on the stack until a case matches.
891
+ VisitForValue(stmt->tag(), kStack);
892
+
893
+ ZoneList<CaseClause*>* clauses = stmt->cases();
894
+ CaseClause* default_clause = NULL; // Can occur anywhere in the list.
895
+
896
+ Label next_test; // Recycled for each test.
897
+ // Compile all the tests with branches to their bodies.
898
+ for (int i = 0; i < clauses->length(); i++) {
899
+ CaseClause* clause = clauses->at(i);
900
+ // The default is not a test, but remember it as final fall through.
901
+ if (clause->is_default()) {
902
+ default_clause = clause;
903
+ continue;
904
+ }
905
+
906
+ Comment cmnt(masm_, "[ Case comparison");
907
+ __ bind(&next_test);
908
+ next_test.Unuse();
909
+
910
+ // Compile the label expression.
911
+ VisitForValue(clause->label(), kAccumulator);
912
+
913
+ // Perform the comparison as if via '==='. The comparison stub expects
914
+ // the smi vs. smi case to be handled before it is called.
915
+ Label slow_case;
916
+ __ mov(edx, Operand(esp, 0)); // Switch value.
917
+ __ mov(ecx, edx);
918
+ __ or_(ecx, Operand(eax));
919
+ __ test(ecx, Immediate(kSmiTagMask));
920
+ __ j(not_zero, &slow_case, not_taken);
921
+ __ cmp(edx, Operand(eax));
922
+ __ j(not_equal, &next_test);
923
+ __ Drop(1); // Switch value is no longer needed.
924
+ __ jmp(clause->body_target()->entry_label());
925
+
926
+ __ bind(&slow_case);
927
+ CompareStub stub(equal, true);
928
+ __ CallStub(&stub);
929
+ __ test(eax, Operand(eax));
930
+ __ j(not_equal, &next_test);
931
+ __ Drop(1); // Switch value is no longer needed.
932
+ __ jmp(clause->body_target()->entry_label());
933
+ }
934
+
935
+ // Discard the test value and jump to the default if present, otherwise to
936
+ // the end of the statement.
937
+ __ bind(&next_test);
938
+ __ Drop(1); // Switch value is no longer needed.
939
+ if (default_clause == NULL) {
940
+ __ jmp(nested_statement.break_target());
941
+ } else {
942
+ __ jmp(default_clause->body_target()->entry_label());
943
+ }
944
+
945
+ // Compile all the case bodies.
946
+ for (int i = 0; i < clauses->length(); i++) {
947
+ Comment cmnt(masm_, "[ Case body");
948
+ CaseClause* clause = clauses->at(i);
949
+ __ bind(clause->body_target()->entry_label());
950
+ VisitStatements(clause->statements());
951
+ }
952
+
953
+ __ bind(nested_statement.break_target());
954
+ }
955
+
956
+
957
+ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
958
+ Comment cmnt(masm_, "[ ForInStatement");
959
+ SetStatementPosition(stmt);
960
+
961
+ Label loop, exit;
962
+ ForIn loop_statement(this, stmt);
963
+ increment_loop_depth();
964
+
965
+ // Get the object to enumerate over. Both SpiderMonkey and JSC
966
+ // ignore null and undefined in contrast to the specification; see
967
+ // ECMA-262 section 12.6.4.
968
+ VisitForValue(stmt->enumerable(), kAccumulator);
969
+ __ cmp(eax, Factory::undefined_value());
970
+ __ j(equal, &exit);
971
+ __ cmp(eax, Factory::null_value());
972
+ __ j(equal, &exit);
973
+
974
+ // Convert the object to a JS object.
975
+ Label convert, done_convert;
976
+ __ test(eax, Immediate(kSmiTagMask));
977
+ __ j(zero, &convert);
978
+ __ CmpObjectType(eax, FIRST_JS_OBJECT_TYPE, ecx);
979
+ __ j(above_equal, &done_convert);
980
+ __ bind(&convert);
981
+ __ push(eax);
982
+ __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
983
+ __ bind(&done_convert);
984
+ __ push(eax);
985
+
986
+ // TODO(kasperl): Check cache validity in generated code. This is a
987
+ // fast case for the JSObject::IsSimpleEnum cache validity
988
+ // checks. If we cannot guarantee cache validity, call the runtime
989
+ // system to check cache validity or get the property names in a
990
+ // fixed array.
991
+
992
+ // Get the set of properties to enumerate.
993
+ __ push(eax); // Duplicate the enumerable object on the stack.
994
+ __ CallRuntime(Runtime::kGetPropertyNamesFast, 1);
995
+
996
+ // If we got a map from the runtime call, we can do a fast
997
+ // modification check. Otherwise, we got a fixed array, and we have
998
+ // to do a slow check.
999
+ Label fixed_array;
1000
+ __ cmp(FieldOperand(eax, HeapObject::kMapOffset), Factory::meta_map());
1001
+ __ j(not_equal, &fixed_array);
1002
+
1003
+ // We got a map in register eax. Get the enumeration cache from it.
1004
+ __ mov(ecx, FieldOperand(eax, Map::kInstanceDescriptorsOffset));
1005
+ __ mov(ecx, FieldOperand(ecx, DescriptorArray::kEnumerationIndexOffset));
1006
+ __ mov(edx, FieldOperand(ecx, DescriptorArray::kEnumCacheBridgeCacheOffset));
1007
+
1008
+ // Setup the four remaining stack slots.
1009
+ __ push(eax); // Map.
1010
+ __ push(edx); // Enumeration cache.
1011
+ __ mov(eax, FieldOperand(edx, FixedArray::kLengthOffset));
1012
+ __ push(eax); // Enumeration cache length (as smi).
1013
+ __ push(Immediate(Smi::FromInt(0))); // Initial index.
1014
+ __ jmp(&loop);
1015
+
1016
+ // We got a fixed array in register eax. Iterate through that.
1017
+ __ bind(&fixed_array);
1018
+ __ push(Immediate(Smi::FromInt(0))); // Map (0) - force slow check.
1019
+ __ push(eax);
1020
+ __ mov(eax, FieldOperand(eax, FixedArray::kLengthOffset));
1021
+ __ push(eax); // Fixed array length (as smi).
1022
+ __ push(Immediate(Smi::FromInt(0))); // Initial index.
1023
+
1024
+ // Generate code for doing the condition check.
1025
+ __ bind(&loop);
1026
+ __ mov(eax, Operand(esp, 0 * kPointerSize)); // Get the current index.
1027
+ __ cmp(eax, Operand(esp, 1 * kPointerSize)); // Compare to the array length.
1028
+ __ j(above_equal, loop_statement.break_target());
1029
+
1030
+ // Get the current entry of the array into register ebx.
1031
+ __ mov(ebx, Operand(esp, 2 * kPointerSize));
1032
+ __ mov(ebx, FieldOperand(ebx, eax, times_2, FixedArray::kHeaderSize));
1033
+
1034
+ // Get the expected map from the stack or a zero map in the
1035
+ // permanent slow case into register edx.
1036
+ __ mov(edx, Operand(esp, 3 * kPointerSize));
1037
+
1038
+ // Check if the expected map still matches that of the enumerable.
1039
+ // If not, we have to filter the key.
1040
+ Label update_each;
1041
+ __ mov(ecx, Operand(esp, 4 * kPointerSize));
1042
+ __ cmp(edx, FieldOperand(ecx, HeapObject::kMapOffset));
1043
+ __ j(equal, &update_each);
1044
+
1045
+ // Convert the entry to a string or null if it isn't a property
1046
+ // anymore. If the property has been removed while iterating, we
1047
+ // just skip it.
1048
+ __ push(ecx); // Enumerable.
1049
+ __ push(ebx); // Current entry.
1050
+ __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION);
1051
+ __ cmp(eax, Factory::null_value());
1052
+ __ j(equal, loop_statement.continue_target());
1053
+ __ mov(ebx, Operand(eax));
1054
+
1055
+ // Update the 'each' property or variable from the possibly filtered
1056
+ // entry in register ebx.
1057
+ __ bind(&update_each);
1058
+ __ mov(result_register(), ebx);
1059
+ // Perform the assignment as if via '='.
1060
+ EmitAssignment(stmt->each());
1061
+
1062
+ // Generate code for the body of the loop.
1063
+ Label stack_limit_hit, stack_check_done;
1064
+ Visit(stmt->body());
1065
+
1066
+ __ StackLimitCheck(&stack_limit_hit);
1067
+ __ bind(&stack_check_done);
1068
+
1069
+ // Generate code for going to the next element by incrementing the
1070
+ // index (smi) stored on top of the stack.
1071
+ __ bind(loop_statement.continue_target());
1072
+ __ add(Operand(esp, 0 * kPointerSize), Immediate(Smi::FromInt(1)));
1073
+ __ jmp(&loop);
1074
+
1075
+ // Slow case for the stack limit check.
1076
+ StackCheckStub stack_check_stub;
1077
+ __ bind(&stack_limit_hit);
1078
+ __ CallStub(&stack_check_stub);
1079
+ __ jmp(&stack_check_done);
1080
+
1081
+ // Remove the pointers stored on the stack.
1082
+ __ bind(loop_statement.break_target());
1083
+ __ add(Operand(esp), Immediate(5 * kPointerSize));
1084
+
1085
+ // Exit and decrement the loop depth.
1086
+ __ bind(&exit);
1087
+ decrement_loop_depth();
1088
+ }
1089
+
1090
+
1091
+ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info) {
1092
+ // Use the fast case closure allocation code that allocates in new
1093
+ // space for nested functions that don't need literals cloning.
1094
+ if (scope()->is_function_scope() && info->num_literals() == 0) {
1095
+ FastNewClosureStub stub;
1096
+ __ push(Immediate(info));
1097
+ __ CallStub(&stub);
1098
+ } else {
1099
+ __ push(esi);
1100
+ __ push(Immediate(info));
1101
+ __ CallRuntime(Runtime::kNewClosure, 2);
1102
+ }
1103
+ Apply(context_, eax);
1104
+ }
1105
+
1106
+
1107
+ void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) {
1108
+ Comment cmnt(masm_, "[ VariableProxy");
1109
+ EmitVariableLoad(expr->var(), context_);
1110
+ }
1111
+
1112
+
1113
+ void FullCodeGenerator::EmitVariableLoad(Variable* var,
1114
+ Expression::Context context) {
1115
+ // Four cases: non-this global variables, lookup slots, all other
1116
+ // types of slots, and parameters that rewrite to explicit property
1117
+ // accesses on the arguments object.
1118
+ Slot* slot = var->slot();
1119
+ Property* property = var->AsProperty();
1120
+
1121
+ if (var->is_global() && !var->is_this()) {
1122
+ Comment cmnt(masm_, "Global variable");
1123
+ // Use inline caching. Variable name is passed in ecx and the global
1124
+ // object on the stack.
1125
+ __ mov(eax, CodeGenerator::GlobalObject());
1126
+ __ mov(ecx, var->name());
1127
+ Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
1128
+ __ call(ic, RelocInfo::CODE_TARGET_CONTEXT);
1129
+ // By emitting a nop we make sure that we do not have a test eax
1130
+ // instruction after the call it is treated specially by the LoadIC code
1131
+ // Remember that the assembler may choose to do peephole optimization
1132
+ // (eg, push/pop elimination).
1133
+ __ nop();
1134
+ Apply(context, eax);
1135
+
1136
+ } else if (slot != NULL && slot->type() == Slot::LOOKUP) {
1137
+ Comment cmnt(masm_, "Lookup slot");
1138
+ __ push(esi); // Context.
1139
+ __ push(Immediate(var->name()));
1140
+ __ CallRuntime(Runtime::kLoadContextSlot, 2);
1141
+ Apply(context, eax);
1142
+
1143
+ } else if (slot != NULL) {
1144
+ Comment cmnt(masm_, (slot->type() == Slot::CONTEXT)
1145
+ ? "Context slot"
1146
+ : "Stack slot");
1147
+ if (var->mode() == Variable::CONST) {
1148
+ // Constants may be the hole value if they have not been initialized.
1149
+ // Unhole them.
1150
+ Label done;
1151
+ MemOperand slot_operand = EmitSlotSearch(slot, eax);
1152
+ __ mov(eax, slot_operand);
1153
+ __ cmp(eax, Factory::the_hole_value());
1154
+ __ j(not_equal, &done);
1155
+ __ mov(eax, Factory::undefined_value());
1156
+ __ bind(&done);
1157
+ Apply(context, eax);
1158
+ } else {
1159
+ Apply(context, slot);
1160
+ }
1161
+
1162
+ } else {
1163
+ Comment cmnt(masm_, "Rewritten parameter");
1164
+ ASSERT_NOT_NULL(property);
1165
+ // Rewritten parameter accesses are of the form "slot[literal]".
1166
+
1167
+ // Assert that the object is in a slot.
1168
+ Variable* object_var = property->obj()->AsVariableProxy()->AsVariable();
1169
+ ASSERT_NOT_NULL(object_var);
1170
+ Slot* object_slot = object_var->slot();
1171
+ ASSERT_NOT_NULL(object_slot);
1172
+
1173
+ // Load the object.
1174
+ MemOperand object_loc = EmitSlotSearch(object_slot, eax);
1175
+ __ mov(edx, object_loc);
1176
+
1177
+ // Assert that the key is a smi.
1178
+ Literal* key_literal = property->key()->AsLiteral();
1179
+ ASSERT_NOT_NULL(key_literal);
1180
+ ASSERT(key_literal->handle()->IsSmi());
1181
+
1182
+ // Load the key.
1183
+ __ mov(eax, Immediate(key_literal->handle()));
1184
+
1185
+ // Do a keyed property load.
1186
+ Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize));
1187
+ __ call(ic, RelocInfo::CODE_TARGET);
1188
+ // Notice: We must not have a "test eax, ..." instruction after the
1189
+ // call. It is treated specially by the LoadIC code.
1190
+ __ nop();
1191
+ // Drop key and object left on the stack by IC.
1192
+ Apply(context, eax);
1193
+ }
1194
+ }
1195
+
1196
+
1197
+ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
1198
+ Comment cmnt(masm_, "[ RegExpLiteral");
1199
+ Label done;
1200
+ // Registers will be used as follows:
1201
+ // edi = JS function.
1202
+ // ebx = literals array.
1203
+ // eax = regexp literal.
1204
+ __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1205
+ __ mov(ebx, FieldOperand(edi, JSFunction::kLiteralsOffset));
1206
+ int literal_offset =
1207
+ FixedArray::kHeaderSize + expr->literal_index() * kPointerSize;
1208
+ __ mov(eax, FieldOperand(ebx, literal_offset));
1209
+ __ cmp(eax, Factory::undefined_value());
1210
+ __ j(not_equal, &done);
1211
+ // Create regexp literal using runtime function
1212
+ // Result will be in eax.
1213
+ __ push(ebx);
1214
+ __ push(Immediate(Smi::FromInt(expr->literal_index())));
1215
+ __ push(Immediate(expr->pattern()));
1216
+ __ push(Immediate(expr->flags()));
1217
+ __ CallRuntime(Runtime::kMaterializeRegExpLiteral, 4);
1218
+ // Label done:
1219
+ __ bind(&done);
1220
+ Apply(context_, eax);
1221
+ }
1222
+
1223
+
1224
+ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
1225
+ Comment cmnt(masm_, "[ ObjectLiteral");
1226
+ __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1227
+ __ push(FieldOperand(edi, JSFunction::kLiteralsOffset));
1228
+ __ push(Immediate(Smi::FromInt(expr->literal_index())));
1229
+ __ push(Immediate(expr->constant_properties()));
1230
+ __ push(Immediate(Smi::FromInt(expr->fast_elements() ? 1 : 0)));
1231
+ if (expr->depth() > 1) {
1232
+ __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
1233
+ } else {
1234
+ __ CallRuntime(Runtime::kCreateObjectLiteralShallow, 4);
1235
+ }
1236
+
1237
+ // If result_saved is true the result is on top of the stack. If
1238
+ // result_saved is false the result is in eax.
1239
+ bool result_saved = false;
1240
+
1241
+ for (int i = 0; i < expr->properties()->length(); i++) {
1242
+ ObjectLiteral::Property* property = expr->properties()->at(i);
1243
+ if (property->IsCompileTimeValue()) continue;
1244
+
1245
+ Literal* key = property->key();
1246
+ Expression* value = property->value();
1247
+ if (!result_saved) {
1248
+ __ push(eax); // Save result on the stack
1249
+ result_saved = true;
1250
+ }
1251
+ switch (property->kind()) {
1252
+ case ObjectLiteral::Property::MATERIALIZED_LITERAL:
1253
+ ASSERT(!CompileTimeValue::IsCompileTimeValue(value));
1254
+ // Fall through.
1255
+ case ObjectLiteral::Property::COMPUTED:
1256
+ if (key->handle()->IsSymbol()) {
1257
+ VisitForValue(value, kAccumulator);
1258
+ __ mov(ecx, Immediate(key->handle()));
1259
+ __ mov(edx, Operand(esp, 0));
1260
+ Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize));
1261
+ __ call(ic, RelocInfo::CODE_TARGET);
1262
+ __ nop();
1263
+ break;
1264
+ }
1265
+ // Fall through.
1266
+ case ObjectLiteral::Property::PROTOTYPE:
1267
+ __ push(Operand(esp, 0)); // Duplicate receiver.
1268
+ VisitForValue(key, kStack);
1269
+ VisitForValue(value, kStack);
1270
+ __ CallRuntime(Runtime::kSetProperty, 3);
1271
+ break;
1272
+ case ObjectLiteral::Property::SETTER:
1273
+ case ObjectLiteral::Property::GETTER:
1274
+ __ push(Operand(esp, 0)); // Duplicate receiver.
1275
+ VisitForValue(key, kStack);
1276
+ __ push(Immediate(property->kind() == ObjectLiteral::Property::SETTER ?
1277
+ Smi::FromInt(1) :
1278
+ Smi::FromInt(0)));
1279
+ VisitForValue(value, kStack);
1280
+ __ CallRuntime(Runtime::kDefineAccessor, 4);
1281
+ break;
1282
+ default: UNREACHABLE();
1283
+ }
1284
+ }
1285
+
1286
+ if (result_saved) {
1287
+ ApplyTOS(context_);
1288
+ } else {
1289
+ Apply(context_, eax);
1290
+ }
1291
+ }
1292
+
1293
+
1294
+ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
1295
+ Comment cmnt(masm_, "[ ArrayLiteral");
1296
+
1297
+ ZoneList<Expression*>* subexprs = expr->values();
1298
+ int length = subexprs->length();
1299
+
1300
+ __ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1301
+ __ push(FieldOperand(ebx, JSFunction::kLiteralsOffset));
1302
+ __ push(Immediate(Smi::FromInt(expr->literal_index())));
1303
+ __ push(Immediate(expr->constant_elements()));
1304
+ if (expr->depth() > 1) {
1305
+ __ CallRuntime(Runtime::kCreateArrayLiteral, 3);
1306
+ } else if (length > FastCloneShallowArrayStub::kMaximumLength) {
1307
+ __ CallRuntime(Runtime::kCreateArrayLiteralShallow, 3);
1308
+ } else {
1309
+ FastCloneShallowArrayStub stub(length);
1310
+ __ CallStub(&stub);
1311
+ }
1312
+
1313
+ bool result_saved = false; // Is the result saved to the stack?
1314
+
1315
+ // Emit code to evaluate all the non-constant subexpressions and to store
1316
+ // them into the newly cloned array.
1317
+ for (int i = 0; i < length; i++) {
1318
+ Expression* subexpr = subexprs->at(i);
1319
+ // If the subexpression is a literal or a simple materialized literal it
1320
+ // is already set in the cloned array.
1321
+ if (subexpr->AsLiteral() != NULL ||
1322
+ CompileTimeValue::IsCompileTimeValue(subexpr)) {
1323
+ continue;
1324
+ }
1325
+
1326
+ if (!result_saved) {
1327
+ __ push(eax);
1328
+ result_saved = true;
1329
+ }
1330
+ VisitForValue(subexpr, kAccumulator);
1331
+
1332
+ // Store the subexpression value in the array's elements.
1333
+ __ mov(ebx, Operand(esp, 0)); // Copy of array literal.
1334
+ __ mov(ebx, FieldOperand(ebx, JSObject::kElementsOffset));
1335
+ int offset = FixedArray::kHeaderSize + (i * kPointerSize);
1336
+ __ mov(FieldOperand(ebx, offset), result_register());
1337
+
1338
+ // Update the write barrier for the array store.
1339
+ __ RecordWrite(ebx, offset, result_register(), ecx);
1340
+ }
1341
+
1342
+ if (result_saved) {
1343
+ ApplyTOS(context_);
1344
+ } else {
1345
+ Apply(context_, eax);
1346
+ }
1347
+ }
1348
+
1349
+
1350
+ void FullCodeGenerator::VisitAssignment(Assignment* expr) {
1351
+ Comment cmnt(masm_, "[ Assignment");
1352
+ // Invalid left-hand sides are rewritten to have a 'throw ReferenceError'
1353
+ // on the left-hand side.
1354
+ if (!expr->target()->IsValidLeftHandSide()) {
1355
+ VisitForEffect(expr->target());
1356
+ return;
1357
+ }
1358
+
1359
+ // Left-hand side can only be a property, a global or a (parameter or local)
1360
+ // slot. Variables with rewrite to .arguments are treated as KEYED_PROPERTY.
1361
+ enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
1362
+ LhsKind assign_type = VARIABLE;
1363
+ Property* prop = expr->target()->AsProperty();
1364
+ if (prop != NULL) {
1365
+ assign_type =
1366
+ (prop->key()->IsPropertyName()) ? NAMED_PROPERTY : KEYED_PROPERTY;
1367
+ }
1368
+
1369
+ // Evaluate LHS expression.
1370
+ switch (assign_type) {
1371
+ case VARIABLE:
1372
+ // Nothing to do here.
1373
+ break;
1374
+ case NAMED_PROPERTY:
1375
+ if (expr->is_compound()) {
1376
+ // We need the receiver both on the stack and in the accumulator.
1377
+ VisitForValue(prop->obj(), kAccumulator);
1378
+ __ push(result_register());
1379
+ } else {
1380
+ VisitForValue(prop->obj(), kStack);
1381
+ }
1382
+ break;
1383
+ case KEYED_PROPERTY:
1384
+ if (expr->is_compound()) {
1385
+ VisitForValue(prop->obj(), kStack);
1386
+ VisitForValue(prop->key(), kAccumulator);
1387
+ __ mov(edx, Operand(esp, 0));
1388
+ __ push(eax);
1389
+ } else {
1390
+ VisitForValue(prop->obj(), kStack);
1391
+ VisitForValue(prop->key(), kStack);
1392
+ }
1393
+ break;
1394
+ }
1395
+
1396
+ // If we have a compound assignment: Get value of LHS expression and
1397
+ // store in on top of the stack.
1398
+ if (expr->is_compound()) {
1399
+ Location saved_location = location_;
1400
+ location_ = kStack;
1401
+ switch (assign_type) {
1402
+ case VARIABLE:
1403
+ EmitVariableLoad(expr->target()->AsVariableProxy()->var(),
1404
+ Expression::kValue);
1405
+ break;
1406
+ case NAMED_PROPERTY:
1407
+ EmitNamedPropertyLoad(prop);
1408
+ __ push(result_register());
1409
+ break;
1410
+ case KEYED_PROPERTY:
1411
+ EmitKeyedPropertyLoad(prop);
1412
+ __ push(result_register());
1413
+ break;
1414
+ }
1415
+ location_ = saved_location;
1416
+ }
1417
+
1418
+ // Evaluate RHS expression.
1419
+ Expression* rhs = expr->value();
1420
+ VisitForValue(rhs, kAccumulator);
1421
+
1422
+ // If we have a compound assignment: Apply operator.
1423
+ if (expr->is_compound()) {
1424
+ Location saved_location = location_;
1425
+ location_ = kAccumulator;
1426
+ EmitBinaryOp(expr->binary_op(), Expression::kValue);
1427
+ location_ = saved_location;
1428
+ }
1429
+
1430
+ // Record source position before possible IC call.
1431
+ SetSourcePosition(expr->position());
1432
+
1433
+ // Store the value.
1434
+ switch (assign_type) {
1435
+ case VARIABLE:
1436
+ EmitVariableAssignment(expr->target()->AsVariableProxy()->var(),
1437
+ expr->op(),
1438
+ context_);
1439
+ break;
1440
+ case NAMED_PROPERTY:
1441
+ EmitNamedPropertyAssignment(expr);
1442
+ break;
1443
+ case KEYED_PROPERTY:
1444
+ EmitKeyedPropertyAssignment(expr);
1445
+ break;
1446
+ }
1447
+ }
1448
+
1449
+
1450
+ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
1451
+ SetSourcePosition(prop->position());
1452
+ Literal* key = prop->key()->AsLiteral();
1453
+ __ mov(ecx, Immediate(key->handle()));
1454
+ Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
1455
+ __ call(ic, RelocInfo::CODE_TARGET);
1456
+ __ nop();
1457
+ }
1458
+
1459
+
1460
+ void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
1461
+ SetSourcePosition(prop->position());
1462
+ Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize));
1463
+ __ call(ic, RelocInfo::CODE_TARGET);
1464
+ __ nop();
1465
+ }
1466
+
1467
+
1468
+ void FullCodeGenerator::EmitBinaryOp(Token::Value op,
1469
+ Expression::Context context) {
1470
+ __ push(result_register());
1471
+ GenericBinaryOpStub stub(op,
1472
+ NO_OVERWRITE,
1473
+ NO_GENERIC_BINARY_FLAGS,
1474
+ TypeInfo::Unknown());
1475
+ __ CallStub(&stub);
1476
+ Apply(context, eax);
1477
+ }
1478
+
1479
+
1480
+ void FullCodeGenerator::EmitAssignment(Expression* expr) {
1481
+ // Invalid left-hand sides are rewritten to have a 'throw
1482
+ // ReferenceError' on the left-hand side.
1483
+ if (!expr->IsValidLeftHandSide()) {
1484
+ VisitForEffect(expr);
1485
+ return;
1486
+ }
1487
+
1488
+ // Left-hand side can only be a property, a global or a (parameter or local)
1489
+ // slot. Variables with rewrite to .arguments are treated as KEYED_PROPERTY.
1490
+ enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
1491
+ LhsKind assign_type = VARIABLE;
1492
+ Property* prop = expr->AsProperty();
1493
+ if (prop != NULL) {
1494
+ assign_type = (prop->key()->IsPropertyName())
1495
+ ? NAMED_PROPERTY
1496
+ : KEYED_PROPERTY;
1497
+ }
1498
+
1499
+ switch (assign_type) {
1500
+ case VARIABLE: {
1501
+ Variable* var = expr->AsVariableProxy()->var();
1502
+ EmitVariableAssignment(var, Token::ASSIGN, Expression::kEffect);
1503
+ break;
1504
+ }
1505
+ case NAMED_PROPERTY: {
1506
+ __ push(eax); // Preserve value.
1507
+ VisitForValue(prop->obj(), kAccumulator);
1508
+ __ mov(edx, eax);
1509
+ __ pop(eax); // Restore value.
1510
+ __ mov(ecx, prop->key()->AsLiteral()->handle());
1511
+ Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize));
1512
+ __ call(ic, RelocInfo::CODE_TARGET);
1513
+ __ nop(); // Signal no inlined code.
1514
+ break;
1515
+ }
1516
+ case KEYED_PROPERTY: {
1517
+ __ push(eax); // Preserve value.
1518
+ VisitForValue(prop->obj(), kStack);
1519
+ VisitForValue(prop->key(), kAccumulator);
1520
+ __ mov(ecx, eax);
1521
+ __ pop(edx);
1522
+ __ pop(eax); // Restore value.
1523
+ Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize));
1524
+ __ call(ic, RelocInfo::CODE_TARGET);
1525
+ __ nop(); // Signal no inlined code.
1526
+ break;
1527
+ }
1528
+ }
1529
+ }
1530
+
1531
+
1532
+ void FullCodeGenerator::EmitVariableAssignment(Variable* var,
1533
+ Token::Value op,
1534
+ Expression::Context context) {
1535
+ // Left-hand sides that rewrite to explicit property accesses do not reach
1536
+ // here.
1537
+ ASSERT(var != NULL);
1538
+ ASSERT(var->is_global() || var->slot() != NULL);
1539
+
1540
+ if (var->is_global()) {
1541
+ ASSERT(!var->is_this());
1542
+ // Assignment to a global variable. Use inline caching for the
1543
+ // assignment. Right-hand-side value is passed in eax, variable name in
1544
+ // ecx, and the global object on the stack.
1545
+ __ mov(ecx, var->name());
1546
+ __ mov(edx, CodeGenerator::GlobalObject());
1547
+ Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize));
1548
+ __ call(ic, RelocInfo::CODE_TARGET);
1549
+ __ nop();
1550
+
1551
+ } else if (var->mode() != Variable::CONST || op == Token::INIT_CONST) {
1552
+ // Perform the assignment for non-const variables and for initialization
1553
+ // of const variables. Const assignments are simply skipped.
1554
+ Label done;
1555
+ Slot* slot = var->slot();
1556
+ switch (slot->type()) {
1557
+ case Slot::PARAMETER:
1558
+ case Slot::LOCAL:
1559
+ if (op == Token::INIT_CONST) {
1560
+ // Detect const reinitialization by checking for the hole value.
1561
+ __ mov(edx, Operand(ebp, SlotOffset(slot)));
1562
+ __ cmp(edx, Factory::the_hole_value());
1563
+ __ j(not_equal, &done);
1564
+ }
1565
+ // Perform the assignment.
1566
+ __ mov(Operand(ebp, SlotOffset(slot)), eax);
1567
+ break;
1568
+
1569
+ case Slot::CONTEXT: {
1570
+ MemOperand target = EmitSlotSearch(slot, ecx);
1571
+ if (op == Token::INIT_CONST) {
1572
+ // Detect const reinitialization by checking for the hole value.
1573
+ __ mov(edx, target);
1574
+ __ cmp(edx, Factory::the_hole_value());
1575
+ __ j(not_equal, &done);
1576
+ }
1577
+ // Perform the assignment and issue the write barrier.
1578
+ __ mov(target, eax);
1579
+ // The value of the assignment is in eax. RecordWrite clobbers its
1580
+ // register arguments.
1581
+ __ mov(edx, eax);
1582
+ int offset = FixedArray::kHeaderSize + slot->index() * kPointerSize;
1583
+ __ RecordWrite(ecx, offset, edx, ebx);
1584
+ break;
1585
+ }
1586
+
1587
+ case Slot::LOOKUP:
1588
+ // Call the runtime for the assignment. The runtime will ignore
1589
+ // const reinitialization.
1590
+ __ push(eax); // Value.
1591
+ __ push(esi); // Context.
1592
+ __ push(Immediate(var->name()));
1593
+ if (op == Token::INIT_CONST) {
1594
+ // The runtime will ignore const redeclaration.
1595
+ __ CallRuntime(Runtime::kInitializeConstContextSlot, 3);
1596
+ } else {
1597
+ __ CallRuntime(Runtime::kStoreContextSlot, 3);
1598
+ }
1599
+ break;
1600
+ }
1601
+ __ bind(&done);
1602
+ }
1603
+
1604
+ Apply(context, eax);
1605
+ }
1606
+
1607
+
1608
+ void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) {
1609
+ // Assignment to a property, using a named store IC.
1610
+ Property* prop = expr->target()->AsProperty();
1611
+ ASSERT(prop != NULL);
1612
+ ASSERT(prop->key()->AsLiteral() != NULL);
1613
+
1614
+ // If the assignment starts a block of assignments to the same object,
1615
+ // change to slow case to avoid the quadratic behavior of repeatedly
1616
+ // adding fast properties.
1617
+ if (expr->starts_initialization_block()) {
1618
+ __ push(result_register());
1619
+ __ push(Operand(esp, kPointerSize)); // Receiver is now under value.
1620
+ __ CallRuntime(Runtime::kToSlowProperties, 1);
1621
+ __ pop(result_register());
1622
+ }
1623
+
1624
+ // Record source code position before IC call.
1625
+ SetSourcePosition(expr->position());
1626
+ __ mov(ecx, prop->key()->AsLiteral()->handle());
1627
+ if (expr->ends_initialization_block()) {
1628
+ __ mov(edx, Operand(esp, 0));
1629
+ } else {
1630
+ __ pop(edx);
1631
+ }
1632
+ Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize));
1633
+ __ call(ic, RelocInfo::CODE_TARGET);
1634
+ __ nop();
1635
+
1636
+ // If the assignment ends an initialization block, revert to fast case.
1637
+ if (expr->ends_initialization_block()) {
1638
+ __ push(eax); // Result of assignment, saved even if not needed.
1639
+ __ push(Operand(esp, kPointerSize)); // Receiver is under value.
1640
+ __ CallRuntime(Runtime::kToFastProperties, 1);
1641
+ __ pop(eax);
1642
+ DropAndApply(1, context_, eax);
1643
+ } else {
1644
+ Apply(context_, eax);
1645
+ }
1646
+ }
1647
+
1648
+
1649
+ void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) {
1650
+ // Assignment to a property, using a keyed store IC.
1651
+
1652
+ // If the assignment starts a block of assignments to the same object,
1653
+ // change to slow case to avoid the quadratic behavior of repeatedly
1654
+ // adding fast properties.
1655
+ if (expr->starts_initialization_block()) {
1656
+ __ push(result_register());
1657
+ // Receiver is now under the key and value.
1658
+ __ push(Operand(esp, 2 * kPointerSize));
1659
+ __ CallRuntime(Runtime::kToSlowProperties, 1);
1660
+ __ pop(result_register());
1661
+ }
1662
+
1663
+ __ pop(ecx);
1664
+ if (expr->ends_initialization_block()) {
1665
+ __ mov(edx, Operand(esp, 0)); // Leave receiver on the stack for later.
1666
+ } else {
1667
+ __ pop(edx);
1668
+ }
1669
+ // Record source code position before IC call.
1670
+ SetSourcePosition(expr->position());
1671
+ Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize));
1672
+ __ call(ic, RelocInfo::CODE_TARGET);
1673
+ // This nop signals to the IC that there is no inlined code at the call
1674
+ // site for it to patch.
1675
+ __ nop();
1676
+
1677
+ // If the assignment ends an initialization block, revert to fast case.
1678
+ if (expr->ends_initialization_block()) {
1679
+ __ pop(edx);
1680
+ __ push(eax); // Result of assignment, saved even if not needed.
1681
+ __ push(edx);
1682
+ __ CallRuntime(Runtime::kToFastProperties, 1);
1683
+ __ pop(eax);
1684
+ }
1685
+
1686
+ Apply(context_, eax);
1687
+ }
1688
+
1689
+
1690
+ void FullCodeGenerator::VisitProperty(Property* expr) {
1691
+ Comment cmnt(masm_, "[ Property");
1692
+ Expression* key = expr->key();
1693
+
1694
+ if (key->IsPropertyName()) {
1695
+ VisitForValue(expr->obj(), kAccumulator);
1696
+ EmitNamedPropertyLoad(expr);
1697
+ Apply(context_, eax);
1698
+ } else {
1699
+ VisitForValue(expr->obj(), kStack);
1700
+ VisitForValue(expr->key(), kAccumulator);
1701
+ __ pop(edx);
1702
+ EmitKeyedPropertyLoad(expr);
1703
+ Apply(context_, eax);
1704
+ }
1705
+ }
1706
+
1707
+
1708
+ void FullCodeGenerator::EmitCallWithIC(Call* expr,
1709
+ Handle<Object> name,
1710
+ RelocInfo::Mode mode) {
1711
+ // Code common for calls using the IC.
1712
+ ZoneList<Expression*>* args = expr->arguments();
1713
+ int arg_count = args->length();
1714
+ for (int i = 0; i < arg_count; i++) {
1715
+ VisitForValue(args->at(i), kStack);
1716
+ }
1717
+ __ Set(ecx, Immediate(name));
1718
+ // Record source position of the IC call.
1719
+ SetSourcePosition(expr->position());
1720
+ InLoopFlag in_loop = (loop_depth() > 0) ? IN_LOOP : NOT_IN_LOOP;
1721
+ Handle<Code> ic = CodeGenerator::ComputeCallInitialize(arg_count, in_loop);
1722
+ __ call(ic, mode);
1723
+ // Restore context register.
1724
+ __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
1725
+ Apply(context_, eax);
1726
+ }
1727
+
1728
+
1729
+ void FullCodeGenerator::EmitKeyedCallWithIC(Call* expr,
1730
+ Expression* key,
1731
+ RelocInfo::Mode mode) {
1732
+ // Code common for calls using the IC.
1733
+ ZoneList<Expression*>* args = expr->arguments();
1734
+ int arg_count = args->length();
1735
+ for (int i = 0; i < arg_count; i++) {
1736
+ VisitForValue(args->at(i), kStack);
1737
+ }
1738
+ VisitForValue(key, kAccumulator);
1739
+ __ mov(ecx, eax);
1740
+ // Record source position of the IC call.
1741
+ SetSourcePosition(expr->position());
1742
+ InLoopFlag in_loop = (loop_depth() > 0) ? IN_LOOP : NOT_IN_LOOP;
1743
+ Handle<Code> ic = CodeGenerator::ComputeKeyedCallInitialize(
1744
+ arg_count, in_loop);
1745
+ __ call(ic, mode);
1746
+ // Restore context register.
1747
+ __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
1748
+ Apply(context_, eax);
1749
+ }
1750
+
1751
+
1752
+ void FullCodeGenerator::EmitCallWithStub(Call* expr) {
1753
+ // Code common for calls using the call stub.
1754
+ ZoneList<Expression*>* args = expr->arguments();
1755
+ int arg_count = args->length();
1756
+ for (int i = 0; i < arg_count; i++) {
1757
+ VisitForValue(args->at(i), kStack);
1758
+ }
1759
+ // Record source position for debugger.
1760
+ SetSourcePosition(expr->position());
1761
+ InLoopFlag in_loop = (loop_depth() > 0) ? IN_LOOP : NOT_IN_LOOP;
1762
+ CallFunctionStub stub(arg_count, in_loop, RECEIVER_MIGHT_BE_VALUE);
1763
+ __ CallStub(&stub);
1764
+ // Restore context register.
1765
+ __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
1766
+ DropAndApply(1, context_, eax);
1767
+ }
1768
+
1769
+
1770
+ void FullCodeGenerator::VisitCall(Call* expr) {
1771
+ Comment cmnt(masm_, "[ Call");
1772
+ Expression* fun = expr->expression();
1773
+ Variable* var = fun->AsVariableProxy()->AsVariable();
1774
+
1775
+ if (var != NULL && var->is_possibly_eval()) {
1776
+ // In a call to eval, we first call %ResolvePossiblyDirectEval to
1777
+ // resolve the function we need to call and the receiver of the
1778
+ // call. Then we call the resolved function using the given
1779
+ // arguments.
1780
+ VisitForValue(fun, kStack);
1781
+ __ push(Immediate(Factory::undefined_value())); // Reserved receiver slot.
1782
+
1783
+ // Push the arguments.
1784
+ ZoneList<Expression*>* args = expr->arguments();
1785
+ int arg_count = args->length();
1786
+ for (int i = 0; i < arg_count; i++) {
1787
+ VisitForValue(args->at(i), kStack);
1788
+ }
1789
+
1790
+ // Push copy of the function - found below the arguments.
1791
+ __ push(Operand(esp, (arg_count + 1) * kPointerSize));
1792
+
1793
+ // Push copy of the first argument or undefined if it doesn't exist.
1794
+ if (arg_count > 0) {
1795
+ __ push(Operand(esp, arg_count * kPointerSize));
1796
+ } else {
1797
+ __ push(Immediate(Factory::undefined_value()));
1798
+ }
1799
+
1800
+ // Push the receiver of the enclosing function and do runtime call.
1801
+ __ push(Operand(ebp, (2 + scope()->num_parameters()) * kPointerSize));
1802
+ __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 3);
1803
+
1804
+ // The runtime call returns a pair of values in eax (function) and
1805
+ // edx (receiver). Touch up the stack with the right values.
1806
+ __ mov(Operand(esp, (arg_count + 0) * kPointerSize), edx);
1807
+ __ mov(Operand(esp, (arg_count + 1) * kPointerSize), eax);
1808
+
1809
+ // Record source position for debugger.
1810
+ SetSourcePosition(expr->position());
1811
+ InLoopFlag in_loop = (loop_depth() > 0) ? IN_LOOP : NOT_IN_LOOP;
1812
+ CallFunctionStub stub(arg_count, in_loop, RECEIVER_MIGHT_BE_VALUE);
1813
+ __ CallStub(&stub);
1814
+ // Restore context register.
1815
+ __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
1816
+ DropAndApply(1, context_, eax);
1817
+ } else if (var != NULL && !var->is_this() && var->is_global()) {
1818
+ // Push global object as receiver for the call IC.
1819
+ __ push(CodeGenerator::GlobalObject());
1820
+ EmitCallWithIC(expr, var->name(), RelocInfo::CODE_TARGET_CONTEXT);
1821
+ } else if (var != NULL && var->slot() != NULL &&
1822
+ var->slot()->type() == Slot::LOOKUP) {
1823
+ // Call to a lookup slot (dynamically introduced variable). Call the
1824
+ // runtime to find the function to call (returned in eax) and the object
1825
+ // holding it (returned in edx).
1826
+ __ push(context_register());
1827
+ __ push(Immediate(var->name()));
1828
+ __ CallRuntime(Runtime::kLoadContextSlot, 2);
1829
+ __ push(eax); // Function.
1830
+ __ push(edx); // Receiver.
1831
+ EmitCallWithStub(expr);
1832
+ } else if (fun->AsProperty() != NULL) {
1833
+ // Call to an object property.
1834
+ Property* prop = fun->AsProperty();
1835
+ Literal* key = prop->key()->AsLiteral();
1836
+ if (key != NULL && key->handle()->IsSymbol()) {
1837
+ // Call to a named property, use call IC.
1838
+ VisitForValue(prop->obj(), kStack);
1839
+ EmitCallWithIC(expr, key->handle(), RelocInfo::CODE_TARGET);
1840
+ } else {
1841
+ // Call to a keyed property.
1842
+ // For a synthetic property use keyed load IC followed by function call,
1843
+ // for a regular property use keyed CallIC.
1844
+ VisitForValue(prop->obj(), kStack);
1845
+ if (prop->is_synthetic()) {
1846
+ VisitForValue(prop->key(), kAccumulator);
1847
+ // Record source code position for IC call.
1848
+ SetSourcePosition(prop->position());
1849
+ __ pop(edx); // We do not need to keep the receiver.
1850
+
1851
+ Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize));
1852
+ __ call(ic, RelocInfo::CODE_TARGET);
1853
+ // By emitting a nop we make sure that we do not have a "test eax,..."
1854
+ // instruction after the call as it is treated specially
1855
+ // by the LoadIC code.
1856
+ __ nop();
1857
+ // Push result (function).
1858
+ __ push(eax);
1859
+ // Push Global receiver.
1860
+ __ mov(ecx, CodeGenerator::GlobalObject());
1861
+ __ push(FieldOperand(ecx, GlobalObject::kGlobalReceiverOffset));
1862
+ EmitCallWithStub(expr);
1863
+ } else {
1864
+ EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET);
1865
+ }
1866
+ }
1867
+ } else {
1868
+ // Call to some other expression. If the expression is an anonymous
1869
+ // function literal not called in a loop, mark it as one that should
1870
+ // also use the full code generator.
1871
+ FunctionLiteral* lit = fun->AsFunctionLiteral();
1872
+ if (lit != NULL &&
1873
+ lit->name()->Equals(Heap::empty_string()) &&
1874
+ loop_depth() == 0) {
1875
+ lit->set_try_full_codegen(true);
1876
+ }
1877
+ VisitForValue(fun, kStack);
1878
+ // Load global receiver object.
1879
+ __ mov(ebx, CodeGenerator::GlobalObject());
1880
+ __ push(FieldOperand(ebx, GlobalObject::kGlobalReceiverOffset));
1881
+ // Emit function call.
1882
+ EmitCallWithStub(expr);
1883
+ }
1884
+ }
1885
+
1886
+
1887
+ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
1888
+ Comment cmnt(masm_, "[ CallNew");
1889
+ // According to ECMA-262, section 11.2.2, page 44, the function
1890
+ // expression in new calls must be evaluated before the
1891
+ // arguments.
1892
+ // Push function on the stack.
1893
+ VisitForValue(expr->expression(), kStack);
1894
+
1895
+ // Push global object (receiver).
1896
+ __ push(CodeGenerator::GlobalObject());
1897
+
1898
+ // Push the arguments ("left-to-right") on the stack.
1899
+ ZoneList<Expression*>* args = expr->arguments();
1900
+ int arg_count = args->length();
1901
+ for (int i = 0; i < arg_count; i++) {
1902
+ VisitForValue(args->at(i), kStack);
1903
+ }
1904
+
1905
+ // Call the construct call builtin that handles allocation and
1906
+ // constructor invocation.
1907
+ SetSourcePosition(expr->position());
1908
+
1909
+ // Load function, arg_count into edi and eax.
1910
+ __ Set(eax, Immediate(arg_count));
1911
+ // Function is in esp[arg_count + 1].
1912
+ __ mov(edi, Operand(esp, eax, times_pointer_size, kPointerSize));
1913
+
1914
+ Handle<Code> construct_builtin(Builtins::builtin(Builtins::JSConstructCall));
1915
+ __ call(construct_builtin, RelocInfo::CONSTRUCT_CALL);
1916
+
1917
+ // Replace function on TOS with result in eax, or pop it.
1918
+ DropAndApply(1, context_, eax);
1919
+ }
1920
+
1921
+
1922
+ void FullCodeGenerator::EmitIsSmi(ZoneList<Expression*>* args) {
1923
+ ASSERT(args->length() == 1);
1924
+
1925
+ VisitForValue(args->at(0), kAccumulator);
1926
+
1927
+ Label materialize_true, materialize_false;
1928
+ Label* if_true = NULL;
1929
+ Label* if_false = NULL;
1930
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
1931
+
1932
+ __ test(eax, Immediate(kSmiTagMask));
1933
+ __ j(zero, if_true);
1934
+ __ jmp(if_false);
1935
+
1936
+ Apply(context_, if_true, if_false);
1937
+ }
1938
+
1939
+
1940
+ void FullCodeGenerator::EmitIsNonNegativeSmi(ZoneList<Expression*>* args) {
1941
+ ASSERT(args->length() == 1);
1942
+
1943
+ VisitForValue(args->at(0), kAccumulator);
1944
+
1945
+ Label materialize_true, materialize_false;
1946
+ Label* if_true = NULL;
1947
+ Label* if_false = NULL;
1948
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
1949
+
1950
+ __ test(eax, Immediate(kSmiTagMask | 0x80000000));
1951
+ __ j(zero, if_true);
1952
+ __ jmp(if_false);
1953
+
1954
+ Apply(context_, if_true, if_false);
1955
+ }
1956
+
1957
+
1958
+ void FullCodeGenerator::EmitIsObject(ZoneList<Expression*>* args) {
1959
+ ASSERT(args->length() == 1);
1960
+
1961
+ VisitForValue(args->at(0), kAccumulator);
1962
+
1963
+ Label materialize_true, materialize_false;
1964
+ Label* if_true = NULL;
1965
+ Label* if_false = NULL;
1966
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
1967
+
1968
+ __ test(eax, Immediate(kSmiTagMask));
1969
+ __ j(zero, if_false);
1970
+ __ cmp(eax, Factory::null_value());
1971
+ __ j(equal, if_true);
1972
+ __ mov(ebx, FieldOperand(eax, HeapObject::kMapOffset));
1973
+ // Undetectable objects behave like undefined when tested with typeof.
1974
+ __ movzx_b(ecx, FieldOperand(ebx, Map::kBitFieldOffset));
1975
+ __ test(ecx, Immediate(1 << Map::kIsUndetectable));
1976
+ __ j(not_zero, if_false);
1977
+ __ movzx_b(ecx, FieldOperand(ebx, Map::kInstanceTypeOffset));
1978
+ __ cmp(ecx, FIRST_JS_OBJECT_TYPE);
1979
+ __ j(below, if_false);
1980
+ __ cmp(ecx, LAST_JS_OBJECT_TYPE);
1981
+ __ j(below_equal, if_true);
1982
+ __ jmp(if_false);
1983
+
1984
+ Apply(context_, if_true, if_false);
1985
+ }
1986
+
1987
+
1988
+ void FullCodeGenerator::EmitIsSpecObject(ZoneList<Expression*>* args) {
1989
+ ASSERT(args->length() == 1);
1990
+
1991
+ VisitForValue(args->at(0), kAccumulator);
1992
+
1993
+ Label materialize_true, materialize_false;
1994
+ Label* if_true = NULL;
1995
+ Label* if_false = NULL;
1996
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
1997
+
1998
+ __ test(eax, Immediate(kSmiTagMask));
1999
+ __ j(equal, if_false);
2000
+ __ CmpObjectType(eax, FIRST_JS_OBJECT_TYPE, ebx);
2001
+ __ j(above_equal, if_true);
2002
+ __ jmp(if_false);
2003
+
2004
+ Apply(context_, if_true, if_false);
2005
+ }
2006
+
2007
+
2008
+ void FullCodeGenerator::EmitIsUndetectableObject(ZoneList<Expression*>* args) {
2009
+ ASSERT(args->length() == 1);
2010
+
2011
+ VisitForValue(args->at(0), kAccumulator);
2012
+
2013
+ Label materialize_true, materialize_false;
2014
+ Label* if_true = NULL;
2015
+ Label* if_false = NULL;
2016
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
2017
+
2018
+ __ test(eax, Immediate(kSmiTagMask));
2019
+ __ j(zero, if_false);
2020
+ __ mov(ebx, FieldOperand(eax, HeapObject::kMapOffset));
2021
+ __ movzx_b(ebx, FieldOperand(ebx, Map::kBitFieldOffset));
2022
+ __ test(ebx, Immediate(1 << Map::kIsUndetectable));
2023
+ __ j(not_zero, if_true);
2024
+ __ jmp(if_false);
2025
+
2026
+ Apply(context_, if_true, if_false);
2027
+ }
2028
+
2029
+
2030
+ void FullCodeGenerator::EmitIsFunction(ZoneList<Expression*>* args) {
2031
+ ASSERT(args->length() == 1);
2032
+
2033
+ VisitForValue(args->at(0), kAccumulator);
2034
+
2035
+ Label materialize_true, materialize_false;
2036
+ Label* if_true = NULL;
2037
+ Label* if_false = NULL;
2038
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
2039
+
2040
+ __ test(eax, Immediate(kSmiTagMask));
2041
+ __ j(zero, if_false);
2042
+ __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx);
2043
+ __ j(equal, if_true);
2044
+ __ jmp(if_false);
2045
+
2046
+ Apply(context_, if_true, if_false);
2047
+ }
2048
+
2049
+
2050
+ void FullCodeGenerator::EmitIsArray(ZoneList<Expression*>* args) {
2051
+ ASSERT(args->length() == 1);
2052
+
2053
+ VisitForValue(args->at(0), kAccumulator);
2054
+
2055
+ Label materialize_true, materialize_false;
2056
+ Label* if_true = NULL;
2057
+ Label* if_false = NULL;
2058
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
2059
+
2060
+ __ test(eax, Immediate(kSmiTagMask));
2061
+ __ j(equal, if_false);
2062
+ __ CmpObjectType(eax, JS_ARRAY_TYPE, ebx);
2063
+ __ j(equal, if_true);
2064
+ __ jmp(if_false);
2065
+
2066
+ Apply(context_, if_true, if_false);
2067
+ }
2068
+
2069
+
2070
+ void FullCodeGenerator::EmitIsRegExp(ZoneList<Expression*>* args) {
2071
+ ASSERT(args->length() == 1);
2072
+
2073
+ VisitForValue(args->at(0), kAccumulator);
2074
+
2075
+ Label materialize_true, materialize_false;
2076
+ Label* if_true = NULL;
2077
+ Label* if_false = NULL;
2078
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
2079
+
2080
+ __ test(eax, Immediate(kSmiTagMask));
2081
+ __ j(equal, if_false);
2082
+ __ CmpObjectType(eax, JS_REGEXP_TYPE, ebx);
2083
+ __ j(equal, if_true);
2084
+ __ jmp(if_false);
2085
+
2086
+ Apply(context_, if_true, if_false);
2087
+ }
2088
+
2089
+
2090
+
2091
+ void FullCodeGenerator::EmitIsConstructCall(ZoneList<Expression*>* args) {
2092
+ ASSERT(args->length() == 0);
2093
+
2094
+ Label materialize_true, materialize_false;
2095
+ Label* if_true = NULL;
2096
+ Label* if_false = NULL;
2097
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
2098
+
2099
+ // Get the frame pointer for the calling frame.
2100
+ __ mov(eax, Operand(ebp, StandardFrameConstants::kCallerFPOffset));
2101
+
2102
+ // Skip the arguments adaptor frame if it exists.
2103
+ Label check_frame_marker;
2104
+ __ cmp(Operand(eax, StandardFrameConstants::kContextOffset),
2105
+ Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)));
2106
+ __ j(not_equal, &check_frame_marker);
2107
+ __ mov(eax, Operand(eax, StandardFrameConstants::kCallerFPOffset));
2108
+
2109
+ // Check the marker in the calling frame.
2110
+ __ bind(&check_frame_marker);
2111
+ __ cmp(Operand(eax, StandardFrameConstants::kMarkerOffset),
2112
+ Immediate(Smi::FromInt(StackFrame::CONSTRUCT)));
2113
+ __ j(equal, if_true);
2114
+ __ jmp(if_false);
2115
+
2116
+ Apply(context_, if_true, if_false);
2117
+ }
2118
+
2119
+
2120
+ void FullCodeGenerator::EmitObjectEquals(ZoneList<Expression*>* args) {
2121
+ ASSERT(args->length() == 2);
2122
+
2123
+ // Load the two objects into registers and perform the comparison.
2124
+ VisitForValue(args->at(0), kStack);
2125
+ VisitForValue(args->at(1), kAccumulator);
2126
+
2127
+ Label materialize_true, materialize_false;
2128
+ Label* if_true = NULL;
2129
+ Label* if_false = NULL;
2130
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
2131
+
2132
+ __ pop(ebx);
2133
+ __ cmp(eax, Operand(ebx));
2134
+ __ j(equal, if_true);
2135
+ __ jmp(if_false);
2136
+
2137
+ Apply(context_, if_true, if_false);
2138
+ }
2139
+
2140
+
2141
+ void FullCodeGenerator::EmitArguments(ZoneList<Expression*>* args) {
2142
+ ASSERT(args->length() == 1);
2143
+
2144
+ // ArgumentsAccessStub expects the key in edx and the formal
2145
+ // parameter count in eax.
2146
+ VisitForValue(args->at(0), kAccumulator);
2147
+ __ mov(edx, eax);
2148
+ __ mov(eax, Immediate(Smi::FromInt(scope()->num_parameters())));
2149
+ ArgumentsAccessStub stub(ArgumentsAccessStub::READ_ELEMENT);
2150
+ __ CallStub(&stub);
2151
+ Apply(context_, eax);
2152
+ }
2153
+
2154
+
2155
+ void FullCodeGenerator::EmitArgumentsLength(ZoneList<Expression*>* args) {
2156
+ ASSERT(args->length() == 0);
2157
+
2158
+ Label exit;
2159
+ // Get the number of formal parameters.
2160
+ __ Set(eax, Immediate(Smi::FromInt(scope()->num_parameters())));
2161
+
2162
+ // Check if the calling frame is an arguments adaptor frame.
2163
+ __ mov(ebx, Operand(ebp, StandardFrameConstants::kCallerFPOffset));
2164
+ __ cmp(Operand(ebx, StandardFrameConstants::kContextOffset),
2165
+ Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)));
2166
+ __ j(not_equal, &exit);
2167
+
2168
+ // Arguments adaptor case: Read the arguments length from the
2169
+ // adaptor frame.
2170
+ __ mov(eax, Operand(ebx, ArgumentsAdaptorFrameConstants::kLengthOffset));
2171
+
2172
+ __ bind(&exit);
2173
+ if (FLAG_debug_code) __ AbortIfNotSmi(eax);
2174
+ Apply(context_, eax);
2175
+ }
2176
+
2177
+
2178
+ void FullCodeGenerator::EmitClassOf(ZoneList<Expression*>* args) {
2179
+ ASSERT(args->length() == 1);
2180
+ Label done, null, function, non_function_constructor;
2181
+
2182
+ VisitForValue(args->at(0), kAccumulator);
2183
+
2184
+ // If the object is a smi, we return null.
2185
+ __ test(eax, Immediate(kSmiTagMask));
2186
+ __ j(zero, &null);
2187
+
2188
+ // Check that the object is a JS object but take special care of JS
2189
+ // functions to make sure they have 'Function' as their class.
2190
+ __ CmpObjectType(eax, FIRST_JS_OBJECT_TYPE, eax); // Map is now in eax.
2191
+ __ j(below, &null);
2192
+
2193
+ // As long as JS_FUNCTION_TYPE is the last instance type and it is
2194
+ // right after LAST_JS_OBJECT_TYPE, we can avoid checking for
2195
+ // LAST_JS_OBJECT_TYPE.
2196
+ ASSERT(LAST_TYPE == JS_FUNCTION_TYPE);
2197
+ ASSERT(JS_FUNCTION_TYPE == LAST_JS_OBJECT_TYPE + 1);
2198
+ __ CmpInstanceType(eax, JS_FUNCTION_TYPE);
2199
+ __ j(equal, &function);
2200
+
2201
+ // Check if the constructor in the map is a function.
2202
+ __ mov(eax, FieldOperand(eax, Map::kConstructorOffset));
2203
+ __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx);
2204
+ __ j(not_equal, &non_function_constructor);
2205
+
2206
+ // eax now contains the constructor function. Grab the
2207
+ // instance class name from there.
2208
+ __ mov(eax, FieldOperand(eax, JSFunction::kSharedFunctionInfoOffset));
2209
+ __ mov(eax, FieldOperand(eax, SharedFunctionInfo::kInstanceClassNameOffset));
2210
+ __ jmp(&done);
2211
+
2212
+ // Functions have class 'Function'.
2213
+ __ bind(&function);
2214
+ __ mov(eax, Factory::function_class_symbol());
2215
+ __ jmp(&done);
2216
+
2217
+ // Objects with a non-function constructor have class 'Object'.
2218
+ __ bind(&non_function_constructor);
2219
+ __ mov(eax, Factory::Object_symbol());
2220
+ __ jmp(&done);
2221
+
2222
+ // Non-JS objects have class null.
2223
+ __ bind(&null);
2224
+ __ mov(eax, Factory::null_value());
2225
+
2226
+ // All done.
2227
+ __ bind(&done);
2228
+
2229
+ Apply(context_, eax);
2230
+ }
2231
+
2232
+
2233
+ void FullCodeGenerator::EmitLog(ZoneList<Expression*>* args) {
2234
+ // Conditionally generate a log call.
2235
+ // Args:
2236
+ // 0 (literal string): The type of logging (corresponds to the flags).
2237
+ // This is used to determine whether or not to generate the log call.
2238
+ // 1 (string): Format string. Access the string at argument index 2
2239
+ // with '%2s' (see Logger::LogRuntime for all the formats).
2240
+ // 2 (array): Arguments to the format string.
2241
+ ASSERT_EQ(args->length(), 3);
2242
+ #ifdef ENABLE_LOGGING_AND_PROFILING
2243
+ if (CodeGenerator::ShouldGenerateLog(args->at(0))) {
2244
+ VisitForValue(args->at(1), kStack);
2245
+ VisitForValue(args->at(2), kStack);
2246
+ __ CallRuntime(Runtime::kLog, 2);
2247
+ }
2248
+ #endif
2249
+ // Finally, we're expected to leave a value on the top of the stack.
2250
+ __ mov(eax, Factory::undefined_value());
2251
+ Apply(context_, eax);
2252
+ }
2253
+
2254
+
2255
+ void FullCodeGenerator::EmitRandomHeapNumber(ZoneList<Expression*>* args) {
2256
+ ASSERT(args->length() == 0);
2257
+
2258
+ Label slow_allocate_heapnumber;
2259
+ Label heapnumber_allocated;
2260
+
2261
+ __ AllocateHeapNumber(edi, ebx, ecx, &slow_allocate_heapnumber);
2262
+ __ jmp(&heapnumber_allocated);
2263
+
2264
+ __ bind(&slow_allocate_heapnumber);
2265
+ // Allocate a heap number.
2266
+ __ CallRuntime(Runtime::kNumberAlloc, 0);
2267
+ __ mov(edi, eax);
2268
+
2269
+ __ bind(&heapnumber_allocated);
2270
+
2271
+ __ PrepareCallCFunction(0, ebx);
2272
+ __ CallCFunction(ExternalReference::random_uint32_function(), 0);
2273
+
2274
+ // Convert 32 random bits in eax to 0.(32 random bits) in a double
2275
+ // by computing:
2276
+ // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
2277
+ // This is implemented on both SSE2 and FPU.
2278
+ if (CpuFeatures::IsSupported(SSE2)) {
2279
+ CpuFeatures::Scope fscope(SSE2);
2280
+ __ mov(ebx, Immediate(0x49800000)); // 1.0 x 2^20 as single.
2281
+ __ movd(xmm1, Operand(ebx));
2282
+ __ movd(xmm0, Operand(eax));
2283
+ __ cvtss2sd(xmm1, xmm1);
2284
+ __ pxor(xmm0, xmm1);
2285
+ __ subsd(xmm0, xmm1);
2286
+ __ movdbl(FieldOperand(edi, HeapNumber::kValueOffset), xmm0);
2287
+ } else {
2288
+ // 0x4130000000000000 is 1.0 x 2^20 as a double.
2289
+ __ mov(FieldOperand(edi, HeapNumber::kExponentOffset),
2290
+ Immediate(0x41300000));
2291
+ __ mov(FieldOperand(edi, HeapNumber::kMantissaOffset), eax);
2292
+ __ fld_d(FieldOperand(edi, HeapNumber::kValueOffset));
2293
+ __ mov(FieldOperand(edi, HeapNumber::kMantissaOffset), Immediate(0));
2294
+ __ fld_d(FieldOperand(edi, HeapNumber::kValueOffset));
2295
+ __ fsubp(1);
2296
+ __ fstp_d(FieldOperand(edi, HeapNumber::kValueOffset));
2297
+ }
2298
+ __ mov(eax, edi);
2299
+ Apply(context_, eax);
2300
+ }
2301
+
2302
+
2303
+ void FullCodeGenerator::EmitSubString(ZoneList<Expression*>* args) {
2304
+ // Load the arguments on the stack and call the stub.
2305
+ SubStringStub stub;
2306
+ ASSERT(args->length() == 3);
2307
+ VisitForValue(args->at(0), kStack);
2308
+ VisitForValue(args->at(1), kStack);
2309
+ VisitForValue(args->at(2), kStack);
2310
+ __ CallStub(&stub);
2311
+ Apply(context_, eax);
2312
+ }
2313
+
2314
+
2315
+ void FullCodeGenerator::EmitRegExpExec(ZoneList<Expression*>* args) {
2316
+ // Load the arguments on the stack and call the stub.
2317
+ RegExpExecStub stub;
2318
+ ASSERT(args->length() == 4);
2319
+ VisitForValue(args->at(0), kStack);
2320
+ VisitForValue(args->at(1), kStack);
2321
+ VisitForValue(args->at(2), kStack);
2322
+ VisitForValue(args->at(3), kStack);
2323
+ __ CallStub(&stub);
2324
+ Apply(context_, eax);
2325
+ }
2326
+
2327
+
2328
+ void FullCodeGenerator::EmitValueOf(ZoneList<Expression*>* args) {
2329
+ ASSERT(args->length() == 1);
2330
+
2331
+ VisitForValue(args->at(0), kAccumulator); // Load the object.
2332
+
2333
+ Label done;
2334
+ // If the object is a smi return the object.
2335
+ __ test(eax, Immediate(kSmiTagMask));
2336
+ __ j(zero, &done);
2337
+ // If the object is not a value type, return the object.
2338
+ __ CmpObjectType(eax, JS_VALUE_TYPE, ebx);
2339
+ __ j(not_equal, &done);
2340
+ __ mov(eax, FieldOperand(eax, JSValue::kValueOffset));
2341
+
2342
+ __ bind(&done);
2343
+ Apply(context_, eax);
2344
+ }
2345
+
2346
+
2347
+ void FullCodeGenerator::EmitMathPow(ZoneList<Expression*>* args) {
2348
+ // Load the arguments on the stack and call the runtime function.
2349
+ ASSERT(args->length() == 2);
2350
+ VisitForValue(args->at(0), kStack);
2351
+ VisitForValue(args->at(1), kStack);
2352
+ __ CallRuntime(Runtime::kMath_pow, 2);
2353
+ Apply(context_, eax);
2354
+ }
2355
+
2356
+
2357
+ void FullCodeGenerator::EmitSetValueOf(ZoneList<Expression*>* args) {
2358
+ ASSERT(args->length() == 2);
2359
+
2360
+ VisitForValue(args->at(0), kStack); // Load the object.
2361
+ VisitForValue(args->at(1), kAccumulator); // Load the value.
2362
+ __ pop(ebx); // eax = value. ebx = object.
2363
+
2364
+ Label done;
2365
+ // If the object is a smi, return the value.
2366
+ __ test(ebx, Immediate(kSmiTagMask));
2367
+ __ j(zero, &done);
2368
+
2369
+ // If the object is not a value type, return the value.
2370
+ __ CmpObjectType(ebx, JS_VALUE_TYPE, ecx);
2371
+ __ j(not_equal, &done);
2372
+
2373
+ // Store the value.
2374
+ __ mov(FieldOperand(ebx, JSValue::kValueOffset), eax);
2375
+ // Update the write barrier. Save the value as it will be
2376
+ // overwritten by the write barrier code and is needed afterward.
2377
+ __ mov(edx, eax);
2378
+ __ RecordWrite(ebx, JSValue::kValueOffset, edx, ecx);
2379
+
2380
+ __ bind(&done);
2381
+ Apply(context_, eax);
2382
+ }
2383
+
2384
+
2385
+ void FullCodeGenerator::EmitNumberToString(ZoneList<Expression*>* args) {
2386
+ ASSERT_EQ(args->length(), 1);
2387
+
2388
+ // Load the argument on the stack and call the stub.
2389
+ VisitForValue(args->at(0), kStack);
2390
+
2391
+ NumberToStringStub stub;
2392
+ __ CallStub(&stub);
2393
+ Apply(context_, eax);
2394
+ }
2395
+
2396
+
2397
+ void FullCodeGenerator::EmitStringCharFromCode(ZoneList<Expression*>* args) {
2398
+ ASSERT(args->length() == 1);
2399
+
2400
+ VisitForValue(args->at(0), kAccumulator);
2401
+
2402
+ Label done;
2403
+ StringCharFromCodeGenerator generator(eax, ebx);
2404
+ generator.GenerateFast(masm_);
2405
+ __ jmp(&done);
2406
+
2407
+ NopRuntimeCallHelper call_helper;
2408
+ generator.GenerateSlow(masm_, call_helper);
2409
+
2410
+ __ bind(&done);
2411
+ Apply(context_, ebx);
2412
+ }
2413
+
2414
+
2415
+ void FullCodeGenerator::EmitStringCharCodeAt(ZoneList<Expression*>* args) {
2416
+ ASSERT(args->length() == 2);
2417
+
2418
+ VisitForValue(args->at(0), kStack);
2419
+ VisitForValue(args->at(1), kAccumulator);
2420
+
2421
+ Register object = ebx;
2422
+ Register index = eax;
2423
+ Register scratch = ecx;
2424
+ Register result = edx;
2425
+
2426
+ __ pop(object);
2427
+
2428
+ Label need_conversion;
2429
+ Label index_out_of_range;
2430
+ Label done;
2431
+ StringCharCodeAtGenerator generator(object,
2432
+ index,
2433
+ scratch,
2434
+ result,
2435
+ &need_conversion,
2436
+ &need_conversion,
2437
+ &index_out_of_range,
2438
+ STRING_INDEX_IS_NUMBER);
2439
+ generator.GenerateFast(masm_);
2440
+ __ jmp(&done);
2441
+
2442
+ __ bind(&index_out_of_range);
2443
+ // When the index is out of range, the spec requires us to return
2444
+ // NaN.
2445
+ __ Set(result, Immediate(Factory::nan_value()));
2446
+ __ jmp(&done);
2447
+
2448
+ __ bind(&need_conversion);
2449
+ // Move the undefined value into the result register, which will
2450
+ // trigger conversion.
2451
+ __ Set(result, Immediate(Factory::undefined_value()));
2452
+ __ jmp(&done);
2453
+
2454
+ NopRuntimeCallHelper call_helper;
2455
+ generator.GenerateSlow(masm_, call_helper);
2456
+
2457
+ __ bind(&done);
2458
+ Apply(context_, result);
2459
+ }
2460
+
2461
+
2462
+ void FullCodeGenerator::EmitStringCharAt(ZoneList<Expression*>* args) {
2463
+ ASSERT(args->length() == 2);
2464
+
2465
+ VisitForValue(args->at(0), kStack);
2466
+ VisitForValue(args->at(1), kAccumulator);
2467
+
2468
+ Register object = ebx;
2469
+ Register index = eax;
2470
+ Register scratch1 = ecx;
2471
+ Register scratch2 = edx;
2472
+ Register result = eax;
2473
+
2474
+ __ pop(object);
2475
+
2476
+ Label need_conversion;
2477
+ Label index_out_of_range;
2478
+ Label done;
2479
+ StringCharAtGenerator generator(object,
2480
+ index,
2481
+ scratch1,
2482
+ scratch2,
2483
+ result,
2484
+ &need_conversion,
2485
+ &need_conversion,
2486
+ &index_out_of_range,
2487
+ STRING_INDEX_IS_NUMBER);
2488
+ generator.GenerateFast(masm_);
2489
+ __ jmp(&done);
2490
+
2491
+ __ bind(&index_out_of_range);
2492
+ // When the index is out of range, the spec requires us to return
2493
+ // the empty string.
2494
+ __ Set(result, Immediate(Factory::empty_string()));
2495
+ __ jmp(&done);
2496
+
2497
+ __ bind(&need_conversion);
2498
+ // Move smi zero into the result register, which will trigger
2499
+ // conversion.
2500
+ __ Set(result, Immediate(Smi::FromInt(0)));
2501
+ __ jmp(&done);
2502
+
2503
+ NopRuntimeCallHelper call_helper;
2504
+ generator.GenerateSlow(masm_, call_helper);
2505
+
2506
+ __ bind(&done);
2507
+ Apply(context_, result);
2508
+ }
2509
+
2510
+
2511
+ void FullCodeGenerator::EmitStringAdd(ZoneList<Expression*>* args) {
2512
+ ASSERT_EQ(2, args->length());
2513
+
2514
+ VisitForValue(args->at(0), kStack);
2515
+ VisitForValue(args->at(1), kStack);
2516
+
2517
+ StringAddStub stub(NO_STRING_ADD_FLAGS);
2518
+ __ CallStub(&stub);
2519
+ Apply(context_, eax);
2520
+ }
2521
+
2522
+
2523
+ void FullCodeGenerator::EmitStringCompare(ZoneList<Expression*>* args) {
2524
+ ASSERT_EQ(2, args->length());
2525
+
2526
+ VisitForValue(args->at(0), kStack);
2527
+ VisitForValue(args->at(1), kStack);
2528
+
2529
+ StringCompareStub stub;
2530
+ __ CallStub(&stub);
2531
+ Apply(context_, eax);
2532
+ }
2533
+
2534
+
2535
+ void FullCodeGenerator::EmitMathSin(ZoneList<Expression*>* args) {
2536
+ // Load the argument on the stack and call the stub.
2537
+ TranscendentalCacheStub stub(TranscendentalCache::SIN);
2538
+ ASSERT(args->length() == 1);
2539
+ VisitForValue(args->at(0), kStack);
2540
+ __ CallStub(&stub);
2541
+ Apply(context_, eax);
2542
+ }
2543
+
2544
+
2545
+ void FullCodeGenerator::EmitMathCos(ZoneList<Expression*>* args) {
2546
+ // Load the argument on the stack and call the stub.
2547
+ TranscendentalCacheStub stub(TranscendentalCache::COS);
2548
+ ASSERT(args->length() == 1);
2549
+ VisitForValue(args->at(0), kStack);
2550
+ __ CallStub(&stub);
2551
+ Apply(context_, eax);
2552
+ }
2553
+
2554
+
2555
+ void FullCodeGenerator::EmitMathSqrt(ZoneList<Expression*>* args) {
2556
+ // Load the argument on the stack and call the runtime function.
2557
+ ASSERT(args->length() == 1);
2558
+ VisitForValue(args->at(0), kStack);
2559
+ __ CallRuntime(Runtime::kMath_sqrt, 1);
2560
+ Apply(context_, eax);
2561
+ }
2562
+
2563
+
2564
+ void FullCodeGenerator::EmitCallFunction(ZoneList<Expression*>* args) {
2565
+ ASSERT(args->length() >= 2);
2566
+
2567
+ int arg_count = args->length() - 2; // For receiver and function.
2568
+ VisitForValue(args->at(0), kStack); // Receiver.
2569
+ for (int i = 0; i < arg_count; i++) {
2570
+ VisitForValue(args->at(i + 1), kStack);
2571
+ }
2572
+ VisitForValue(args->at(arg_count + 1), kAccumulator); // Function.
2573
+
2574
+ // InvokeFunction requires function in edi. Move it in there.
2575
+ if (!result_register().is(edi)) __ mov(edi, result_register());
2576
+ ParameterCount count(arg_count);
2577
+ __ InvokeFunction(edi, count, CALL_FUNCTION);
2578
+ __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
2579
+ Apply(context_, eax);
2580
+ }
2581
+
2582
+
2583
+ void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) {
2584
+ ASSERT(args->length() == 3);
2585
+ VisitForValue(args->at(0), kStack);
2586
+ VisitForValue(args->at(1), kStack);
2587
+ VisitForValue(args->at(2), kStack);
2588
+ __ CallRuntime(Runtime::kRegExpConstructResult, 3);
2589
+ Apply(context_, eax);
2590
+ }
2591
+
2592
+
2593
+ void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) {
2594
+ ASSERT(args->length() == 3);
2595
+ VisitForValue(args->at(0), kStack);
2596
+ VisitForValue(args->at(1), kStack);
2597
+ VisitForValue(args->at(2), kStack);
2598
+ __ CallRuntime(Runtime::kSwapElements, 3);
2599
+ Apply(context_, eax);
2600
+ }
2601
+
2602
+
2603
+ void FullCodeGenerator::EmitGetFromCache(ZoneList<Expression*>* args) {
2604
+ ASSERT_EQ(2, args->length());
2605
+
2606
+ ASSERT_NE(NULL, args->at(0)->AsLiteral());
2607
+ int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->handle()))->value();
2608
+
2609
+ Handle<FixedArray> jsfunction_result_caches(
2610
+ Top::global_context()->jsfunction_result_caches());
2611
+ if (jsfunction_result_caches->length() <= cache_id) {
2612
+ __ Abort("Attempt to use undefined cache.");
2613
+ __ mov(eax, Factory::undefined_value());
2614
+ Apply(context_, eax);
2615
+ return;
2616
+ }
2617
+
2618
+ VisitForValue(args->at(1), kAccumulator);
2619
+
2620
+ Register key = eax;
2621
+ Register cache = ebx;
2622
+ Register tmp = ecx;
2623
+ __ mov(cache, CodeGenerator::ContextOperand(esi, Context::GLOBAL_INDEX));
2624
+ __ mov(cache,
2625
+ FieldOperand(cache, GlobalObject::kGlobalContextOffset));
2626
+ __ mov(cache,
2627
+ CodeGenerator::ContextOperand(
2628
+ cache, Context::JSFUNCTION_RESULT_CACHES_INDEX));
2629
+ __ mov(cache,
2630
+ FieldOperand(cache, FixedArray::OffsetOfElementAt(cache_id)));
2631
+
2632
+ Label done, not_found;
2633
+ // tmp now holds finger offset as a smi.
2634
+ ASSERT(kSmiTag == 0 && kSmiTagSize == 1);
2635
+ __ mov(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset));
2636
+ __ cmp(key, CodeGenerator::FixedArrayElementOperand(cache, tmp));
2637
+ __ j(not_equal, &not_found);
2638
+
2639
+ __ mov(eax, CodeGenerator::FixedArrayElementOperand(cache, tmp, 1));
2640
+ __ jmp(&done);
2641
+
2642
+ __ bind(&not_found);
2643
+ // Call runtime to perform the lookup.
2644
+ __ push(cache);
2645
+ __ push(key);
2646
+ __ CallRuntime(Runtime::kGetFromCache, 2);
2647
+
2648
+ __ bind(&done);
2649
+ Apply(context_, eax);
2650
+ }
2651
+
2652
+
2653
+ void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
2654
+ Handle<String> name = expr->name();
2655
+ if (name->length() > 0 && name->Get(0) == '_') {
2656
+ Comment cmnt(masm_, "[ InlineRuntimeCall");
2657
+ EmitInlineRuntimeCall(expr);
2658
+ return;
2659
+ }
2660
+
2661
+ Comment cmnt(masm_, "[ CallRuntime");
2662
+ ZoneList<Expression*>* args = expr->arguments();
2663
+
2664
+ if (expr->is_jsruntime()) {
2665
+ // Prepare for calling JS runtime function.
2666
+ __ mov(eax, CodeGenerator::GlobalObject());
2667
+ __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset));
2668
+ }
2669
+
2670
+ // Push the arguments ("left-to-right").
2671
+ int arg_count = args->length();
2672
+ for (int i = 0; i < arg_count; i++) {
2673
+ VisitForValue(args->at(i), kStack);
2674
+ }
2675
+
2676
+ if (expr->is_jsruntime()) {
2677
+ // Call the JS runtime function via a call IC.
2678
+ __ Set(ecx, Immediate(expr->name()));
2679
+ InLoopFlag in_loop = (loop_depth() > 0) ? IN_LOOP : NOT_IN_LOOP;
2680
+ Handle<Code> ic = CodeGenerator::ComputeCallInitialize(arg_count, in_loop);
2681
+ __ call(ic, RelocInfo::CODE_TARGET);
2682
+ // Restore context register.
2683
+ __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
2684
+ } else {
2685
+ // Call the C runtime function.
2686
+ __ CallRuntime(expr->function(), arg_count);
2687
+ }
2688
+ Apply(context_, eax);
2689
+ }
2690
+
2691
+
2692
+ void FullCodeGenerator::VisitUnaryOperation(UnaryOperation* expr) {
2693
+ switch (expr->op()) {
2694
+ case Token::DELETE: {
2695
+ Comment cmnt(masm_, "[ UnaryOperation (DELETE)");
2696
+ Property* prop = expr->expression()->AsProperty();
2697
+ Variable* var = expr->expression()->AsVariableProxy()->AsVariable();
2698
+ if (prop == NULL && var == NULL) {
2699
+ // Result of deleting non-property, non-variable reference is true.
2700
+ // The subexpression may have side effects.
2701
+ VisitForEffect(expr->expression());
2702
+ Apply(context_, true);
2703
+ } else if (var != NULL &&
2704
+ !var->is_global() &&
2705
+ var->slot() != NULL &&
2706
+ var->slot()->type() != Slot::LOOKUP) {
2707
+ // Result of deleting non-global, non-dynamic variables is false.
2708
+ // The subexpression does not have side effects.
2709
+ Apply(context_, false);
2710
+ } else {
2711
+ // Property or variable reference. Call the delete builtin with
2712
+ // object and property name as arguments.
2713
+ if (prop != NULL) {
2714
+ VisitForValue(prop->obj(), kStack);
2715
+ VisitForValue(prop->key(), kStack);
2716
+ } else if (var->is_global()) {
2717
+ __ push(CodeGenerator::GlobalObject());
2718
+ __ push(Immediate(var->name()));
2719
+ } else {
2720
+ // Non-global variable. Call the runtime to look up the context
2721
+ // where the variable was introduced.
2722
+ __ push(context_register());
2723
+ __ push(Immediate(var->name()));
2724
+ __ CallRuntime(Runtime::kLookupContext, 2);
2725
+ __ push(eax);
2726
+ __ push(Immediate(var->name()));
2727
+ }
2728
+ __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION);
2729
+ Apply(context_, eax);
2730
+ }
2731
+ break;
2732
+ }
2733
+
2734
+ case Token::VOID: {
2735
+ Comment cmnt(masm_, "[ UnaryOperation (VOID)");
2736
+ VisitForEffect(expr->expression());
2737
+ switch (context_) {
2738
+ case Expression::kUninitialized:
2739
+ UNREACHABLE();
2740
+ break;
2741
+ case Expression::kEffect:
2742
+ break;
2743
+ case Expression::kValue:
2744
+ switch (location_) {
2745
+ case kAccumulator:
2746
+ __ mov(result_register(), Factory::undefined_value());
2747
+ break;
2748
+ case kStack:
2749
+ __ push(Immediate(Factory::undefined_value()));
2750
+ break;
2751
+ }
2752
+ break;
2753
+ case Expression::kTestValue:
2754
+ // Value is false so it's needed.
2755
+ switch (location_) {
2756
+ case kAccumulator:
2757
+ __ mov(result_register(), Factory::undefined_value());
2758
+ break;
2759
+ case kStack:
2760
+ __ push(Immediate(Factory::undefined_value()));
2761
+ break;
2762
+ }
2763
+ // Fall through.
2764
+ case Expression::kTest:
2765
+ case Expression::kValueTest:
2766
+ __ jmp(false_label_);
2767
+ break;
2768
+ }
2769
+ break;
2770
+ }
2771
+
2772
+ case Token::NOT: {
2773
+ Comment cmnt(masm_, "[ UnaryOperation (NOT)");
2774
+ Label materialize_true, materialize_false;
2775
+ Label* if_true = NULL;
2776
+ Label* if_false = NULL;
2777
+
2778
+ // Notice that the labels are swapped.
2779
+ PrepareTest(&materialize_true, &materialize_false, &if_false, &if_true);
2780
+
2781
+ VisitForControl(expr->expression(), if_true, if_false);
2782
+
2783
+ Apply(context_, if_false, if_true); // Labels swapped.
2784
+ break;
2785
+ }
2786
+
2787
+ case Token::TYPEOF: {
2788
+ Comment cmnt(masm_, "[ UnaryOperation (TYPEOF)");
2789
+ VariableProxy* proxy = expr->expression()->AsVariableProxy();
2790
+ if (proxy != NULL &&
2791
+ !proxy->var()->is_this() &&
2792
+ proxy->var()->is_global()) {
2793
+ Comment cmnt(masm_, "Global variable");
2794
+ __ mov(eax, CodeGenerator::GlobalObject());
2795
+ __ mov(ecx, Immediate(proxy->name()));
2796
+ Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize));
2797
+ // Use a regular load, not a contextual load, to avoid a reference
2798
+ // error.
2799
+ __ call(ic, RelocInfo::CODE_TARGET);
2800
+ __ push(eax);
2801
+ } else if (proxy != NULL &&
2802
+ proxy->var()->slot() != NULL &&
2803
+ proxy->var()->slot()->type() == Slot::LOOKUP) {
2804
+ __ push(esi);
2805
+ __ push(Immediate(proxy->name()));
2806
+ __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2);
2807
+ __ push(eax);
2808
+ } else {
2809
+ // This expression cannot throw a reference error at the top level.
2810
+ VisitForValue(expr->expression(), kStack);
2811
+ }
2812
+
2813
+ __ CallRuntime(Runtime::kTypeof, 1);
2814
+ Apply(context_, eax);
2815
+ break;
2816
+ }
2817
+
2818
+ case Token::ADD: {
2819
+ Comment cmt(masm_, "[ UnaryOperation (ADD)");
2820
+ VisitForValue(expr->expression(), kAccumulator);
2821
+ Label no_conversion;
2822
+ __ test(result_register(), Immediate(kSmiTagMask));
2823
+ __ j(zero, &no_conversion);
2824
+ __ push(result_register());
2825
+ __ InvokeBuiltin(Builtins::TO_NUMBER, CALL_FUNCTION);
2826
+ __ bind(&no_conversion);
2827
+ Apply(context_, result_register());
2828
+ break;
2829
+ }
2830
+
2831
+ case Token::SUB: {
2832
+ Comment cmt(masm_, "[ UnaryOperation (SUB)");
2833
+ bool can_overwrite =
2834
+ (expr->expression()->AsBinaryOperation() != NULL &&
2835
+ expr->expression()->AsBinaryOperation()->ResultOverwriteAllowed());
2836
+ UnaryOverwriteMode overwrite =
2837
+ can_overwrite ? UNARY_OVERWRITE : UNARY_NO_OVERWRITE;
2838
+ GenericUnaryOpStub stub(Token::SUB, overwrite);
2839
+ // GenericUnaryOpStub expects the argument to be in the
2840
+ // accumulator register eax.
2841
+ VisitForValue(expr->expression(), kAccumulator);
2842
+ __ CallStub(&stub);
2843
+ Apply(context_, eax);
2844
+ break;
2845
+ }
2846
+
2847
+ case Token::BIT_NOT: {
2848
+ Comment cmt(masm_, "[ UnaryOperation (BIT_NOT)");
2849
+ bool can_overwrite =
2850
+ (expr->expression()->AsBinaryOperation() != NULL &&
2851
+ expr->expression()->AsBinaryOperation()->ResultOverwriteAllowed());
2852
+ UnaryOverwriteMode overwrite =
2853
+ can_overwrite ? UNARY_OVERWRITE : UNARY_NO_OVERWRITE;
2854
+ GenericUnaryOpStub stub(Token::BIT_NOT, overwrite);
2855
+ // GenericUnaryOpStub expects the argument to be in the
2856
+ // accumulator register eax.
2857
+ VisitForValue(expr->expression(), kAccumulator);
2858
+ // Avoid calling the stub for Smis.
2859
+ Label smi, done;
2860
+ __ test(result_register(), Immediate(kSmiTagMask));
2861
+ __ j(zero, &smi);
2862
+ // Non-smi: call stub leaving result in accumulator register.
2863
+ __ CallStub(&stub);
2864
+ __ jmp(&done);
2865
+ // Perform operation directly on Smis.
2866
+ __ bind(&smi);
2867
+ __ not_(result_register());
2868
+ __ and_(result_register(), ~kSmiTagMask); // Remove inverted smi-tag.
2869
+ __ bind(&done);
2870
+ Apply(context_, result_register());
2871
+ break;
2872
+ }
2873
+
2874
+ default:
2875
+ UNREACHABLE();
2876
+ }
2877
+ }
2878
+
2879
+
2880
+ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
2881
+ Comment cmnt(masm_, "[ CountOperation");
2882
+ // Invalid left-hand sides are rewritten to have a 'throw ReferenceError'
2883
+ // as the left-hand side.
2884
+ if (!expr->expression()->IsValidLeftHandSide()) {
2885
+ VisitForEffect(expr->expression());
2886
+ return;
2887
+ }
2888
+
2889
+ // Expression can only be a property, a global or a (parameter or local)
2890
+ // slot. Variables with rewrite to .arguments are treated as KEYED_PROPERTY.
2891
+ enum LhsKind { VARIABLE, NAMED_PROPERTY, KEYED_PROPERTY };
2892
+ LhsKind assign_type = VARIABLE;
2893
+ Property* prop = expr->expression()->AsProperty();
2894
+ // In case of a property we use the uninitialized expression context
2895
+ // of the key to detect a named property.
2896
+ if (prop != NULL) {
2897
+ assign_type =
2898
+ (prop->key()->IsPropertyName()) ? NAMED_PROPERTY : KEYED_PROPERTY;
2899
+ }
2900
+
2901
+ // Evaluate expression and get value.
2902
+ if (assign_type == VARIABLE) {
2903
+ ASSERT(expr->expression()->AsVariableProxy()->var() != NULL);
2904
+ Location saved_location = location_;
2905
+ location_ = kAccumulator;
2906
+ EmitVariableLoad(expr->expression()->AsVariableProxy()->var(),
2907
+ Expression::kValue);
2908
+ location_ = saved_location;
2909
+ } else {
2910
+ // Reserve space for result of postfix operation.
2911
+ if (expr->is_postfix() && context_ != Expression::kEffect) {
2912
+ __ push(Immediate(Smi::FromInt(0)));
2913
+ }
2914
+ if (assign_type == NAMED_PROPERTY) {
2915
+ // Put the object both on the stack and in the accumulator.
2916
+ VisitForValue(prop->obj(), kAccumulator);
2917
+ __ push(eax);
2918
+ EmitNamedPropertyLoad(prop);
2919
+ } else {
2920
+ VisitForValue(prop->obj(), kStack);
2921
+ VisitForValue(prop->key(), kAccumulator);
2922
+ __ mov(edx, Operand(esp, 0));
2923
+ __ push(eax);
2924
+ EmitKeyedPropertyLoad(prop);
2925
+ }
2926
+ }
2927
+
2928
+ // Call ToNumber only if operand is not a smi.
2929
+ Label no_conversion;
2930
+ __ test(eax, Immediate(kSmiTagMask));
2931
+ __ j(zero, &no_conversion);
2932
+ __ push(eax);
2933
+ __ InvokeBuiltin(Builtins::TO_NUMBER, CALL_FUNCTION);
2934
+ __ bind(&no_conversion);
2935
+
2936
+ // Save result for postfix expressions.
2937
+ if (expr->is_postfix()) {
2938
+ switch (context_) {
2939
+ case Expression::kUninitialized:
2940
+ UNREACHABLE();
2941
+ case Expression::kEffect:
2942
+ // Do not save result.
2943
+ break;
2944
+ case Expression::kValue:
2945
+ case Expression::kTest:
2946
+ case Expression::kValueTest:
2947
+ case Expression::kTestValue:
2948
+ // Save the result on the stack. If we have a named or keyed property
2949
+ // we store the result under the receiver that is currently on top
2950
+ // of the stack.
2951
+ switch (assign_type) {
2952
+ case VARIABLE:
2953
+ __ push(eax);
2954
+ break;
2955
+ case NAMED_PROPERTY:
2956
+ __ mov(Operand(esp, kPointerSize), eax);
2957
+ break;
2958
+ case KEYED_PROPERTY:
2959
+ __ mov(Operand(esp, 2 * kPointerSize), eax);
2960
+ break;
2961
+ }
2962
+ break;
2963
+ }
2964
+ }
2965
+
2966
+ // Inline smi case if we are in a loop.
2967
+ Label stub_call, done;
2968
+ if (loop_depth() > 0) {
2969
+ if (expr->op() == Token::INC) {
2970
+ __ add(Operand(eax), Immediate(Smi::FromInt(1)));
2971
+ } else {
2972
+ __ sub(Operand(eax), Immediate(Smi::FromInt(1)));
2973
+ }
2974
+ __ j(overflow, &stub_call);
2975
+ // We could eliminate this smi check if we split the code at
2976
+ // the first smi check before calling ToNumber.
2977
+ __ test(eax, Immediate(kSmiTagMask));
2978
+ __ j(zero, &done);
2979
+ __ bind(&stub_call);
2980
+ // Call stub. Undo operation first.
2981
+ if (expr->op() == Token::INC) {
2982
+ __ sub(Operand(eax), Immediate(Smi::FromInt(1)));
2983
+ } else {
2984
+ __ add(Operand(eax), Immediate(Smi::FromInt(1)));
2985
+ }
2986
+ }
2987
+ // Call stub for +1/-1.
2988
+ GenericBinaryOpStub stub(expr->binary_op(),
2989
+ NO_OVERWRITE,
2990
+ NO_GENERIC_BINARY_FLAGS,
2991
+ TypeInfo::Unknown());
2992
+ stub.GenerateCall(masm(), eax, Smi::FromInt(1));
2993
+ __ bind(&done);
2994
+
2995
+ // Store the value returned in eax.
2996
+ switch (assign_type) {
2997
+ case VARIABLE:
2998
+ if (expr->is_postfix()) {
2999
+ // Perform the assignment as if via '='.
3000
+ EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(),
3001
+ Token::ASSIGN,
3002
+ Expression::kEffect);
3003
+ // For all contexts except kEffect: We have the result on
3004
+ // top of the stack.
3005
+ if (context_ != Expression::kEffect) {
3006
+ ApplyTOS(context_);
3007
+ }
3008
+ } else {
3009
+ // Perform the assignment as if via '='.
3010
+ EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(),
3011
+ Token::ASSIGN,
3012
+ context_);
3013
+ }
3014
+ break;
3015
+ case NAMED_PROPERTY: {
3016
+ __ mov(ecx, prop->key()->AsLiteral()->handle());
3017
+ __ pop(edx);
3018
+ Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize));
3019
+ __ call(ic, RelocInfo::CODE_TARGET);
3020
+ // This nop signals to the IC that there is no inlined code at the call
3021
+ // site for it to patch.
3022
+ __ nop();
3023
+ if (expr->is_postfix()) {
3024
+ if (context_ != Expression::kEffect) {
3025
+ ApplyTOS(context_);
3026
+ }
3027
+ } else {
3028
+ Apply(context_, eax);
3029
+ }
3030
+ break;
3031
+ }
3032
+ case KEYED_PROPERTY: {
3033
+ __ pop(ecx);
3034
+ __ pop(edx);
3035
+ Handle<Code> ic(Builtins::builtin(Builtins::KeyedStoreIC_Initialize));
3036
+ __ call(ic, RelocInfo::CODE_TARGET);
3037
+ // This nop signals to the IC that there is no inlined code at the call
3038
+ // site for it to patch.
3039
+ __ nop();
3040
+ if (expr->is_postfix()) {
3041
+ // Result is on the stack
3042
+ if (context_ != Expression::kEffect) {
3043
+ ApplyTOS(context_);
3044
+ }
3045
+ } else {
3046
+ Apply(context_, eax);
3047
+ }
3048
+ break;
3049
+ }
3050
+ }
3051
+ }
3052
+
3053
+
3054
+ void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) {
3055
+ Comment cmnt(masm_, "[ BinaryOperation");
3056
+ switch (expr->op()) {
3057
+ case Token::COMMA:
3058
+ VisitForEffect(expr->left());
3059
+ Visit(expr->right());
3060
+ break;
3061
+
3062
+ case Token::OR:
3063
+ case Token::AND:
3064
+ EmitLogicalOperation(expr);
3065
+ break;
3066
+
3067
+ case Token::ADD:
3068
+ case Token::SUB:
3069
+ case Token::DIV:
3070
+ case Token::MOD:
3071
+ case Token::MUL:
3072
+ case Token::BIT_OR:
3073
+ case Token::BIT_AND:
3074
+ case Token::BIT_XOR:
3075
+ case Token::SHL:
3076
+ case Token::SHR:
3077
+ case Token::SAR:
3078
+ VisitForValue(expr->left(), kStack);
3079
+ VisitForValue(expr->right(), kAccumulator);
3080
+ EmitBinaryOp(expr->op(), context_);
3081
+ break;
3082
+
3083
+ default:
3084
+ UNREACHABLE();
3085
+ }
3086
+ }
3087
+
3088
+
3089
+ void FullCodeGenerator::EmitNullCompare(bool strict,
3090
+ Register obj,
3091
+ Register null_const,
3092
+ Label* if_true,
3093
+ Label* if_false,
3094
+ Register scratch) {
3095
+ __ cmp(obj, Operand(null_const));
3096
+ if (strict) {
3097
+ __ j(equal, if_true);
3098
+ } else {
3099
+ __ j(equal, if_true);
3100
+ __ cmp(obj, Factory::undefined_value());
3101
+ __ j(equal, if_true);
3102
+ __ test(obj, Immediate(kSmiTagMask));
3103
+ __ j(zero, if_false);
3104
+ // It can be an undetectable object.
3105
+ __ mov(scratch, FieldOperand(obj, HeapObject::kMapOffset));
3106
+ __ movzx_b(scratch, FieldOperand(scratch, Map::kBitFieldOffset));
3107
+ __ test(scratch, Immediate(1 << Map::kIsUndetectable));
3108
+ __ j(not_zero, if_true);
3109
+ }
3110
+ __ jmp(if_false);
3111
+ }
3112
+
3113
+
3114
+ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
3115
+ Comment cmnt(masm_, "[ CompareOperation");
3116
+
3117
+ // Always perform the comparison for its control flow. Pack the result
3118
+ // into the expression's context after the comparison is performed.
3119
+
3120
+ Label materialize_true, materialize_false;
3121
+ Label* if_true = NULL;
3122
+ Label* if_false = NULL;
3123
+ PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false);
3124
+
3125
+ VisitForValue(expr->left(), kStack);
3126
+ switch (expr->op()) {
3127
+ case Token::IN:
3128
+ VisitForValue(expr->right(), kStack);
3129
+ __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION);
3130
+ __ cmp(eax, Factory::true_value());
3131
+ __ j(equal, if_true);
3132
+ __ jmp(if_false);
3133
+ break;
3134
+
3135
+ case Token::INSTANCEOF: {
3136
+ VisitForValue(expr->right(), kStack);
3137
+ InstanceofStub stub;
3138
+ __ CallStub(&stub);
3139
+ __ test(eax, Operand(eax));
3140
+ __ j(zero, if_true); // The stub returns 0 for true.
3141
+ __ jmp(if_false);
3142
+ break;
3143
+ }
3144
+
3145
+ default: {
3146
+ VisitForValue(expr->right(), kAccumulator);
3147
+ Condition cc = no_condition;
3148
+ bool strict = false;
3149
+ switch (expr->op()) {
3150
+ case Token::EQ_STRICT:
3151
+ strict = true;
3152
+ // Fall through
3153
+ case Token::EQ: {
3154
+ cc = equal;
3155
+ __ pop(edx);
3156
+ // If either operand is constant null we do a fast compare
3157
+ // against null.
3158
+ Literal* right_literal = expr->right()->AsLiteral();
3159
+ Literal* left_literal = expr->left()->AsLiteral();
3160
+ if (right_literal != NULL && right_literal->handle()->IsNull()) {
3161
+ EmitNullCompare(strict, edx, eax, if_true, if_false, ecx);
3162
+ Apply(context_, if_true, if_false);
3163
+ return;
3164
+ } else if (left_literal != NULL && left_literal->handle()->IsNull()) {
3165
+ EmitNullCompare(strict, eax, edx, if_true, if_false, ecx);
3166
+ Apply(context_, if_true, if_false);
3167
+ return;
3168
+ }
3169
+ break;
3170
+ }
3171
+ case Token::LT:
3172
+ cc = less;
3173
+ __ pop(edx);
3174
+ break;
3175
+ case Token::GT:
3176
+ // Reverse left and right sizes to obtain ECMA-262 conversion order.
3177
+ cc = less;
3178
+ __ mov(edx, result_register());
3179
+ __ pop(eax);
3180
+ break;
3181
+ case Token::LTE:
3182
+ // Reverse left and right sizes to obtain ECMA-262 conversion order.
3183
+ cc = greater_equal;
3184
+ __ mov(edx, result_register());
3185
+ __ pop(eax);
3186
+ break;
3187
+ case Token::GTE:
3188
+ cc = greater_equal;
3189
+ __ pop(edx);
3190
+ break;
3191
+ case Token::IN:
3192
+ case Token::INSTANCEOF:
3193
+ default:
3194
+ UNREACHABLE();
3195
+ }
3196
+
3197
+ // The comparison stub expects the smi vs. smi case to be handled
3198
+ // before it is called.
3199
+ Label slow_case;
3200
+ __ mov(ecx, Operand(edx));
3201
+ __ or_(ecx, Operand(eax));
3202
+ __ test(ecx, Immediate(kSmiTagMask));
3203
+ __ j(not_zero, &slow_case, not_taken);
3204
+ __ cmp(edx, Operand(eax));
3205
+ __ j(cc, if_true);
3206
+ __ jmp(if_false);
3207
+
3208
+ __ bind(&slow_case);
3209
+ CompareStub stub(cc, strict);
3210
+ __ CallStub(&stub);
3211
+ __ test(eax, Operand(eax));
3212
+ __ j(cc, if_true);
3213
+ __ jmp(if_false);
3214
+ }
3215
+ }
3216
+
3217
+ // Convert the result of the comparison into one expected for this
3218
+ // expression's context.
3219
+ Apply(context_, if_true, if_false);
3220
+ }
3221
+
3222
+
3223
+ void FullCodeGenerator::VisitThisFunction(ThisFunction* expr) {
3224
+ __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
3225
+ Apply(context_, eax);
3226
+ }
3227
+
3228
+
3229
+ Register FullCodeGenerator::result_register() { return eax; }
3230
+
3231
+
3232
+ Register FullCodeGenerator::context_register() { return esi; }
3233
+
3234
+
3235
+ void FullCodeGenerator::StoreToFrameField(int frame_offset, Register value) {
3236
+ ASSERT_EQ(POINTER_SIZE_ALIGN(frame_offset), frame_offset);
3237
+ __ mov(Operand(ebp, frame_offset), value);
3238
+ }
3239
+
3240
+
3241
+ void FullCodeGenerator::LoadContextField(Register dst, int context_index) {
3242
+ __ mov(dst, CodeGenerator::ContextOperand(esi, context_index));
3243
+ }
3244
+
3245
+
3246
+ // ----------------------------------------------------------------------------
3247
+ // Non-local control flow support.
3248
+
3249
+ void FullCodeGenerator::EnterFinallyBlock() {
3250
+ // Cook return address on top of stack (smi encoded Code* delta)
3251
+ ASSERT(!result_register().is(edx));
3252
+ __ mov(edx, Operand(esp, 0));
3253
+ __ sub(Operand(edx), Immediate(masm_->CodeObject()));
3254
+ ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize);
3255
+ ASSERT_EQ(0, kSmiTag);
3256
+ __ add(edx, Operand(edx)); // Convert to smi.
3257
+ __ mov(Operand(esp, 0), edx);
3258
+ // Store result register while executing finally block.
3259
+ __ push(result_register());
3260
+ }
3261
+
3262
+
3263
+ void FullCodeGenerator::ExitFinallyBlock() {
3264
+ ASSERT(!result_register().is(edx));
3265
+ // Restore result register from stack.
3266
+ __ pop(result_register());
3267
+ // Uncook return address.
3268
+ __ mov(edx, Operand(esp, 0));
3269
+ __ sar(edx, 1); // Convert smi to int.
3270
+ __ add(Operand(edx), Immediate(masm_->CodeObject()));
3271
+ __ mov(Operand(esp, 0), edx);
3272
+ // And return.
3273
+ __ ret(0);
3274
+ }
3275
+
3276
+
3277
+ #undef __
3278
+
3279
+ } } // namespace v8::internal
3280
+
3281
+ #endif // V8_TARGET_ARCH_IA32