| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |