37 const char* dependency,
bool enabled)
38 : callback_(callback), name_(name), dependency_(dependency), prev_(last_) {
40 char *basename = strrchr(const_cast<char *>(file),
'/');
42 basename = strrchr(const_cast<char *>(file),
'\\');
50 char *extension = strrchr(basename,
'.');
51 if (extension) *extension = 0;
60 static void PrintTestList(
CcTest* current) {
61 if (current ==
NULL)
return;
62 PrintTestList(current->
prev());
67 printf(
"%s/%s<\n", current->
file(), current->
name());
72 int main(
int argc,
char* argv[]) {
75 bool print_run_count =
true;
76 for (
int i = 1; i < argc; i++) {
78 if (strcmp(arg,
"--list") == 0) {
80 print_run_count =
false;
84 char* testname = strchr(arg_copy,
'/');
89 char* file = arg_copy;
90 char* name = testname + 1;
92 while (test !=
NULL) {
94 && strcmp(test->
file(), file) == 0
95 && strcmp(test->
name(), name) == 0) {
104 char* file_or_name = arg_copy;
106 while (test !=
NULL) {
108 && (strcmp(test->
file(), file_or_name) == 0
109 || strcmp(test->
name(), file_or_name) == 0)) {
116 v8::internal::DeleteArray<char>(arg_copy);
119 if (print_run_count && tests_run != 1)
120 printf(
"Ran %i tests.\n", tests_run);
126 int RegisterThreadedTest::count_ = 0;
const char * dependency()
int main(int argc, char *argv[])
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
char * StrDup(const char *str)
static int SetFlagsFromCommandLine(int *argc, char **argv, bool remove_flags)
CcTest(TestFunction *callback, const char *file, const char *name, const char *dependency, bool enabled)