| 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 default: | 721 default: |
| 722 // All other %'s expand to themselves. | 722 // All other %'s expand to themselves. |
| 723 stream.Put('%'); | 723 stream.Put('%'); |
| 724 stream.Put(*p); | 724 stream.Put(*p); |
| 725 break; | 725 break; |
| 726 } | 726 } |
| 727 } else { | 727 } else { |
| 728 stream.Put(*p); | 728 stream.Put(*p); |
| 729 } | 729 } |
| 730 } | 730 } |
| 731 SmartPointer<char> expanded = stream.ToCString(); | 731 SmartPointer<const char> expanded = stream.ToCString(); |
| 732 logfile_ = OS::FOpen(*expanded, "w"); | 732 logfile_ = OS::FOpen(*expanded, "w"); |
| 733 } else { | 733 } else { |
| 734 logfile_ = OS::FOpen(FLAG_logfile, "w"); | 734 logfile_ = OS::FOpen(FLAG_logfile, "w"); |
| 735 } | 735 } |
| 736 mutex_ = OS::CreateMutex(); | 736 mutex_ = OS::CreateMutex(); |
| 737 } | 737 } |
| 738 | 738 |
| 739 current_state_ = new VMState(OTHER); | 739 current_state_ = new VMState(OTHER); |
| 740 | 740 |
| 741 ticker_ = new Ticker(10); | 741 ticker_ = new Ticker(10); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 if (FLAG_log_state_changes) { | 841 if (FLAG_log_state_changes) { |
| 842 LOG(StringEvent("Leaving", StateToString(state_))); | 842 LOG(StringEvent("Leaving", StateToString(state_))); |
| 843 if (previous_) { | 843 if (previous_) { |
| 844 LOG(StringEvent("To", StateToString(previous_->state_))); | 844 LOG(StringEvent("To", StateToString(previous_->state_))); |
| 845 } | 845 } |
| 846 } | 846 } |
| 847 } | 847 } |
| 848 #endif | 848 #endif |
| 849 | 849 |
| 850 } } // namespace v8::internal | 850 } } // namespace v8::internal |
| OLD | NEW |