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

Side by Side Diff: src/log.cc

Issue 160632: Fix Windows build (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 FLAG_log_code = false; 982 FLAG_log_code = false;
983 // Must be the same message as Log::kDynamicBufferSeal. 983 // Must be the same message as Log::kDynamicBufferSeal.
984 LOG(UncheckedStringEvent("profiler", "pause")); 984 LOG(UncheckedStringEvent("profiler", "pause"));
985 } 985 }
986 } 986 }
987 if (modules_to_disable & 987 if (modules_to_disable &
988 (PROFILER_MODULE_HEAP_STATS | PROFILER_MODULE_JS_CONSTRUCTORS)) { 988 (PROFILER_MODULE_HEAP_STATS | PROFILER_MODULE_JS_CONSTRUCTORS)) {
989 FLAG_log_gc = false; 989 FLAG_log_gc = false;
990 } 990 }
991 // Turn off logging if no active modules remain. 991 // Turn off logging if no active modules remain.
992 if (active_modules & ~flags == PROFILER_MODULE_NONE) { 992 if ((active_modules & ~flags) == PROFILER_MODULE_NONE) {
993 is_logging_ = false; 993 is_logging_ = false;
994 } 994 }
995 } 995 }
996 996
997 997
998 void Logger::ResumeProfiler(int flags) { 998 void Logger::ResumeProfiler(int flags) {
999 if (!Log::IsEnabled()) return; 999 if (!Log::IsEnabled()) return;
1000 const int modules_to_enable = ~GetActiveProfilerModules() & flags; 1000 const int modules_to_enable = ~GetActiveProfilerModules() & flags;
1001 if (modules_to_enable != PROFILER_MODULE_NONE) { 1001 if (modules_to_enable != PROFILER_MODULE_NONE) {
1002 is_logging_ = true; 1002 is_logging_ = true;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 // Otherwise, if the sliding state window computation has not been 1250 // Otherwise, if the sliding state window computation has not been
1251 // started we do it now. 1251 // started we do it now.
1252 if (sliding_state_window_ == NULL) { 1252 if (sliding_state_window_ == NULL) {
1253 sliding_state_window_ = new SlidingStateWindow(); 1253 sliding_state_window_ = new SlidingStateWindow();
1254 } 1254 }
1255 #endif 1255 #endif
1256 } 1256 }
1257 1257
1258 1258
1259 } } // namespace v8::internal 1259 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698