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

Side by Side Diff: src/log.cc

Issue 2111793002: Simplify JIT event logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix forward declaration Created 4 years, 5 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
« no previous file with comments | « src/log.h ('k') | src/source-position-table.h » ('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 "src/log.h" 5 #include "src/log.h"
6 6
7 #include <cstdarg> 7 #include <cstdarg>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 1234
1235 void Logger::CodeLinePosInfoAddStatementPositionEvent(void* jit_handler_data, 1235 void Logger::CodeLinePosInfoAddStatementPositionEvent(void* jit_handler_data,
1236 int pc_offset, 1236 int pc_offset,
1237 int position) { 1237 int position) {
1238 JIT_LOG(AddCodeLinePosInfoEvent(jit_handler_data, 1238 JIT_LOG(AddCodeLinePosInfoEvent(jit_handler_data,
1239 pc_offset, 1239 pc_offset,
1240 position, 1240 position,
1241 JitCodeEvent::STATEMENT_POSITION)); 1241 JitCodeEvent::STATEMENT_POSITION));
1242 } 1242 }
1243 1243
1244 1244 void Logger::CodeStartLinePosInfoRecordEvent(void** jit_handler_data_out) {
1245 void Logger::CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder) { 1245 *jit_handler_data_out =
1246 if (jit_logger_ != NULL) { 1246 (jit_logger_ == NULL) ? NULL : jit_logger_->StartCodePosInfoEvent();
1247 pos_recorder->AttachJITHandlerData(jit_logger_->StartCodePosInfoEvent());
1248 }
1249 } 1247 }
1250 1248
1251 void Logger::CodeEndLinePosInfoRecordEvent(AbstractCode* code, 1249 void Logger::CodeEndLinePosInfoRecordEvent(AbstractCode* code,
1252 void* jit_handler_data) { 1250 void* jit_handler_data) {
1253 JIT_LOG(EndCodePosInfoEvent(code, jit_handler_data)); 1251 JIT_LOG(EndCodePosInfoEvent(code, jit_handler_data));
1254 } 1252 }
1255 1253
1256 1254
1257 void Logger::CodeNameEvent(Address addr, int pos, const char* code_name) { 1255 void Logger::CodeNameEvent(Address addr, int pos, const char* code_name) {
1258 if (code_name == NULL) return; // Not a code object. 1256 if (code_name == NULL) return; // Not a code object.
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1877
1880 if (profiler_listener_.get() != nullptr) { 1878 if (profiler_listener_.get() != nullptr) {
1881 removeCodeEventListener(profiler_listener_.get()); 1879 removeCodeEventListener(profiler_listener_.get());
1882 } 1880 }
1883 1881
1884 return log_->Close(); 1882 return log_->Close();
1885 } 1883 }
1886 1884
1887 } // namespace internal 1885 } // namespace internal
1888 } // namespace v8 1886 } // namespace v8
OLDNEW
« no previous file with comments | « src/log.h ('k') | src/source-position-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698