Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Side by Side Diff: src/flags.cc

Issue 19539: Irregexp: Added derived knowledge of whether we are at the start of input. (Closed)
Patch Set: Fixed lint issues. Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ast.cc ('k') | src/jsregexp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 int j = 1; 431 int j = 1;
432 for (int i = 1; i < *argc; i++) { 432 for (int i = 1; i < *argc; i++) {
433 if (argv[i] != NULL) 433 if (argv[i] != NULL)
434 argv[j++] = argv[i]; 434 argv[j++] = argv[i];
435 } 435 }
436 *argc = j; 436 *argc = j;
437 } 437 }
438 438
439 if (FLAG_help) { 439 if (FLAG_help) {
440 PrintHelp(); 440 PrintHelp();
441 exit(0);
441 } 442 }
442 // parsed all flags successfully 443 // parsed all flags successfully
443 return 0; 444 return 0;
444 } 445 }
445 446
446 447
447 static char* SkipWhiteSpace(char* p) { 448 static char* SkipWhiteSpace(char* p) {
448 while (*p != '\0' && isspace(*p) != 0) p++; 449 while (*p != '\0' && isspace(*p) != 0) p++;
449 return p; 450 return p;
450 } 451 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 const char** JSArguments::argv() { return argv_; } 540 const char** JSArguments::argv() { return argv_; }
540 const char*& JSArguments::operator[](int idx) { return argv_[idx]; } 541 const char*& JSArguments::operator[](int idx) { return argv_[idx]; }
541 JSArguments& JSArguments::operator=(JSArguments args) { 542 JSArguments& JSArguments::operator=(JSArguments args) {
542 argc_ = args.argc_; 543 argc_ = args.argc_;
543 argv_ = args.argv_; 544 argv_ = args.argv_;
544 return *this; 545 return *this;
545 } 546 }
546 547
547 548
548 } } // namespace v8::internal 549 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/jsregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698