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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include <ctype.h> | 28 #include <ctype.h> |
29 #include <stdlib.h> | 29 #include <stdlib.h> |
30 | 30 |
31 #include "v8.h" | 31 #include "v8.h" |
32 | 32 |
33 #include "platform.h" | 33 #include "platform.h" |
34 #include "smart-pointers.h" | 34 #include "smart-pointers.h" |
35 #include "string-stream.h" | 35 #include "string-stream.h" |
36 | 36 |
| 37 #ifdef V8_TARGET_ARCH_ARM |
| 38 #include "arm/assembler-arm-inl.h" |
| 39 #endif |
37 | 40 |
38 namespace v8 { | 41 namespace v8 { |
39 namespace internal { | 42 namespace internal { |
40 | 43 |
41 // Define all of our flags. | 44 // Define all of our flags. |
42 #define FLAG_MODE_DEFINE | 45 #define FLAG_MODE_DEFINE |
43 #include "flag-definitions.h" | 46 #include "flag-definitions.h" |
44 | 47 |
45 // Define all of our flags default values. | 48 // Define all of our flags default values. |
46 #define FLAG_MODE_DEFINE_DEFAULTS | 49 #define FLAG_MODE_DEFINE_DEFAULTS |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 // static | 513 // static |
511 void FlagList::ResetAllFlags() { | 514 void FlagList::ResetAllFlags() { |
512 for (size_t i = 0; i < num_flags; ++i) { | 515 for (size_t i = 0; i < num_flags; ++i) { |
513 flags[i].Reset(); | 516 flags[i].Reset(); |
514 } | 517 } |
515 } | 518 } |
516 | 519 |
517 | 520 |
518 // static | 521 // static |
519 void FlagList::PrintHelp() { | 522 void FlagList::PrintHelp() { |
| 523 #ifdef V8_TARGET_ARCH_ARM |
| 524 CpuFeatures::PrintTarget(); |
| 525 CpuFeatures::Probe(); |
| 526 CpuFeatures::PrintFeatures(); |
| 527 #endif // V8_TARGET_ARCH_ARM |
| 528 |
520 printf("Usage:\n"); | 529 printf("Usage:\n"); |
521 printf(" shell [options] -e string\n"); | 530 printf(" shell [options] -e string\n"); |
522 printf(" execute string in V8\n"); | 531 printf(" execute string in V8\n"); |
523 printf(" shell [options] file1 file2 ... filek\n"); | 532 printf(" shell [options] file1 file2 ... filek\n"); |
524 printf(" run JavaScript scripts in file1, file2, ..., filek\n"); | 533 printf(" run JavaScript scripts in file1, file2, ..., filek\n"); |
525 printf(" shell [options]\n"); | 534 printf(" shell [options]\n"); |
526 printf(" shell [options] --shell [file1 file2 ... filek]\n"); | 535 printf(" shell [options] --shell [file1 file2 ... filek]\n"); |
527 printf(" run an interactive JavaScript shell\n"); | 536 printf(" run an interactive JavaScript shell\n"); |
528 printf(" d8 [options] file1 file2 ... filek\n"); | 537 printf(" d8 [options] file1 file2 ... filek\n"); |
529 printf(" d8 [options]\n"); | 538 printf(" d8 [options]\n"); |
530 printf(" d8 [options] --shell [file1 file2 ... filek]\n"); | 539 printf(" d8 [options] --shell [file1 file2 ... filek]\n"); |
531 printf(" run the new debugging shell\n\n"); | 540 printf(" run the new debugging shell\n\n"); |
532 printf("Options:\n"); | 541 printf("Options:\n"); |
533 for (size_t i = 0; i < num_flags; ++i) { | 542 for (size_t i = 0; i < num_flags; ++i) { |
534 Flag* f = &flags[i]; | 543 Flag* f = &flags[i]; |
535 SmartArrayPointer<const char> value = ToString(f); | 544 SmartArrayPointer<const char> value = ToString(f); |
536 printf(" --%s (%s)\n type: %s default: %s\n", | 545 printf(" --%s (%s)\n type: %s default: %s\n", |
537 f->name(), f->comment(), Type2String(f->type()), *value); | 546 f->name(), f->comment(), Type2String(f->type()), *value); |
538 } | 547 } |
539 } | 548 } |
540 | 549 |
541 | 550 |
542 void FlagList::EnforceFlagImplications() { | 551 void FlagList::EnforceFlagImplications() { |
543 #define FLAG_MODE_DEFINE_IMPLICATIONS | 552 #define FLAG_MODE_DEFINE_IMPLICATIONS |
544 #include "flag-definitions.h" | 553 #include "flag-definitions.h" |
545 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 554 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
546 } | 555 } |
547 | 556 |
548 } } // namespace v8::internal | 557 } } // namespace v8::internal |
OLD | NEW |