Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: src/log.cc

Issue 1940: Replaced calls to functions that msvc consider deprecated. Used... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flags.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 if (FLAG_log_api || FLAG_log_code || FLAG_log_gc || 695 if (FLAG_log_api || FLAG_log_code || FLAG_log_gc ||
696 FLAG_log_handles || FLAG_log_suspect || FLAG_log_regexp) { 696 FLAG_log_handles || FLAG_log_suspect || FLAG_log_regexp) {
697 FLAG_log = true; 697 FLAG_log = true;
698 } 698 }
699 699
700 // If we're logging anything, we need to open the log file. 700 // If we're logging anything, we need to open the log file.
701 if (FLAG_log) { 701 if (FLAG_log) {
702 if (strcmp(FLAG_logfile, "-") == 0) { 702 if (strcmp(FLAG_logfile, "-") == 0) {
703 logfile_ = stdout; 703 logfile_ = stdout;
704 } else { 704 } else {
705 logfile_ = fopen(FLAG_logfile, "w"); 705 logfile_ = OS::FOpen(FLAG_logfile, "w");
706 } 706 }
707 mutex_ = OS::CreateMutex(); 707 mutex_ = OS::CreateMutex();
708 } 708 }
709 709
710 current_state_ = new VMState(OTHER); 710 current_state_ = new VMState(OTHER);
711 711
712 ticker_ = new Ticker(10); 712 ticker_ = new Ticker(10);
713 713
714 if (FLAG_sliding_state_window && sliding_state_window_ == NULL) { 714 if (FLAG_sliding_state_window && sliding_state_window_ == NULL) {
715 sliding_state_window_ = new SlidingStateWindow(); 715 sliding_state_window_ = new SlidingStateWindow();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 if (FLAG_log_state_changes) { 812 if (FLAG_log_state_changes) {
813 LOG(StringEvent("Leaving", StateToString(state_))); 813 LOG(StringEvent("Leaving", StateToString(state_)));
814 if (previous_) { 814 if (previous_) {
815 LOG(StringEvent("To", StateToString(previous_->state_))); 815 LOG(StringEvent("To", StateToString(previous_->state_)));
816 } 816 }
817 } 817 }
818 } 818 }
819 #endif 819 #endif
820 820
821 } } // namespace v8::internal 821 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flags.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698