therubyracer 0.4.8-x86-darwin-10 → 0.4.9-x86-darwin-10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/.gitignore +11 -0
- data/.gitmodules +3 -0
- data/History.txt +5 -1
- data/Rakefile +35 -38
- data/ext/v8/callbacks.cpp +1 -1
- data/ext/v8/convert_ruby.h +1 -1
- data/ext/v8/convert_string.h +3 -3
- data/ext/v8/extconf.rb +9 -17
- data/ext/v8/upstream/2.0.6/.gitignore +26 -0
- data/ext/v8/upstream/Makefile +31 -0
- data/ext/v8/upstream/no-strict-aliasing.patch +13 -0
- data/ext/v8/v8_str.cpp +1 -1
- data/ext/v8/v8_template.cpp +1 -1
- data/lib/v8.rb +1 -1
- data/lib/v8/v8.bundle +0 -0
- data/spec/ext/obj_spec.rb +1 -1
- data/therubyracer.gemspec +658 -12
- metadata +611 -1182
- data/Manifest.txt +0 -1191
- data/ext/v8/upstream/2.0.6/.sconsign.dblite +0 -0
- data/ext/v8/upstream/2.0.6/benchmarks/README.txt +0 -63
- data/ext/v8/upstream/2.0.6/benchmarks/base.js +0 -264
- data/ext/v8/upstream/2.0.6/benchmarks/crypto.js +0 -1698
- data/ext/v8/upstream/2.0.6/benchmarks/deltablue.js +0 -880
- data/ext/v8/upstream/2.0.6/benchmarks/earley-boyer.js +0 -4684
- data/ext/v8/upstream/2.0.6/benchmarks/raytrace.js +0 -935
- data/ext/v8/upstream/2.0.6/benchmarks/regexp.js +0 -1614
- data/ext/v8/upstream/2.0.6/benchmarks/revisions.html +0 -86
- data/ext/v8/upstream/2.0.6/benchmarks/richards.js +0 -539
- data/ext/v8/upstream/2.0.6/benchmarks/run.html +0 -141
- data/ext/v8/upstream/2.0.6/benchmarks/run.js +0 -61
- data/ext/v8/upstream/2.0.6/benchmarks/splay.js +0 -378
- data/ext/v8/upstream/2.0.6/benchmarks/style.css +0 -77
- data/ext/v8/upstream/2.0.6/benchmarks/v8-logo.png +0 -0
- data/ext/v8/upstream/2.0.6/samples/SConscript +0 -38
- data/ext/v8/upstream/2.0.6/samples/count-hosts.js +0 -42
- data/ext/v8/upstream/2.0.6/samples/process.cc +0 -622
- data/ext/v8/upstream/2.0.6/samples/shell.cc +0 -303
- data/ext/v8/upstream/2.0.6/test/cctest/SConscript +0 -95
- data/ext/v8/upstream/2.0.6/test/cctest/cctest.cc +0 -126
- data/ext/v8/upstream/2.0.6/test/cctest/cctest.h +0 -211
- data/ext/v8/upstream/2.0.6/test/cctest/cctest.status +0 -54
- data/ext/v8/upstream/2.0.6/test/cctest/test-accessors.cc +0 -450
- data/ext/v8/upstream/2.0.6/test/cctest/test-alloc.cc +0 -215
- data/ext/v8/upstream/2.0.6/test/cctest/test-api.cc +0 -8699
- data/ext/v8/upstream/2.0.6/test/cctest/test-assembler-arm.cc +0 -227
- data/ext/v8/upstream/2.0.6/test/cctest/test-assembler-ia32.cc +0 -395
- data/ext/v8/upstream/2.0.6/test/cctest/test-assembler-x64.cc +0 -292
- data/ext/v8/upstream/2.0.6/test/cctest/test-ast.cc +0 -97
- data/ext/v8/upstream/2.0.6/test/cctest/test-compiler.cc +0 -318
- data/ext/v8/upstream/2.0.6/test/cctest/test-conversions.cc +0 -130
- data/ext/v8/upstream/2.0.6/test/cctest/test-debug.cc +0 -5788
- data/ext/v8/upstream/2.0.6/test/cctest/test-decls.cc +0 -593
- data/ext/v8/upstream/2.0.6/test/cctest/test-disasm-arm.cc +0 -281
- data/ext/v8/upstream/2.0.6/test/cctest/test-disasm-ia32.cc +0 -418
- data/ext/v8/upstream/2.0.6/test/cctest/test-flags.cc +0 -234
- data/ext/v8/upstream/2.0.6/test/cctest/test-func-name-inference.cc +0 -267
- data/ext/v8/upstream/2.0.6/test/cctest/test-hashmap.cc +0 -176
- data/ext/v8/upstream/2.0.6/test/cctest/test-heap-profiler.cc +0 -396
- data/ext/v8/upstream/2.0.6/test/cctest/test-heap.cc +0 -796
- data/ext/v8/upstream/2.0.6/test/cctest/test-list.cc +0 -101
- data/ext/v8/upstream/2.0.6/test/cctest/test-lock.cc +0 -63
- data/ext/v8/upstream/2.0.6/test/cctest/test-log-stack-tracer.cc +0 -372
- data/ext/v8/upstream/2.0.6/test/cctest/test-log-utils.cc +0 -310
- data/ext/v8/upstream/2.0.6/test/cctest/test-log.cc +0 -1081
- data/ext/v8/upstream/2.0.6/test/cctest/test-macro-assembler-x64.cc +0 -2104
- data/ext/v8/upstream/2.0.6/test/cctest/test-mark-compact.cc +0 -341
- data/ext/v8/upstream/2.0.6/test/cctest/test-parsing.cc +0 -129
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-linux.cc +0 -80
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-macos.cc +0 -10
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-nullos.cc +0 -80
- data/ext/v8/upstream/2.0.6/test/cctest/test-platform-win32.cc +0 -26
- data/ext/v8/upstream/2.0.6/test/cctest/test-regexp.cc +0 -1815
- data/ext/v8/upstream/2.0.6/test/cctest/test-serialize.cc +0 -438
- data/ext/v8/upstream/2.0.6/test/cctest/test-sockets.cc +0 -162
- data/ext/v8/upstream/2.0.6/test/cctest/test-spaces.cc +0 -248
- data/ext/v8/upstream/2.0.6/test/cctest/test-strings.cc +0 -432
- data/ext/v8/upstream/2.0.6/test/cctest/test-thread-termination.cc +0 -290
- data/ext/v8/upstream/2.0.6/test/cctest/test-threads.cc +0 -52
- data/ext/v8/upstream/2.0.6/test/cctest/test-utils.cc +0 -186
- data/ext/v8/upstream/2.0.6/test/cctest/test-version.cc +0 -89
- data/ext/v8/upstream/2.0.6/test/cctest/testcfg.py +0 -108
- data/ext/v8/upstream/2.0.6/test/es5conform/README +0 -14
- data/ext/v8/upstream/2.0.6/test/es5conform/es5conform.status +0 -226
- data/ext/v8/upstream/2.0.6/test/es5conform/harness-adapt.js +0 -74
- data/ext/v8/upstream/2.0.6/test/es5conform/testcfg.py +0 -108
- data/ext/v8/upstream/2.0.6/test/message/message.status +0 -31
- data/ext/v8/upstream/2.0.6/test/message/overwritten-builtins.js +0 -31
- data/ext/v8/upstream/2.0.6/test/message/overwritten-builtins.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-73.js +0 -33
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-73.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-75.js +0 -32
- data/ext/v8/upstream/2.0.6/test/message/regress/regress-75.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/simple-throw.js +0 -28
- data/ext/v8/upstream/2.0.6/test/message/simple-throw.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/testcfg.py +0 -135
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-no-message.js +0 -51
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-no-message.out +0 -26
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-return-in-finally.js +0 -39
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-return-in-finally.out +0 -28
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch-and-finally.js +0 -34
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch-and-finally.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch.js +0 -34
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-catch.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-finally.js +0 -34
- data/ext/v8/upstream/2.0.6/test/message/try-catch-finally-throw-in-finally.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/try-finally-return-in-finally.js +0 -37
- data/ext/v8/upstream/2.0.6/test/message/try-finally-return-in-finally.out +0 -28
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-finally.js +0 -32
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-finally.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try-and-finally.js +0 -32
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try-and-finally.out +0 -30
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try.js +0 -32
- data/ext/v8/upstream/2.0.6/test/message/try-finally-throw-in-try.out +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/api-call-after-bypassed-exception.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/apply.js +0 -196
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-apply.js +0 -134
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-call-apply.js +0 -41
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-enum.js +0 -52
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-indirect.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-lazy.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-opt.js +0 -130
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments-read-and-assignment.js +0 -164
- data/ext/v8/upstream/2.0.6/test/mjsunit/arguments.js +0 -97
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-concat.js +0 -120
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-constructor.js +0 -119
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-functions-prototype.js +0 -159
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-indexing.js +0 -66
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-iteration.js +0 -228
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-join.js +0 -45
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-length-number-conversion.js +0 -53
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-length.js +0 -111
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-reduce.js +0 -514
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-sort.js +0 -362
- data/ext/v8/upstream/2.0.6/test/mjsunit/array-splice.js +0 -314
- data/ext/v8/upstream/2.0.6/test/mjsunit/ascii-regexp-subject.js +0 -49
- data/ext/v8/upstream/2.0.6/test/mjsunit/big-array-literal.js +0 -111
- data/ext/v8/upstream/2.0.6/test/mjsunit/big-object-literal.js +0 -114
- data/ext/v8/upstream/2.0.6/test/mjsunit/binary-operation-overwrite.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/bit-not.js +0 -75
- data/ext/v8/upstream/2.0.6/test/mjsunit/bitwise-operations-undefined.js +0 -49
- data/ext/v8/upstream/2.0.6/test/mjsunit/body-not-visible.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-1344252.js +0 -79
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-222.js +0 -42
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-223.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-900066.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/bugs/bug-941049.js +0 -100
- data/ext/v8/upstream/2.0.6/test/mjsunit/call-non-function-call.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/call-non-function.js +0 -63
- data/ext/v8/upstream/2.0.6/test/mjsunit/call.js +0 -87
- data/ext/v8/upstream/2.0.6/test/mjsunit/char-escape.js +0 -53
- data/ext/v8/upstream/2.0.6/test/mjsunit/class-of-builtins.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/closure.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/codegen-coverage.js +0 -91
- data/ext/v8/upstream/2.0.6/test/mjsunit/compare-character.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/compare-nan.js +0 -66
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/countoperation.js +0 -111
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/function-call.js +0 -52
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/globals.js +0 -65
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/jsnatives.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/literals-assignment.js +0 -104
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/literals.js +0 -52
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/loops.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/objectliterals.js +0 -57
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/property-simple.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/short-circuit.js +0 -102
- data/ext/v8/upstream/2.0.6/test/mjsunit/compiler/thisfunction.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/const-declaration.js +0 -172
- data/ext/v8/upstream/2.0.6/test/mjsunit/const-eval-init.js +0 -111
- data/ext/v8/upstream/2.0.6/test/mjsunit/const-redecl.js +0 -220
- data/ext/v8/upstream/2.0.6/test/mjsunit/const.js +0 -70
- data/ext/v8/upstream/2.0.6/test/mjsunit/constant-folding.js +0 -232
- data/ext/v8/upstream/2.0.6/test/mjsunit/context-variable-assignments.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/cyclic-array-to-string.js +0 -65
- data/ext/v8/upstream/2.0.6/test/mjsunit/cyrillic.js +0 -199
- data/ext/v8/upstream/2.0.6/test/mjsunit/d8-os.js +0 -180
- data/ext/v8/upstream/2.0.6/test/mjsunit/date-parse.js +0 -268
- data/ext/v8/upstream/2.0.6/test/mjsunit/date.js +0 -149
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-backtrace-text.js +0 -122
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-backtrace.js +0 -272
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-breakpoints.js +0 -120
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-changebreakpoint.js +0 -108
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-clearbreakpoint.js +0 -101
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-clearbreakpointgroup.js +0 -117
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-compile-event.js +0 -126
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-conditional-breakpoints.js +0 -171
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-constructed-by.js +0 -60
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-constructor.js +0 -78
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-continue.js +0 -114
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-enable-disable-breakpoints.js +0 -90
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-arguments.js +0 -93
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-bool-constructor.js +0 -80
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-locals.js +0 -132
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-recursive.js +0 -167
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate-with.js +0 -77
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-evaluate.js +0 -118
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-event-listener.js +0 -73
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-handle.js +0 -252
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-ignore-breakpoints.js +0 -89
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-mirror-cache.js +0 -85
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-multiple-breakpoints.js +0 -105
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-referenced-by.js +0 -112
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-references.js +0 -118
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-scopes.js +0 -761
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-script-breakpoints.js +0 -112
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-script.js +0 -92
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-scripts-request.js +0 -108
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-setbreakpoint.js +0 -165
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-sourceinfo.js +0 -352
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-sourceslice.js +0 -74
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-step-stub-callfunction.js +0 -87
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-step.js +0 -82
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-accessor.js +0 -248
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-builtin.js +0 -78
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-call-function-stub.js +0 -115
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-constructor.js +0 -78
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepin-function-call.js +0 -149
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepnext-do-while.js +0 -79
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepout-recursive-function.js +0 -106
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-stepout-to-builtin.js +0 -84
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-suspend.js +0 -96
- data/ext/v8/upstream/2.0.6/test/mjsunit/debug-version.js +0 -90
- data/ext/v8/upstream/2.0.6/test/mjsunit/declare-locally.js +0 -43
- data/ext/v8/upstream/2.0.6/test/mjsunit/deep-recursion.js +0 -66
- data/ext/v8/upstream/2.0.6/test/mjsunit/delay-syntax-error.js +0 -41
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-global-properties.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-in-eval.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-in-with.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete-vars-from-eval.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/delete.js +0 -163
- data/ext/v8/upstream/2.0.6/test/mjsunit/div-mod.js +0 -157
- data/ext/v8/upstream/2.0.6/test/mjsunit/do-not-strip-fc.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/dont-enum-array-holes.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/dont-reinit-global-var.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/double-equals.js +0 -114
- data/ext/v8/upstream/2.0.6/test/mjsunit/dtoa.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/enumeration-order.js +0 -109
- data/ext/v8/upstream/2.0.6/test/mjsunit/error-constructors.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/escape.js +0 -118
- data/ext/v8/upstream/2.0.6/test/mjsunit/eval-enclosing-function-name.js +0 -76
- data/ext/v8/upstream/2.0.6/test/mjsunit/eval-typeof-non-existing.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/eval.js +0 -157
- data/ext/v8/upstream/2.0.6/test/mjsunit/execScript-case-insensitive.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/extra-arguments.js +0 -54
- data/ext/v8/upstream/2.0.6/test/mjsunit/extra-commas.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/for-in-null-or-undefined.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/for-in-special-cases.js +0 -64
- data/ext/v8/upstream/2.0.6/test/mjsunit/for-in.js +0 -86
- data/ext/v8/upstream/2.0.6/test/mjsunit/fun-as-prototype.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/fun-name.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-arguments-null.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-caller.js +0 -48
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-names.js +0 -133
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-property.js +0 -29
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-prototype.js +0 -98
- data/ext/v8/upstream/2.0.6/test/mjsunit/function-source.js +0 -49
- data/ext/v8/upstream/2.0.6/test/mjsunit/function.js +0 -83
- data/ext/v8/upstream/2.0.6/test/mjsunit/fuzz-accessors.js +0 -85
- data/ext/v8/upstream/2.0.6/test/mjsunit/fuzz-natives.js +0 -159
- data/ext/v8/upstream/2.0.6/test/mjsunit/get-own-property-descriptor.js +0 -51
- data/ext/v8/upstream/2.0.6/test/mjsunit/get-prototype-of.js +0 -68
- data/ext/v8/upstream/2.0.6/test/mjsunit/getter-in-prototype.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/getter-in-value-prototype.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-const-var-conflicts.js +0 -57
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-deleted-property-ic.js +0 -45
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-deleted-property-keyed.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-ic.js +0 -48
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-load-from-eval-in-with.js +0 -59
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-load-from-eval.js +0 -85
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-load-from-nested-eval.js +0 -66
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-vars-eval.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/global-vars-with.js +0 -43
- data/ext/v8/upstream/2.0.6/test/mjsunit/greedy.js +0 -60
- data/ext/v8/upstream/2.0.6/test/mjsunit/has-own-property.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/html-comments.js +0 -57
- data/ext/v8/upstream/2.0.6/test/mjsunit/html-string-funcs.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/if-in-undefined.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/in.js +0 -159
- data/ext/v8/upstream/2.0.6/test/mjsunit/indexed-accessors.js +0 -120
- data/ext/v8/upstream/2.0.6/test/mjsunit/instanceof.js +0 -93
- data/ext/v8/upstream/2.0.6/test/mjsunit/integer-to-string.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/invalid-lhs.js +0 -65
- data/ext/v8/upstream/2.0.6/test/mjsunit/invalid-source-element.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/json.js +0 -207
- data/ext/v8/upstream/2.0.6/test/mjsunit/keyed-ic.js +0 -236
- data/ext/v8/upstream/2.0.6/test/mjsunit/keyed-storage-extend.js +0 -55
- data/ext/v8/upstream/2.0.6/test/mjsunit/large-object-allocation.js +0 -300
- data/ext/v8/upstream/2.0.6/test/mjsunit/large-object-literal.js +0 -56
- data/ext/v8/upstream/2.0.6/test/mjsunit/lazy-load.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/leakcheck.js +0 -53
- data/ext/v8/upstream/2.0.6/test/mjsunit/length.js +0 -78
- data/ext/v8/upstream/2.0.6/test/mjsunit/local-load-from-eval.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/math-min-max.js +0 -105
- data/ext/v8/upstream/2.0.6/test/mjsunit/megamorphic-callbacks.js +0 -70
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-array.js +0 -138
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-boolean.js +0 -59
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-date.js +0 -77
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-error.js +0 -94
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-function.js +0 -90
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-null.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-number.js +0 -77
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-object.js +0 -227
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-regexp.js +0 -110
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-script.js +0 -100
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-string.js +0 -89
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-undefined.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/mirror-unresolved-function.js +0 -81
- data/ext/v8/upstream/2.0.6/test/mjsunit/mjsunit.js +0 -203
- data/ext/v8/upstream/2.0.6/test/mjsunit/mjsunit.status +0 -66
- data/ext/v8/upstream/2.0.6/test/mjsunit/mul-exhaustive.js +0 -4511
- data/ext/v8/upstream/2.0.6/test/mjsunit/multiple-return.js +0 -62
- data/ext/v8/upstream/2.0.6/test/mjsunit/negate-zero.js +0 -42
- data/ext/v8/upstream/2.0.6/test/mjsunit/negate.js +0 -59
- data/ext/v8/upstream/2.0.6/test/mjsunit/new.js +0 -56
- data/ext/v8/upstream/2.0.6/test/mjsunit/newline-in-string.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/no-branch-elimination.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/no-octal-constants-above-256.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/no-semicolon.js +0 -45
- data/ext/v8/upstream/2.0.6/test/mjsunit/non-ascii-replace.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/nul-characters.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-limits.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-string-index-call.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-tostring-small.js +0 -395
- data/ext/v8/upstream/2.0.6/test/mjsunit/number-tostring.js +0 -338
- data/ext/v8/upstream/2.0.6/test/mjsunit/obj-construct.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/object-create.js +0 -250
- data/ext/v8/upstream/2.0.6/test/mjsunit/object-literal-gc.js +0 -66
- data/ext/v8/upstream/2.0.6/test/mjsunit/object-literal.js +0 -105
- data/ext/v8/upstream/2.0.6/test/mjsunit/override-read-only-property.js +0 -64
- data/ext/v8/upstream/2.0.6/test/mjsunit/parse-int-float.js +0 -85
- data/ext/v8/upstream/2.0.6/test/mjsunit/property-load-across-eval.js +0 -85
- data/ext/v8/upstream/2.0.6/test/mjsunit/property-object-key.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/proto.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/prototype.js +0 -93
- data/ext/v8/upstream/2.0.6/test/mjsunit/receiver-in-with-calls.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-UC16.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-call-as-function.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-capture.js +0 -57
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-captures.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-indexof.js +0 -77
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-lookahead.js +0 -166
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-loop-capture.js +0 -29
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-multiline-stack-trace.js +0 -116
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-multiline.js +0 -112
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-standalones.js +0 -78
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-static.js +0 -167
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp-string-methods.js +0 -51
- data/ext/v8/upstream/2.0.6/test/mjsunit/regexp.js +0 -390
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1030466.js +0 -45
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1036894.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1039610.js +0 -29
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1050043.js +0 -51
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1062422.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1066899.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1081309.js +0 -110
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1102760.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1110164.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1112051.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1114040.js +0 -58
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1134697.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-114.js +0 -43
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-116.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1170187.js +0 -80
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1173979.js +0 -48
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1175390.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1177518.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1177809.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1178598.js +0 -90
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1182832.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1187524.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1199401.js +0 -75
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1199637.js +0 -78
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1200351.js +0 -2032
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1201933.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1203459.js +0 -29
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1207276.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1213516.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1213575.js +0 -41
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1215653.js +0 -365
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-124.js +0 -57
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1254366.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1327557.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1341167.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1346700.js +0 -29
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-137.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1439135.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-149.js +0 -28
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1493017.js +0 -52
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-155924.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-171.js +0 -41
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-176.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-186.js +0 -72
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-187.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-189.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-191.js +0 -42
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-1919169.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-192.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-193.js +0 -44
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-20070207.js +0 -42
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-201.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-219.js +0 -176
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-220.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-221.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-2249423.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-225.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-227.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-231.js +0 -92
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-233.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-244.js +0 -67
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-246.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-253.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-254.js +0 -58
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-259.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-260.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-263.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-265.js +0 -64
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-267.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-269.js +0 -49
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-279.js +0 -62
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-284.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-286.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-294.js +0 -43
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-312.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-317.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-318.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-326.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-334.js +0 -90
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-341.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-345.js +0 -51
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-349.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-35.js +0 -33
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-351.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-386.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-392.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-394.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-396.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-397.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-399.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-406.js +0 -69
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-416.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-475.js +0 -28
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-483.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-485.js +0 -64
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-486.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-490.js +0 -48
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-491.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-492.js +0 -52
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-496.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-502.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-503.js +0 -63
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-515.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-524.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-526.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-540.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-545.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-57.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-580.js +0 -55
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-588599.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-6-9-regexp.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-662254.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-666721.js +0 -53
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-667061.js +0 -90
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-670147.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-674753.js +0 -87
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-676025.js +0 -31
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-678525.js +0 -59
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-682649.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-69.js +0 -43
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-734862.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-737588.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-74.js +0 -41
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-780423.js +0 -39
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-799761.js +0 -92
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-806473.js +0 -60
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-842017.js +0 -60
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-86.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-87.js +0 -58
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-874178.js +0 -32
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-875031.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-877615.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-892742.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-900055.js +0 -42
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-900966.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-91.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-925537.js +0 -42
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-937896.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-990205.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-992733.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-996542.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-998565.js +0 -51
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-crbug-18639.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/regress/regress-r3391.js +0 -77
- data/ext/v8/upstream/2.0.6/test/mjsunit/scanner.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/short-circuit-boolean.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/simple-constructor.js +0 -140
- data/ext/v8/upstream/2.0.6/test/mjsunit/sin-cos.js +0 -45
- data/ext/v8/upstream/2.0.6/test/mjsunit/smi-negative-zero.js +0 -100
- data/ext/v8/upstream/2.0.6/test/mjsunit/smi-ops.js +0 -671
- data/ext/v8/upstream/2.0.6/test/mjsunit/sparse-array-reverse.js +0 -131
- data/ext/v8/upstream/2.0.6/test/mjsunit/sparse-array.js +0 -41
- data/ext/v8/upstream/2.0.6/test/mjsunit/stack-traces.js +0 -204
- data/ext/v8/upstream/2.0.6/test/mjsunit/str-to-num.js +0 -158
- data/ext/v8/upstream/2.0.6/test/mjsunit/stress-array-push.js +0 -34
- data/ext/v8/upstream/2.0.6/test/mjsunit/strict-equals.js +0 -90
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-add.js +0 -195
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-case.js +0 -28
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-charat.js +0 -53
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-charcodeat.js +0 -192
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-compare-alignment.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-flatten.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-index.js +0 -154
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-indexof-1.js +0 -99
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-indexof-2.js +0 -68
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-lastindexof.js +0 -88
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-localecompare.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-match.js +0 -149
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-replace-gc.js +0 -57
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-replace.js +0 -182
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-search.js +0 -30
- data/ext/v8/upstream/2.0.6/test/mjsunit/string-split.js +0 -126
- data/ext/v8/upstream/2.0.6/test/mjsunit/substr.js +0 -65
- data/ext/v8/upstream/2.0.6/test/mjsunit/switch.js +0 -289
- data/ext/v8/upstream/2.0.6/test/mjsunit/testcfg.py +0 -137
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/array-isarray.js +0 -48
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/array-splice-webkit.js +0 -62
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/object-keys.js +0 -68
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/regexp-pcre.js +0 -6603
- data/ext/v8/upstream/2.0.6/test/mjsunit/third_party/string-trim.js +0 -107
- data/ext/v8/upstream/2.0.6/test/mjsunit/this-in-callbacks.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/this.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/throw-and-catch-function.js +0 -50
- data/ext/v8/upstream/2.0.6/test/mjsunit/throw-exception-for-null-access.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/to-precision.js +0 -82
- data/ext/v8/upstream/2.0.6/test/mjsunit/to_number_order.js +0 -129
- data/ext/v8/upstream/2.0.6/test/mjsunit/tobool.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/toint32.js +0 -129
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/codemap.js +0 -180
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/consarray.js +0 -60
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/csvparser.js +0 -79
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/logreader.js +0 -98
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/profile.js +0 -348
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/profile_view.js +0 -95
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/splaytree.js +0 -166
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.default +0 -55
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.gc-state +0 -21
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.ignore-unknown +0 -51
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor-test.separate-ic +0 -61
- data/ext/v8/upstream/2.0.6/test/mjsunit/tools/tickprocessor.js +0 -409
- data/ext/v8/upstream/2.0.6/test/mjsunit/top-level-assignments.js +0 -107
- data/ext/v8/upstream/2.0.6/test/mjsunit/touint32.js +0 -72
- data/ext/v8/upstream/2.0.6/test/mjsunit/transcendentals.js +0 -49
- data/ext/v8/upstream/2.0.6/test/mjsunit/try-catch-extension-object.js +0 -58
- data/ext/v8/upstream/2.0.6/test/mjsunit/try-catch-scopes.js +0 -42
- data/ext/v8/upstream/2.0.6/test/mjsunit/try-finally-nested.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/try.js +0 -394
- data/ext/v8/upstream/2.0.6/test/mjsunit/typeof.js +0 -40
- data/ext/v8/upstream/2.0.6/test/mjsunit/undeletable-functions.js +0 -181
- data/ext/v8/upstream/2.0.6/test/mjsunit/unicode-case-overoptimization.js +0 -35
- data/ext/v8/upstream/2.0.6/test/mjsunit/unicode-string-to-number.js +0 -46
- data/ext/v8/upstream/2.0.6/test/mjsunit/unicode-test.js +0 -9169
- data/ext/v8/upstream/2.0.6/test/mjsunit/unusual-constructor.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mjsunit/uri.js +0 -78
- data/ext/v8/upstream/2.0.6/test/mjsunit/value-callic-prototype-change.js +0 -94
- data/ext/v8/upstream/2.0.6/test/mjsunit/var.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-function-expression.js +0 -36
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-leave.js +0 -61
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-parameter-access.js +0 -47
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-prototype.js +0 -44
- data/ext/v8/upstream/2.0.6/test/mjsunit/with-value.js +0 -38
- data/ext/v8/upstream/2.0.6/test/mozilla/mozilla-shell-emulation.js +0 -37
- data/ext/v8/upstream/2.0.6/test/mozilla/mozilla.status +0 -815
- data/ext/v8/upstream/2.0.6/test/mozilla/testcfg.py +0 -138
- data/ext/v8/upstream/2.0.6/test/sputnik/README +0 -6
- data/ext/v8/upstream/2.0.6/test/sputnik/sputnik.status +0 -318
- data/ext/v8/upstream/2.0.6/test/sputnik/testcfg.py +0 -112
- data/ext/v8/upstream/2.0.6/tools/js2c.pyc +0 -0
- data/ext/v8/upstream/2.0.6/tools/jsmin.pyc +0 -0
- data/ext/v8/upstream/2.0.6/tools/utils.pyc +0 -0
- data/spec/redjs/README.txt +0 -8
@@ -1,292 +0,0 @@
|
|
1
|
-
// Copyright 2009 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 <stdlib.h>
|
29
|
-
|
30
|
-
#include "v8.h"
|
31
|
-
|
32
|
-
#include "macro-assembler.h"
|
33
|
-
#include "factory.h"
|
34
|
-
#include "platform.h"
|
35
|
-
#include "serialize.h"
|
36
|
-
#include "cctest.h"
|
37
|
-
|
38
|
-
using v8::internal::byte;
|
39
|
-
using v8::internal::OS;
|
40
|
-
using v8::internal::Assembler;
|
41
|
-
using v8::internal::Operand;
|
42
|
-
using v8::internal::Immediate;
|
43
|
-
using v8::internal::Label;
|
44
|
-
using v8::internal::rax;
|
45
|
-
using v8::internal::rsi;
|
46
|
-
using v8::internal::rdi;
|
47
|
-
using v8::internal::rcx;
|
48
|
-
using v8::internal::rdx;
|
49
|
-
using v8::internal::rbp;
|
50
|
-
using v8::internal::rsp;
|
51
|
-
using v8::internal::FUNCTION_CAST;
|
52
|
-
using v8::internal::CodeDesc;
|
53
|
-
using v8::internal::less_equal;
|
54
|
-
using v8::internal::not_equal;
|
55
|
-
using v8::internal::greater;
|
56
|
-
|
57
|
-
// Test the x64 assembler by compiling some simple functions into
|
58
|
-
// a buffer and executing them. These tests do not initialize the
|
59
|
-
// V8 library, create a context, or use any V8 objects.
|
60
|
-
// The AMD64 calling convention is used, with the first six arguments
|
61
|
-
// in RDI, RSI, RDX, RCX, R8, and R9, and floating point arguments in
|
62
|
-
// the XMM registers. The return value is in RAX.
|
63
|
-
// This calling convention is used on Linux, with GCC, and on Mac OS,
|
64
|
-
// with GCC. A different convention is used on 64-bit windows,
|
65
|
-
// where the first four integer arguments are passed in RCX, RDX, R8 and R9.
|
66
|
-
|
67
|
-
typedef int (*F0)();
|
68
|
-
typedef int (*F1)(int64_t x);
|
69
|
-
typedef int (*F2)(int64_t x, int64_t y);
|
70
|
-
|
71
|
-
#ifdef _WIN64
|
72
|
-
static const v8::internal::Register arg1 = rcx;
|
73
|
-
static const v8::internal::Register arg2 = rdx;
|
74
|
-
#else
|
75
|
-
static const v8::internal::Register arg1 = rdi;
|
76
|
-
static const v8::internal::Register arg2 = rsi;
|
77
|
-
#endif
|
78
|
-
|
79
|
-
#define __ assm.
|
80
|
-
|
81
|
-
|
82
|
-
TEST(AssemblerX64ReturnOperation) {
|
83
|
-
// Allocate an executable page of memory.
|
84
|
-
size_t actual_size;
|
85
|
-
byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
|
86
|
-
&actual_size,
|
87
|
-
true));
|
88
|
-
CHECK(buffer);
|
89
|
-
Assembler assm(buffer, static_cast<int>(actual_size));
|
90
|
-
|
91
|
-
// Assemble a simple function that copies argument 2 and returns it.
|
92
|
-
__ movq(rax, arg2);
|
93
|
-
__ nop();
|
94
|
-
__ ret(0);
|
95
|
-
|
96
|
-
CodeDesc desc;
|
97
|
-
assm.GetCode(&desc);
|
98
|
-
// Call the function from C++.
|
99
|
-
int result = FUNCTION_CAST<F2>(buffer)(3, 2);
|
100
|
-
CHECK_EQ(2, result);
|
101
|
-
}
|
102
|
-
|
103
|
-
TEST(AssemblerX64StackOperations) {
|
104
|
-
// Allocate an executable page of memory.
|
105
|
-
size_t actual_size;
|
106
|
-
byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
|
107
|
-
&actual_size,
|
108
|
-
true));
|
109
|
-
CHECK(buffer);
|
110
|
-
Assembler assm(buffer, static_cast<int>(actual_size));
|
111
|
-
|
112
|
-
// Assemble a simple function that copies argument 2 and returns it.
|
113
|
-
// We compile without stack frame pointers, so the gdb debugger shows
|
114
|
-
// incorrect stack frames when debugging this function (which has them).
|
115
|
-
__ push(rbp);
|
116
|
-
__ movq(rbp, rsp);
|
117
|
-
__ push(arg2); // Value at (rbp - 8)
|
118
|
-
__ push(arg2); // Value at (rbp - 16)
|
119
|
-
__ push(arg1); // Value at (rbp - 24)
|
120
|
-
__ pop(rax);
|
121
|
-
__ pop(rax);
|
122
|
-
__ pop(rax);
|
123
|
-
__ pop(rbp);
|
124
|
-
__ nop();
|
125
|
-
__ ret(0);
|
126
|
-
|
127
|
-
CodeDesc desc;
|
128
|
-
assm.GetCode(&desc);
|
129
|
-
// Call the function from C++.
|
130
|
-
int result = FUNCTION_CAST<F2>(buffer)(3, 2);
|
131
|
-
CHECK_EQ(2, result);
|
132
|
-
}
|
133
|
-
|
134
|
-
TEST(AssemblerX64ArithmeticOperations) {
|
135
|
-
// Allocate an executable page of memory.
|
136
|
-
size_t actual_size;
|
137
|
-
byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
|
138
|
-
&actual_size,
|
139
|
-
true));
|
140
|
-
CHECK(buffer);
|
141
|
-
Assembler assm(buffer, static_cast<int>(actual_size));
|
142
|
-
|
143
|
-
// Assemble a simple function that adds arguments returning the sum.
|
144
|
-
__ movq(rax, arg2);
|
145
|
-
__ addq(rax, arg1);
|
146
|
-
__ ret(0);
|
147
|
-
|
148
|
-
CodeDesc desc;
|
149
|
-
assm.GetCode(&desc);
|
150
|
-
// Call the function from C++.
|
151
|
-
int result = FUNCTION_CAST<F2>(buffer)(3, 2);
|
152
|
-
CHECK_EQ(5, result);
|
153
|
-
}
|
154
|
-
|
155
|
-
TEST(AssemblerX64ImulOperation) {
|
156
|
-
// Allocate an executable page of memory.
|
157
|
-
size_t actual_size;
|
158
|
-
byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
|
159
|
-
&actual_size,
|
160
|
-
true));
|
161
|
-
CHECK(buffer);
|
162
|
-
Assembler assm(buffer, static_cast<int>(actual_size));
|
163
|
-
|
164
|
-
// Assemble a simple function that multiplies arguments returning the high
|
165
|
-
// word.
|
166
|
-
__ movq(rax, arg2);
|
167
|
-
__ imul(arg1);
|
168
|
-
__ movq(rax, rdx);
|
169
|
-
__ ret(0);
|
170
|
-
|
171
|
-
CodeDesc desc;
|
172
|
-
assm.GetCode(&desc);
|
173
|
-
// Call the function from C++.
|
174
|
-
int result = FUNCTION_CAST<F2>(buffer)(3, 2);
|
175
|
-
CHECK_EQ(0, result);
|
176
|
-
result = FUNCTION_CAST<F2>(buffer)(0x100000000l, 0x100000000l);
|
177
|
-
CHECK_EQ(1, result);
|
178
|
-
result = FUNCTION_CAST<F2>(buffer)(-0x100000000l, 0x100000000l);
|
179
|
-
CHECK_EQ(-1, result);
|
180
|
-
}
|
181
|
-
|
182
|
-
TEST(AssemblerX64MemoryOperands) {
|
183
|
-
// Allocate an executable page of memory.
|
184
|
-
size_t actual_size;
|
185
|
-
byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
|
186
|
-
&actual_size,
|
187
|
-
true));
|
188
|
-
CHECK(buffer);
|
189
|
-
Assembler assm(buffer, static_cast<int>(actual_size));
|
190
|
-
|
191
|
-
// Assemble a simple function that copies argument 2 and returns it.
|
192
|
-
__ push(rbp);
|
193
|
-
__ movq(rbp, rsp);
|
194
|
-
|
195
|
-
__ push(arg2); // Value at (rbp - 8)
|
196
|
-
__ push(arg2); // Value at (rbp - 16)
|
197
|
-
__ push(arg1); // Value at (rbp - 24)
|
198
|
-
|
199
|
-
const int kStackElementSize = 8;
|
200
|
-
__ movq(rax, Operand(rbp, -3 * kStackElementSize));
|
201
|
-
__ pop(arg2);
|
202
|
-
__ pop(arg2);
|
203
|
-
__ pop(arg2);
|
204
|
-
__ pop(rbp);
|
205
|
-
__ nop();
|
206
|
-
__ ret(0);
|
207
|
-
|
208
|
-
CodeDesc desc;
|
209
|
-
assm.GetCode(&desc);
|
210
|
-
// Call the function from C++.
|
211
|
-
int result = FUNCTION_CAST<F2>(buffer)(3, 2);
|
212
|
-
CHECK_EQ(3, result);
|
213
|
-
}
|
214
|
-
|
215
|
-
TEST(AssemblerX64ControlFlow) {
|
216
|
-
// Allocate an executable page of memory.
|
217
|
-
size_t actual_size;
|
218
|
-
byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
|
219
|
-
&actual_size,
|
220
|
-
true));
|
221
|
-
CHECK(buffer);
|
222
|
-
Assembler assm(buffer, static_cast<int>(actual_size));
|
223
|
-
|
224
|
-
// Assemble a simple function that copies argument 1 and returns it.
|
225
|
-
__ push(rbp);
|
226
|
-
|
227
|
-
__ movq(rbp, rsp);
|
228
|
-
__ movq(rax, arg1);
|
229
|
-
Label target;
|
230
|
-
__ jmp(&target);
|
231
|
-
__ movq(rax, arg2);
|
232
|
-
__ bind(&target);
|
233
|
-
__ pop(rbp);
|
234
|
-
__ ret(0);
|
235
|
-
|
236
|
-
CodeDesc desc;
|
237
|
-
assm.GetCode(&desc);
|
238
|
-
// Call the function from C++.
|
239
|
-
int result = FUNCTION_CAST<F2>(buffer)(3, 2);
|
240
|
-
CHECK_EQ(3, result);
|
241
|
-
}
|
242
|
-
|
243
|
-
TEST(AssemblerX64LoopImmediates) {
|
244
|
-
// Allocate an executable page of memory.
|
245
|
-
size_t actual_size;
|
246
|
-
byte* buffer = static_cast<byte*>(OS::Allocate(Assembler::kMinimalBufferSize,
|
247
|
-
&actual_size,
|
248
|
-
true));
|
249
|
-
CHECK(buffer);
|
250
|
-
Assembler assm(buffer, static_cast<int>(actual_size));
|
251
|
-
// Assemble two loops using rax as counter, and verify the ending counts.
|
252
|
-
Label Fail;
|
253
|
-
__ movq(rax, Immediate(-3));
|
254
|
-
Label Loop1_test;
|
255
|
-
Label Loop1_body;
|
256
|
-
__ jmp(&Loop1_test);
|
257
|
-
__ bind(&Loop1_body);
|
258
|
-
__ addq(rax, Immediate(7));
|
259
|
-
__ bind(&Loop1_test);
|
260
|
-
__ cmpq(rax, Immediate(20));
|
261
|
-
__ j(less_equal, &Loop1_body);
|
262
|
-
// Did the loop terminate with the expected value?
|
263
|
-
__ cmpq(rax, Immediate(25));
|
264
|
-
__ j(not_equal, &Fail);
|
265
|
-
|
266
|
-
Label Loop2_test;
|
267
|
-
Label Loop2_body;
|
268
|
-
__ movq(rax, Immediate(0x11FEED00));
|
269
|
-
__ jmp(&Loop2_test);
|
270
|
-
__ bind(&Loop2_body);
|
271
|
-
__ addq(rax, Immediate(-0x1100));
|
272
|
-
__ bind(&Loop2_test);
|
273
|
-
__ cmpq(rax, Immediate(0x11FE8000));
|
274
|
-
__ j(greater, &Loop2_body);
|
275
|
-
// Did the loop terminate with the expected value?
|
276
|
-
__ cmpq(rax, Immediate(0x11FE7600));
|
277
|
-
__ j(not_equal, &Fail);
|
278
|
-
|
279
|
-
__ movq(rax, Immediate(1));
|
280
|
-
__ ret(0);
|
281
|
-
__ bind(&Fail);
|
282
|
-
__ movq(rax, Immediate(0));
|
283
|
-
__ ret(0);
|
284
|
-
|
285
|
-
CodeDesc desc;
|
286
|
-
assm.GetCode(&desc);
|
287
|
-
// Call the function from C++.
|
288
|
-
int result = FUNCTION_CAST<F0>(buffer)();
|
289
|
-
CHECK_EQ(1, result);
|
290
|
-
}
|
291
|
-
|
292
|
-
#undef __
|
@@ -1,97 +0,0 @@
|
|
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 <stdlib.h>
|
29
|
-
|
30
|
-
#include "v8.h"
|
31
|
-
|
32
|
-
#include "ast.h"
|
33
|
-
#include "cctest.h"
|
34
|
-
|
35
|
-
using namespace v8::internal;
|
36
|
-
|
37
|
-
TEST(List) {
|
38
|
-
List<AstNode*>* list = new List<AstNode*>(0);
|
39
|
-
CHECK_EQ(0, list->length());
|
40
|
-
|
41
|
-
ZoneScope zone_scope(DELETE_ON_EXIT);
|
42
|
-
AstNode* node = new EmptyStatement();
|
43
|
-
list->Add(node);
|
44
|
-
CHECK_EQ(1, list->length());
|
45
|
-
CHECK_EQ(node, list->at(0));
|
46
|
-
CHECK_EQ(node, list->last());
|
47
|
-
|
48
|
-
const int kElements = 100;
|
49
|
-
for (int i = 0; i < kElements; i++) {
|
50
|
-
list->Add(node);
|
51
|
-
}
|
52
|
-
CHECK_EQ(1 + kElements, list->length());
|
53
|
-
|
54
|
-
list->Clear();
|
55
|
-
CHECK_EQ(0, list->length());
|
56
|
-
delete list;
|
57
|
-
}
|
58
|
-
|
59
|
-
|
60
|
-
TEST(RemoveLast) {
|
61
|
-
List<int> list(4);
|
62
|
-
CHECK_EQ(0, list.length());
|
63
|
-
list.Add(1);
|
64
|
-
CHECK_EQ(1, list.length());
|
65
|
-
CHECK_EQ(1, list.last());
|
66
|
-
list.RemoveLast();
|
67
|
-
CHECK_EQ(0, list.length());
|
68
|
-
list.Add(2);
|
69
|
-
list.Add(3);
|
70
|
-
CHECK_EQ(2, list.length());
|
71
|
-
CHECK_EQ(3, list.last());
|
72
|
-
list.RemoveLast();
|
73
|
-
CHECK_EQ(1, list.length());
|
74
|
-
CHECK_EQ(2, list.last());
|
75
|
-
list.RemoveLast();
|
76
|
-
CHECK_EQ(0, list.length());
|
77
|
-
|
78
|
-
const int kElements = 100;
|
79
|
-
for (int i = 0; i < kElements; i++) list.Add(i);
|
80
|
-
for (int j = kElements - 1; j >= 0; j--) {
|
81
|
-
CHECK_EQ(j + 1, list.length());
|
82
|
-
CHECK_EQ(j, list.last());
|
83
|
-
list.RemoveLast();
|
84
|
-
CHECK_EQ(j, list.length());
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
|
89
|
-
TEST(DeleteEmpty) {
|
90
|
-
{
|
91
|
-
List<int>* list = new List<int>(0);
|
92
|
-
delete list;
|
93
|
-
}
|
94
|
-
{
|
95
|
-
List<int> list(0);
|
96
|
-
}
|
97
|
-
}
|
@@ -1,318 +0,0 @@
|
|
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 <stdlib.h>
|
29
|
-
|
30
|
-
#include "v8.h"
|
31
|
-
|
32
|
-
#include "compiler.h"
|
33
|
-
#include "execution.h"
|
34
|
-
#include "factory.h"
|
35
|
-
#include "platform.h"
|
36
|
-
#include "top.h"
|
37
|
-
#include "cctest.h"
|
38
|
-
|
39
|
-
using namespace v8::internal;
|
40
|
-
|
41
|
-
static v8::Persistent<v8::Context> env;
|
42
|
-
|
43
|
-
// --- P r i n t E x t e n s i o n ---
|
44
|
-
|
45
|
-
class PrintExtension : public v8::Extension {
|
46
|
-
public:
|
47
|
-
PrintExtension() : v8::Extension("v8/print", kSource) { }
|
48
|
-
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
|
49
|
-
v8::Handle<v8::String> name);
|
50
|
-
static v8::Handle<v8::Value> Print(const v8::Arguments& args);
|
51
|
-
private:
|
52
|
-
static const char* kSource;
|
53
|
-
};
|
54
|
-
|
55
|
-
|
56
|
-
const char* PrintExtension::kSource = "native function print();";
|
57
|
-
|
58
|
-
|
59
|
-
v8::Handle<v8::FunctionTemplate> PrintExtension::GetNativeFunction(
|
60
|
-
v8::Handle<v8::String> str) {
|
61
|
-
return v8::FunctionTemplate::New(PrintExtension::Print);
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
v8::Handle<v8::Value> PrintExtension::Print(const v8::Arguments& args) {
|
66
|
-
for (int i = 0; i < args.Length(); i++) {
|
67
|
-
if (i != 0) printf(" ");
|
68
|
-
v8::HandleScope scope;
|
69
|
-
v8::Handle<v8::Value> arg = args[i];
|
70
|
-
v8::Handle<v8::String> string_obj = arg->ToString();
|
71
|
-
if (string_obj.IsEmpty()) return string_obj;
|
72
|
-
int length = string_obj->Length();
|
73
|
-
uint16_t* string = NewArray<uint16_t>(length + 1);
|
74
|
-
string_obj->Write(string);
|
75
|
-
for (int j = 0; j < length; j++)
|
76
|
-
printf("%lc", string[j]);
|
77
|
-
DeleteArray(string);
|
78
|
-
}
|
79
|
-
printf("\n");
|
80
|
-
return v8::Undefined();
|
81
|
-
}
|
82
|
-
|
83
|
-
|
84
|
-
static PrintExtension kPrintExtension;
|
85
|
-
v8::DeclareExtension kPrintExtensionDeclaration(&kPrintExtension);
|
86
|
-
|
87
|
-
|
88
|
-
static void InitializeVM() {
|
89
|
-
if (env.IsEmpty()) {
|
90
|
-
v8::HandleScope scope;
|
91
|
-
const char* extensions[] = { "v8/print", "v8/gc" };
|
92
|
-
v8::ExtensionConfiguration config(2, extensions);
|
93
|
-
env = v8::Context::New(&config);
|
94
|
-
}
|
95
|
-
v8::HandleScope scope;
|
96
|
-
env->Enter();
|
97
|
-
}
|
98
|
-
|
99
|
-
|
100
|
-
static Object* GetGlobalProperty(const char* name) {
|
101
|
-
Handle<String> symbol = Factory::LookupAsciiSymbol(name);
|
102
|
-
return Top::context()->global()->GetProperty(*symbol);
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
static void SetGlobalProperty(const char* name, Object* value) {
|
107
|
-
Handle<Object> object(value);
|
108
|
-
Handle<String> symbol = Factory::LookupAsciiSymbol(name);
|
109
|
-
Handle<JSObject> global(Top::context()->global());
|
110
|
-
SetProperty(global, symbol, object, NONE);
|
111
|
-
}
|
112
|
-
|
113
|
-
|
114
|
-
static Handle<JSFunction> Compile(const char* source) {
|
115
|
-
Handle<String> source_code(Factory::NewStringFromUtf8(CStrVector(source)));
|
116
|
-
Handle<JSFunction> boilerplate =
|
117
|
-
Compiler::Compile(source_code, Handle<String>(), 0, 0, NULL, NULL);
|
118
|
-
return Factory::NewFunctionFromBoilerplate(boilerplate,
|
119
|
-
Top::global_context());
|
120
|
-
}
|
121
|
-
|
122
|
-
|
123
|
-
static double Inc(int x) {
|
124
|
-
const char* source = "result = %d + 1;";
|
125
|
-
EmbeddedVector<char, 512> buffer;
|
126
|
-
OS::SNPrintF(buffer, source, x);
|
127
|
-
|
128
|
-
Handle<JSFunction> fun = Compile(buffer.start());
|
129
|
-
if (fun.is_null()) return -1;
|
130
|
-
|
131
|
-
bool has_pending_exception;
|
132
|
-
Handle<JSObject> global(Top::context()->global());
|
133
|
-
Execution::Call(fun, global, 0, NULL, &has_pending_exception);
|
134
|
-
CHECK(!has_pending_exception);
|
135
|
-
return GetGlobalProperty("result")->Number();
|
136
|
-
}
|
137
|
-
|
138
|
-
|
139
|
-
TEST(Inc) {
|
140
|
-
InitializeVM();
|
141
|
-
v8::HandleScope scope;
|
142
|
-
CHECK_EQ(4.0, Inc(3));
|
143
|
-
}
|
144
|
-
|
145
|
-
|
146
|
-
static double Add(int x, int y) {
|
147
|
-
Handle<JSFunction> fun = Compile("result = x + y;");
|
148
|
-
if (fun.is_null()) return -1;
|
149
|
-
|
150
|
-
SetGlobalProperty("x", Smi::FromInt(x));
|
151
|
-
SetGlobalProperty("y", Smi::FromInt(y));
|
152
|
-
bool has_pending_exception;
|
153
|
-
Handle<JSObject> global(Top::context()->global());
|
154
|
-
Execution::Call(fun, global, 0, NULL, &has_pending_exception);
|
155
|
-
CHECK(!has_pending_exception);
|
156
|
-
return GetGlobalProperty("result")->Number();
|
157
|
-
}
|
158
|
-
|
159
|
-
|
160
|
-
TEST(Add) {
|
161
|
-
InitializeVM();
|
162
|
-
v8::HandleScope scope;
|
163
|
-
CHECK_EQ(5.0, Add(2, 3));
|
164
|
-
}
|
165
|
-
|
166
|
-
|
167
|
-
static double Abs(int x) {
|
168
|
-
Handle<JSFunction> fun = Compile("if (x < 0) result = -x; else result = x;");
|
169
|
-
if (fun.is_null()) return -1;
|
170
|
-
|
171
|
-
SetGlobalProperty("x", Smi::FromInt(x));
|
172
|
-
bool has_pending_exception;
|
173
|
-
Handle<JSObject> global(Top::context()->global());
|
174
|
-
Execution::Call(fun, global, 0, NULL, &has_pending_exception);
|
175
|
-
CHECK(!has_pending_exception);
|
176
|
-
return GetGlobalProperty("result")->Number();
|
177
|
-
}
|
178
|
-
|
179
|
-
|
180
|
-
TEST(Abs) {
|
181
|
-
InitializeVM();
|
182
|
-
v8::HandleScope scope;
|
183
|
-
CHECK_EQ(3.0, Abs(-3));
|
184
|
-
}
|
185
|
-
|
186
|
-
|
187
|
-
static double Sum(int n) {
|
188
|
-
Handle<JSFunction> fun =
|
189
|
-
Compile("s = 0; while (n > 0) { s += n; n -= 1; }; result = s;");
|
190
|
-
if (fun.is_null()) return -1;
|
191
|
-
|
192
|
-
SetGlobalProperty("n", Smi::FromInt(n));
|
193
|
-
bool has_pending_exception;
|
194
|
-
Handle<JSObject> global(Top::context()->global());
|
195
|
-
Execution::Call(fun, global, 0, NULL, &has_pending_exception);
|
196
|
-
CHECK(!has_pending_exception);
|
197
|
-
return GetGlobalProperty("result")->Number();
|
198
|
-
}
|
199
|
-
|
200
|
-
|
201
|
-
TEST(Sum) {
|
202
|
-
InitializeVM();
|
203
|
-
v8::HandleScope scope;
|
204
|
-
CHECK_EQ(5050.0, Sum(100));
|
205
|
-
}
|
206
|
-
|
207
|
-
|
208
|
-
TEST(Print) {
|
209
|
-
InitializeVM();
|
210
|
-
v8::HandleScope scope;
|
211
|
-
const char* source = "for (n = 0; n < 100; ++n) print(n, 1, 2);";
|
212
|
-
Handle<JSFunction> fun = Compile(source);
|
213
|
-
if (fun.is_null()) return;
|
214
|
-
bool has_pending_exception;
|
215
|
-
Handle<JSObject> global(Top::context()->global());
|
216
|
-
Execution::Call(fun, global, 0, NULL, &has_pending_exception);
|
217
|
-
CHECK(!has_pending_exception);
|
218
|
-
}
|
219
|
-
|
220
|
-
|
221
|
-
// The following test method stems from my coding efforts today. It
|
222
|
-
// tests all the functionality I have added to the compiler today
|
223
|
-
TEST(Stuff) {
|
224
|
-
InitializeVM();
|
225
|
-
v8::HandleScope scope;
|
226
|
-
const char* source =
|
227
|
-
"r = 0;\n"
|
228
|
-
"a = new Object;\n"
|
229
|
-
"if (a == a) r+=1;\n" // 1
|
230
|
-
"if (a != new Object()) r+=2;\n" // 2
|
231
|
-
"a.x = 42;\n"
|
232
|
-
"if (a.x == 42) r+=4;\n" // 4
|
233
|
-
"function foo() { var x = 87; return x; }\n"
|
234
|
-
"if (foo() == 87) r+=8;\n" // 8
|
235
|
-
"function bar() { var x; x = 99; return x; }\n"
|
236
|
-
"if (bar() == 99) r+=16;\n" // 16
|
237
|
-
"function baz() { var x = 1, y, z = 2; y = 3; return x + y + z; }\n"
|
238
|
-
"if (baz() == 6) r+=32;\n" // 32
|
239
|
-
"function Cons0() { this.x = 42; this.y = 87; }\n"
|
240
|
-
"if (new Cons0().x == 42) r+=64;\n" // 64
|
241
|
-
"if (new Cons0().y == 87) r+=128;\n" // 128
|
242
|
-
"function Cons2(x, y) { this.sum = x + y; }\n"
|
243
|
-
"if (new Cons2(3,4).sum == 7) r+=256;"; // 256
|
244
|
-
|
245
|
-
Handle<JSFunction> fun = Compile(source);
|
246
|
-
CHECK(!fun.is_null());
|
247
|
-
bool has_pending_exception;
|
248
|
-
Handle<JSObject> global(Top::context()->global());
|
249
|
-
Execution::Call(fun, global, 0, NULL, &has_pending_exception);
|
250
|
-
CHECK(!has_pending_exception);
|
251
|
-
CHECK_EQ(511.0, GetGlobalProperty("r")->Number());
|
252
|
-
}
|
253
|
-
|
254
|
-
|
255
|
-
TEST(UncaughtThrow) {
|
256
|
-
InitializeVM();
|
257
|
-
v8::HandleScope scope;
|
258
|
-
|
259
|
-
const char* source = "throw 42;";
|
260
|
-
Handle<JSFunction> fun = Compile(source);
|
261
|
-
CHECK(!fun.is_null());
|
262
|
-
bool has_pending_exception;
|
263
|
-
Handle<JSObject> global(Top::context()->global());
|
264
|
-
Handle<Object> result =
|
265
|
-
Execution::Call(fun, global, 0, NULL, &has_pending_exception);
|
266
|
-
CHECK(has_pending_exception);
|
267
|
-
CHECK_EQ(42.0, Top::pending_exception()->Number());
|
268
|
-
}
|
269
|
-
|
270
|
-
|
271
|
-
// Tests calling a builtin function from C/C++ code, and the builtin function
|
272
|
-
// performs GC. It creates a stack frame looks like following:
|
273
|
-
// | C (PerformGC) |
|
274
|
-
// | JS-to-C |
|
275
|
-
// | JS |
|
276
|
-
// | C-to-JS |
|
277
|
-
TEST(C2JSFrames) {
|
278
|
-
InitializeVM();
|
279
|
-
v8::HandleScope scope;
|
280
|
-
|
281
|
-
const char* source = "function foo(a) { gc(), print(a); }";
|
282
|
-
|
283
|
-
Handle<JSFunction> fun0 = Compile(source);
|
284
|
-
CHECK(!fun0.is_null());
|
285
|
-
|
286
|
-
// Run the generated code to populate the global object with 'foo'.
|
287
|
-
bool has_pending_exception;
|
288
|
-
Handle<JSObject> global(Top::context()->global());
|
289
|
-
Execution::Call(fun0, global, 0, NULL, &has_pending_exception);
|
290
|
-
CHECK(!has_pending_exception);
|
291
|
-
|
292
|
-
Handle<Object> fun1 =
|
293
|
-
Handle<Object>(
|
294
|
-
Top::context()->global()->GetProperty(
|
295
|
-
*Factory::LookupAsciiSymbol("foo")));
|
296
|
-
CHECK(fun1->IsJSFunction());
|
297
|
-
|
298
|
-
Object** argv[1] = {
|
299
|
-
Handle<Object>::cast(Factory::LookupAsciiSymbol("hello")).location()
|
300
|
-
};
|
301
|
-
Execution::Call(Handle<JSFunction>::cast(fun1), global, 1, argv,
|
302
|
-
&has_pending_exception);
|
303
|
-
CHECK(!has_pending_exception);
|
304
|
-
}
|
305
|
-
|
306
|
-
|
307
|
-
// Regression 236. Calling InitLineEnds on a Script with undefined
|
308
|
-
// source resulted in crash.
|
309
|
-
TEST(Regression236) {
|
310
|
-
InitializeVM();
|
311
|
-
v8::HandleScope scope;
|
312
|
-
|
313
|
-
Handle<Script> script = Factory::NewScript(Factory::empty_string());
|
314
|
-
script->set_source(Heap::undefined_value());
|
315
|
-
CHECK_EQ(-1, GetScriptLineNumber(script, 0));
|
316
|
-
CHECK_EQ(-1, GetScriptLineNumber(script, 100));
|
317
|
-
CHECK_EQ(-1, GetScriptLineNumber(script, -1));
|
318
|
-
}
|