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

Side by Side Diff: src/log.cc

Issue 177493002: Introduce SynchronizedScope to allow heap access from compiler thread. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 1126
1127 void Logger::TimerEventScope::LogTimerEvent(StartEnd se) { 1127 void Logger::TimerEventScope::LogTimerEvent(StartEnd se) {
1128 LOG(isolate_, TimerEvent(se, name_)); 1128 LOG(isolate_, TimerEvent(se, name_));
1129 } 1129 }
1130 1130
1131 1131
1132 const char* Logger::TimerEventScope::v8_recompile_synchronous = 1132 const char* Logger::TimerEventScope::v8_recompile_synchronous =
1133 "V8.RecompileSynchronous"; 1133 "V8.RecompileSynchronous";
1134 const char* Logger::TimerEventScope::v8_recompile_concurrent = 1134 const char* Logger::TimerEventScope::v8_recompile_concurrent =
1135 "V8.RecompileConcurrent"; 1135 "V8.RecompileConcurrent";
1136 const char* Logger::TimerEventScope::v8_recompile_synchronized =
1137 "V8.RecompileSynchronized";
1136 const char* Logger::TimerEventScope::v8_compile_full_code = 1138 const char* Logger::TimerEventScope::v8_compile_full_code =
1137 "V8.CompileFullCode"; 1139 "V8.CompileFullCode";
1138 const char* Logger::TimerEventScope::v8_execute = "V8.Execute"; 1140 const char* Logger::TimerEventScope::v8_execute = "V8.Execute";
1139 const char* Logger::TimerEventScope::v8_external = "V8.External"; 1141 const char* Logger::TimerEventScope::v8_external = "V8.External";
1140 1142
1141 1143
1142 void Logger::LogRegExpSource(Handle<JSRegExp> regexp) { 1144 void Logger::LogRegExpSource(Handle<JSRegExp> regexp) {
1143 // Prints "/" + re.source + "/" + 1145 // Prints "/" + re.source + "/" +
1144 // (re.global?"g":"") + (re.ignorecase?"i":"") + (re.multiline?"m":"") 1146 // (re.global?"g":"") + (re.ignorecase?"i":"") + (re.multiline?"m":"")
1145 Log::MessageBuilder msg(log_); 1147 Log::MessageBuilder msg(log_);
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 if (jit_logger_) { 2155 if (jit_logger_) {
2154 removeCodeEventListener(jit_logger_); 2156 removeCodeEventListener(jit_logger_);
2155 delete jit_logger_; 2157 delete jit_logger_;
2156 jit_logger_ = NULL; 2158 jit_logger_ = NULL;
2157 } 2159 }
2158 2160
2159 return log_->Close(); 2161 return log_->Close();
2160 } 2162 }
2161 2163
2162 } } // namespace v8::internal 2164 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.h ('k') | src/optimizing-compiler-thread.h » ('j') | src/optimizing-compiler-thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698