| 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 FLAG_log_api = true; | 670 FLAG_log_api = true; |
| 671 FLAG_log_code = true; | 671 FLAG_log_code = true; |
| 672 FLAG_log_gc = true; | 672 FLAG_log_gc = true; |
| 673 FLAG_log_suspect = true; | 673 FLAG_log_suspect = true; |
| 674 FLAG_log_handles = true; | 674 FLAG_log_handles = true; |
| 675 FLAG_log_regexp = true; | 675 FLAG_log_regexp = true; |
| 676 } | 676 } |
| 677 | 677 |
| 678 // --prof implies --log-code. | 678 // --prof implies --log-code. |
| 679 if (FLAG_prof) FLAG_log_code = true; | 679 if (FLAG_prof) FLAG_log_code = true; |
| 680 if (FLAG_log_code) FLAG_log = true; |
| 680 | 681 |
| 681 bool open_log_file = FLAG_log || FLAG_log_api || FLAG_log_code | 682 bool open_log_file = FLAG_log || FLAG_log_api || FLAG_log_code |
| 682 || FLAG_log_gc || FLAG_log_handles || FLAG_log_suspect | 683 || FLAG_log_gc || FLAG_log_handles || FLAG_log_suspect |
| 683 || FLAG_log_regexp; | 684 || FLAG_log_regexp; |
| 684 | 685 |
| 685 // If we're logging anything, we need to open the log file. | 686 // If we're logging anything, we need to open the log file. |
| 686 if (open_log_file) { | 687 if (open_log_file) { |
| 687 if (strcmp(FLAG_logfile, "-") == 0) { | 688 if (strcmp(FLAG_logfile, "-") == 0) { |
| 688 logfile_ = stdout; | 689 logfile_ = stdout; |
| 689 } else { | 690 } else { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 if (FLAG_log_state_changes) { | 798 if (FLAG_log_state_changes) { |
| 798 LOG(StringEvent("Leaving", StateToString(state_))); | 799 LOG(StringEvent("Leaving", StateToString(state_))); |
| 799 if (previous_) { | 800 if (previous_) { |
| 800 LOG(StringEvent("To", StateToString(previous_->state_))); | 801 LOG(StringEvent("To", StateToString(previous_->state_))); |
| 801 } | 802 } |
| 802 } | 803 } |
| 803 } | 804 } |
| 804 #endif | 805 #endif |
| 805 | 806 |
| 806 } } // namespace v8::internal | 807 } } // namespace v8::internal |
| OLD | NEW |