| 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 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <ctype.h> | 5 #include <ctype.h> |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 // static | 510 // static |
| 511 void FlagList::ResetAllFlags() { | 511 void FlagList::ResetAllFlags() { |
| 512 for (size_t i = 0; i < num_flags; ++i) { | 512 for (size_t i = 0; i < num_flags; ++i) { |
| 513 flags[i].Reset(); | 513 flags[i].Reset(); |
| 514 } | 514 } |
| 515 } | 515 } |
| 516 | 516 |
| 517 | 517 |
| 518 // static | 518 // static |
| 519 void FlagList::PrintHelp() { | 519 void FlagList::PrintHelp() { |
| 520 CpuFeatures::Probe(false); |
| 520 CpuFeatures::PrintTarget(); | 521 CpuFeatures::PrintTarget(); |
| 521 CpuFeatures::PrintFeatures(); | 522 CpuFeatures::PrintFeatures(); |
| 522 | 523 |
| 523 printf("Usage:\n"); | 524 printf("Usage:\n"); |
| 524 printf(" shell [options] -e string\n"); | 525 printf(" shell [options] -e string\n"); |
| 525 printf(" execute string in V8\n"); | 526 printf(" execute string in V8\n"); |
| 526 printf(" shell [options] file1 file2 ... filek\n"); | 527 printf(" shell [options] file1 file2 ... filek\n"); |
| 527 printf(" run JavaScript scripts in file1, file2, ..., filek\n"); | 528 printf(" run JavaScript scripts in file1, file2, ..., filek\n"); |
| 528 printf(" shell [options]\n"); | 529 printf(" shell [options]\n"); |
| 529 printf(" shell [options] --shell [file1 file2 ... filek]\n"); | 530 printf(" shell [options] --shell [file1 file2 ... filek]\n"); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 543 | 544 |
| 544 | 545 |
| 545 // static | 546 // static |
| 546 void FlagList::EnforceFlagImplications() { | 547 void FlagList::EnforceFlagImplications() { |
| 547 #define FLAG_MODE_DEFINE_IMPLICATIONS | 548 #define FLAG_MODE_DEFINE_IMPLICATIONS |
| 548 #include "src/flag-definitions.h" | 549 #include "src/flag-definitions.h" |
| 549 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 550 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 550 } | 551 } |
| 551 | 552 |
| 552 } } // namespace v8::internal | 553 } } // namespace v8::internal |
| OLD | NEW |