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

Side by Side Diff: src/log.cc

Issue 318983005: Log IC misses as timer events. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/log.h ('k') | tools/profviz/composer.js » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdarg.h> 5 #include <stdarg.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 1122
1123 1123
1124 const char* Logger::TimerEventScope::v8_recompile_synchronous = 1124 const char* Logger::TimerEventScope::v8_recompile_synchronous =
1125 "V8.RecompileSynchronous"; 1125 "V8.RecompileSynchronous";
1126 const char* Logger::TimerEventScope::v8_recompile_concurrent = 1126 const char* Logger::TimerEventScope::v8_recompile_concurrent =
1127 "V8.RecompileConcurrent"; 1127 "V8.RecompileConcurrent";
1128 const char* Logger::TimerEventScope::v8_compile_full_code = 1128 const char* Logger::TimerEventScope::v8_compile_full_code =
1129 "V8.CompileFullCode"; 1129 "V8.CompileFullCode";
1130 const char* Logger::TimerEventScope::v8_execute = "V8.Execute"; 1130 const char* Logger::TimerEventScope::v8_execute = "V8.Execute";
1131 const char* Logger::TimerEventScope::v8_external = "V8.External"; 1131 const char* Logger::TimerEventScope::v8_external = "V8.External";
1132 const char* Logger::TimerEventScope::v8_ic_miss = "V8.IcMiss";
1132 1133
1133 1134
1134 void Logger::LogRegExpSource(Handle<JSRegExp> regexp) { 1135 void Logger::LogRegExpSource(Handle<JSRegExp> regexp) {
1135 // Prints "/" + re.source + "/" + 1136 // Prints "/" + re.source + "/" +
1136 // (re.global?"g":"") + (re.ignorecase?"i":"") + (re.multiline?"m":"") 1137 // (re.global?"g":"") + (re.ignorecase?"i":"") + (re.multiline?"m":"")
1137 Log::MessageBuilder msg(log_); 1138 Log::MessageBuilder msg(log_);
1138 1139
1139 Handle<Object> source = Object::GetProperty( 1140 Handle<Object> source = Object::GetProperty(
1140 isolate_, regexp, "source").ToHandleChecked(); 1141 isolate_, regexp, "source").ToHandleChecked();
1141 if (!source->IsString()) { 1142 if (!source->IsString()) {
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 if (jit_logger_) { 2117 if (jit_logger_) {
2117 removeCodeEventListener(jit_logger_); 2118 removeCodeEventListener(jit_logger_);
2118 delete jit_logger_; 2119 delete jit_logger_;
2119 jit_logger_ = NULL; 2120 jit_logger_ = NULL;
2120 } 2121 }
2121 2122
2122 return log_->Close(); 2123 return log_->Close();
2123 } 2124 }
2124 2125
2125 } } // namespace v8::internal 2126 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.h ('k') | tools/profviz/composer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698