v8/test/cctest
marja@chromium.org 8bd37cb7c3 Refactor script compilation / running & use of helper funcs in test-api.cc.
The tests were using different kind of constructs for achieving the same
thing. This makes refactoring the compilation API more difficult than it should
be.

cctest.h already contained helpers for compiling and running scripts, but they
were not used consistently.

For example, all these were used for running scripts:

v8::Script::Compile(v8_str("foo"))->Run();
v8::Script::Compile(v8::String::NewFromUtf8(isolate, "foo))->Run();
CompileRun(v8_str("foo"));
CompileRun(v8::String::NewFromUtf8(some_way_to_get_isolate(), "foo"));
v8::Local<v8::Script> script = any_of_the_above; script->Run();

Most of the tests just want to run a script (which is in const char*) and don't
care about how the v8::String is constructed or passed to the compiler API. Using
the helpers makes the test more readable and reduces boilerplate code which is
unrelated to what the test is testing.

R=dcarney@chromium.org
BUG=

Review URL: https://codereview.chromium.org/190503002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19753 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-03-10 11:58:56 +00:00
..
cctest.cc Fixed a few lifetime/ownership issues in cctest/test-api. 2014-01-31 07:29:25 +00:00
cctest.gyp Atomic ops: Sync with Chromium and add unit test. 2014-03-10 06:43:21 +00:00
cctest.h Refactor script compilation / running & use of helper funcs in test-api.cc. 2014-03-10 11:58:56 +00:00
cctest.status Enable test-api/SetFunctionEntryHook for a64. It was fixed in r19297. 2014-02-13 10:56:10 +00:00
gay-fixed.cc
gay-fixed.h
gay-precision.cc
gay-precision.h
gay-shortest.cc
gay-shortest.h
log-eq-of-logging-and-traversal.js
OWNERS Add per-file OWNERS for MIPS-specific cctests 2014-02-04 09:53:26 +00:00
print-extension.cc Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00
print-extension.h Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00
profiler-extension.cc Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00
profiler-extension.h Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00
test-accessors.cc api accessor store ics should return passed value 2014-02-14 14:13:06 +00:00
test-alloc.cc Remove Heap::MaxRegularSpaceAllocationSize and use Page::MaxRegularHeapObjectSize instead. 2014-01-23 13:02:27 +00:00
test-api.cc Refactor script compilation / running & use of helper funcs in test-api.cc. 2014-03-10 11:58:56 +00:00
test-assembler-a64.cc A64: fix cctest/test-assembler-a64 2014-02-28 10:31:05 +00:00
test-assembler-arm.cc ARM: Optimize truncating division and fix sim 2014-01-02 16:36:21 +00:00
test-assembler-ia32.cc Prepare removal of ObjectTemplate::New without Isolate parameter. 2014-01-08 06:53:31 +00:00
test-assembler-mips.cc MIPS: Fix test-assembler-mips/MIPS10 test. 2014-02-04 14:05:46 +00:00
test-assembler-x64.cc Win64 fixes. 2014-02-07 07:44:19 +00:00
test-ast.cc Zonify types in compiler frontend 2014-01-21 16:22:52 +00:00
test-atomicops.cc Atomic ops: Sync with Chromium and add unit test. 2014-03-10 06:43:21 +00:00
test-bignum-dtoa.cc
test-bignum.cc
test-circular-queue.cc
test-code-stubs-a64.cc A64: Tidy up register use in TaggedToI 2014-02-21 11:36:04 +00:00
test-code-stubs-arm.cc Drop IsPregenerated() and allow_stub_calls flag. 2013-11-29 20:49:15 +00:00
test-code-stubs-ia32.cc Drop IsPregenerated() and allow_stub_calls flag. 2013-11-29 20:49:15 +00:00
test-code-stubs-mips.cc MIPS: Add missing cctests of DoubleToIStub (r16322). 2014-01-22 13:44:00 +00:00
test-code-stubs-x64.cc Drop IsPregenerated() and allow_stub_calls flag. 2013-11-29 20:49:15 +00:00
test-code-stubs.cc A64 support for DoubleToIStub (truncating). 2014-02-17 15:09:46 +00:00
test-code-stubs.h
test-compiler.cc Test FeedbackVectorPreservedAcrossRecompiles needs crankshaft 2014-03-07 11:01:03 +00:00
test-condition-variable.cc
test-constantpool.cc
test-conversions.cc
test-cpu-ia32.cc
test-cpu-profiler.cc Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00
test-cpu-x64.cc
test-cpu.cc
test-dataflow.cc
test-date.cc
test-debug.cc Remove Script::SetData and the script_data parameter from Script::(Compile|New). 2014-03-07 08:43:54 +00:00
test-declarative-accessors.cc Revert r18451 "Revert r18449 "Reland r18383: More API cleanup." and r18450 "Unbreak build."" since necessary WebKit changes are rolled in Chromium. 2014-01-03 14:31:17 +00:00
test-decls.cc Add --es-staging flag 2014-03-05 10:07:07 +00:00
test-deoptimization.cc Allow map check hoisting in GVN for stable maps. 2014-02-13 10:47:00 +00:00
test-dictionary.cc
test-disasm-a64.cc A64: Handle a few TODOs. 2014-03-07 15:20:32 +00:00
test-disasm-arm.cc
test-disasm-ia32.cc Print properly signed displacement in disassembler. 2014-03-05 09:28:26 +00:00
test-disasm-mips.cc
test-disasm-x64.cc Print properly signed displacement in disassembler. 2014-03-05 09:28:26 +00:00
test-diy-fp.cc
test-double.cc
test-dtoa.cc
test-fast-dtoa.cc
test-fixed-dtoa.cc
test-flags.cc
test-func-name-inference.cc Replace 'operator*' with explicit 'get' method on SmartPointer 2013-12-09 07:41:20 +00:00
test-fuzz-a64.cc A64: Make the Decoder a template 2014-02-26 12:01:05 +00:00
test-global-handles.cc Make LeakSanitizer happy, part 2. Fixed register usage on the way. 2014-02-07 07:06:13 +00:00
test-global-object.cc Revert r18451 "Revert r18449 "Reland r18383: More API cleanup." and r18450 "Unbreak build."" since necessary WebKit changes are rolled in Chromium. 2014-01-03 14:31:17 +00:00
test-hashing.cc Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
test-hashmap.cc
test-heap-profiler.cc Fix compiler warning on Win64 2014-03-07 17:20:03 +00:00
test-heap.cc Reland "Enable Object.observe by default" 2014-03-08 04:41:06 +00:00
test-javascript-a64.cc Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
test-js-a64-variables.cc Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
test-libplatform-task-queue.cc [platform] Implement a worker pool 2013-12-20 07:52:58 +00:00
test-libplatform-worker-thread.cc [platform] Implement a worker pool 2013-12-20 07:52:58 +00:00
test-libplatform.h [platform] Implement a worker pool 2013-12-20 07:52:58 +00:00
test-list.cc
test-liveedit.cc
test-lockers.cc Remove usage of deprecated APIs from cctests 2013-11-22 12:43:17 +00:00
test-log-stack-tracer.cc Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00
test-log.cc Make LeakSanitizer happy, part 1. 2014-02-06 07:16:41 +00:00
test-macro-assembler-arm.cc Drop IsPregenerated() and allow_stub_calls flag. 2013-11-29 20:49:15 +00:00
test-macro-assembler-ia32.cc Drop IsPregenerated() and allow_stub_calls flag. 2013-11-29 20:49:15 +00:00
test-macro-assembler-mips.cc MIPS: Add NaN test to cctest/test-macro-assembler-mips. 2014-02-10 19:46:34 +00:00
test-macro-assembler-x64.cc Make LeakSanitizer happy, part 1. 2014-02-06 07:16:41 +00:00
test-mark-compact.cc Disable concurrent osr for test-mark-compact/BootUpMemoryUse. 2014-02-11 11:47:38 +00:00
test-mementos.cc Add filler at the new space top when forcing scavenge. 2014-02-18 16:34:52 +00:00
test-microtask-delivery.cc Reland "Enable Object.observe by default" 2014-03-08 04:41:06 +00:00
test-mutex.cc
test-object-observe.cc Reland "Enable Object.observe by default" 2014-03-08 04:41:06 +00:00
test-parsing.cc Unify (Pre)Parser::ParseObjectLiteral and add tests. 2014-03-10 11:42:17 +00:00
test-platform-linux.cc
test-platform-macos.cc
test-platform-tls.cc
test-platform-win32.cc
test-platform.cc Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
test-profile-generator.cc Make LeakSanitizer happy, part 1. 2014-02-06 07:16:41 +00:00
test-random-number-generator.cc
test-regexp.cc Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
test-reloc-info.cc Replace 'operator*' with explicit 'get' method on SmartPointer 2013-12-09 07:41:20 +00:00
test-representation.cc Generate TypedArrayInitialize builtin in hydrogen. 2013-11-25 14:41:46 +00:00
test-semaphore.cc
test-serialize.cc Remove usage of deprecated APIs from cctests 2013-11-22 12:43:17 +00:00
test-socket.cc
test-spaces.cc Remove Heap::MaxRegularSpaceAllocationSize and use Page::MaxRegularHeapObjectSize instead. 2014-01-23 13:02:27 +00:00
test-strings.cc More cctest fixes regarding lifetime/ownership. 2014-02-03 07:29:23 +00:00
test-strtod.cc
test-symbols.cc Add filler at the new space top when forcing scavenge. 2014-02-18 16:34:52 +00:00
test-thread-termination.cc Prepare removal of ObjectTemplate::New without Isolate parameter. 2014-01-08 06:53:31 +00:00
test-threads.cc Make LeakSanitizer happy, part 1. 2014-02-06 07:16:41 +00:00
test-time.cc Use std:: on symbols declared in C++-style C headers. 2014-01-14 09:57:05 +00:00
test-types.cc don't anger clang 2014-01-27 10:06:37 +00:00
test-unbound-queue.cc Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
test-unique.cc Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
test-utils-a64.cc make a64 compile on mavericks - part 1 2014-02-17 15:20:54 +00:00
test-utils-a64.h make a64 compile on mavericks - part 1 2014-02-17 15:20:54 +00:00
test-utils.cc
test-version.cc
test-weakmaps.cc Remove all stuff marked as V8_DEPRECATED. 2013-12-18 08:09:37 +00:00
test-weaksets.cc Remove all stuff marked as V8_DEPRECATED. 2013-12-18 08:09:37 +00:00
test-weaktypedarrays.cc Mark deprecated APIs with relatively little use as deprecated 2013-11-28 08:21:26 +00:00
testcfg.py
trace-extension.cc Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00
trace-extension.h Various extension-related cleanup and simplifications. 2014-01-17 10:52:00 +00:00