35 static void Test##Name(); \
36 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true); \
37 static void Test##Name()
40 #ifndef DEPENDENT_TEST
41 #define DEPENDENT_TEST(Name, Dep) \
42 static void Test##Name(); \
43 CcTest register_test_##Name(Test##Name, __FILE__, #Name, #Dep, true); \
44 static void Test##Name()
48 #define DISABLED_TEST(Name) \
49 static void Test##Name(); \
50 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, false); \
51 static void Test##Name()
59 void Run() { callback_(); }
63 const char*
file() {
return file_; }
64 const char*
name() {
return name_; }
71 const char* dependency_;
93 gate_(v8::internal::OS::CreateSemaphore(0)),
115 static bool fuzzing_;
116 static int tests_being_run_;
118 static int active_tests_;
119 static bool NextThread();
123 void ContextSwitch();
124 static int GetNextTestNumber();
129 #define THREADED_TEST(Name) \
130 static void Test##Name(); \
131 RegisterThreadedTest register_##Name(Test##Name, #Name); \
139 :
fuzzer_(
NULL), callback_(callback), name_(name) {
144 static int count() {
return count_; }
150 current = current->prev_;
156 const char*
name() {
return name_; }
174 : context_(v8::Context::New(extensions, global_template, global_object)) {
219 const char* origin_url,
230 static inline int FlagDependentPortOffset() {
231 return ::v8::internal::FLAG_crankshaft ==
false ? 100 :
232 ::v8::internal::FLAG_always_opt ? 200 : 0;
236 #endif // ifndef CCTEST_H_
static void RunAllTests()
static Local< Script > Compile(Handle< String > source, ScriptOrigin *origin=NULL, ScriptData *pre_data=NULL, Handle< String > script_data=Handle< String >())
Thread(const Options &options)
LocalContext(v8::ExtensionConfiguration *extensions=0, v8::Handle< v8::ObjectTemplate > global_template=v8::Handle< v8::ObjectTemplate >(), v8::Handle< v8::Value > global_object=v8::Handle< v8::Value >())
static V8EXPORT Local< String > New(const char *data, int length=-1)
v8::Context * operator*()
const char * dependency()
RegisterThreadedTest(CcTest::TestFunction *callback, const char *name)
static Local< T > New(Handle< T > that)
static RegisterThreadedTest * nth(int i)
static V8EXPORT Local< Integer > New(int32_t value)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
static V8EXPORT Local< Number > New(double value)
CcTest::TestFunction * callback()
v8::Local< v8::Context > local()
static void SetUp(PartOfTest part)
v8::Context * operator->()
CcTest(TestFunction *callback, const char *file, const char *name, const char *dependency, bool enabled)