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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 printf(" run an interactive JavaScript shell\n"); | 559 printf(" run an interactive JavaScript shell\n"); |
560 printf(" d8 [options] file1 file2 ... filek\n"); | 560 printf(" d8 [options] file1 file2 ... filek\n"); |
561 printf(" d8 [options]\n"); | 561 printf(" d8 [options]\n"); |
562 printf(" d8 [options] --shell [file1 file2 ... filek]\n"); | 562 printf(" d8 [options] --shell [file1 file2 ... filek]\n"); |
563 printf(" run the new debugging shell\n\n"); | 563 printf(" run the new debugging shell\n\n"); |
564 printf("Options:\n"); | 564 printf("Options:\n"); |
565 for (size_t i = 0; i < num_flags; ++i) { | 565 for (size_t i = 0; i < num_flags; ++i) { |
566 Flag* f = &flags[i]; | 566 Flag* f = &flags[i]; |
567 SmartArrayPointer<const char> value = ToString(f); | 567 SmartArrayPointer<const char> value = ToString(f); |
568 printf(" --%s (%s)\n type: %s default: %s\n", | 568 printf(" --%s (%s)\n type: %s default: %s\n", |
569 f->name(), f->comment(), Type2String(f->type()), *value); | 569 f->name(), f->comment(), Type2String(f->type()), value.get()); |
570 } | 570 } |
571 } | 571 } |
572 | 572 |
573 | 573 |
574 // static | 574 // static |
575 void FlagList::EnforceFlagImplications() { | 575 void FlagList::EnforceFlagImplications() { |
576 #define FLAG_MODE_DEFINE_IMPLICATIONS | 576 #define FLAG_MODE_DEFINE_IMPLICATIONS |
577 #include "flag-definitions.h" | 577 #include "flag-definitions.h" |
578 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 578 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
579 } | 579 } |
580 | 580 |
581 } } // namespace v8::internal | 581 } } // namespace v8::internal |
OLD | NEW |