Home | History | Annotate | Download | only in src

Lines Matching defs:argv

588   Handle<Value> argv[kArgc] = { evaluation_context_->Global(), text, full };
589 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv);
600 Handle<Value> argv[kArgc] = { message };
601 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv);
611 Handle<Value> argv[kArgc] = { command };
612 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv);
1265 bool Shell::SetOptions(int argc, char* argv[]) {
1267 if (strcmp(argv[i], "--stress-opt") == 0) {
1269 argv[i] = NULL;
1270 } else if (strcmp(argv[i], "--stress-deopt") == 0) {
1272 argv[i] = NULL;
1273 } else if (strcmp(argv[i], "--noalways-opt") == 0) {
1277 } else if (strcmp(argv[i], "--shell") == 0) {
1279 argv[i] = NULL;
1280 } else if (strcmp(argv[i], "--test") == 0) {
1282 argv[i] = NULL;
1283 } else if (strcmp(argv[i], "--preemption") == 0) {
1289 argv[i] = NULL;
1291 } else if (strcmp(argv[i], "--nopreemption") == 0) {
1297 argv[i] = NULL;
1299 } else if (strcmp(argv[i], "--preemption-interval") == 0) {
1305 argv[i-1] = NULL;
1307 options.preemption_interval = strtol(argv[i], &end, 10); // NOLINT
1311 printf("Invalid value for --preemption-interval '%s'\n", argv[i]);
1314 argv[i] = NULL;
1320 } else if (strcmp(argv[i], "-f") == 0) {
1324 } else if (strcmp(argv[i], "--isolate") == 0) {
1330 } else if (strcmp(argv[i], "-p") == 0) {
1339 else if (strcmp(argv[i], "--dump-counters") == 0) {
1342 } else if (strcmp(argv[i], "--debugger") == 0) {
1354 if (argv[i] == NULL) continue;
1355 if (strcmp(argv[i], "-p") == 0 && i + 1 < argc) {
1360 argv[i] = NULL;
1362 options.parallel_files[parallel_files_set] = argv[i];
1364 argv[i] = NULL;
1373 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
1378 current->Begin(argv, 1);
1380 const char* str = argv[i];
1384 current->Begin(argv, i + 1);
1385 } else if (strncmp(argv[i], "--", 2) == 0) {
1386 printf("Warning: unknown flag %s.\nTry --help for options\n", argv[i]);
1395 int Shell::RunMain(int argc, char* argv[]) {
1477 int Shell::Main(int argc, char* argv[]) {
1478 if (!SetOptions(argc, argv)) return 1;
1491 result = RunMain(argc, argv);
1501 result = RunMain(argc, argv);
1505 result = RunMain(argc, argv);
1545 int main(int argc, char* argv[]) {
1546 return v8::Shell::Main(argc, argv);