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

Side by Side Diff: src/log.h

Issue 2248673002: Avoid accessing Isolate in source position logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « src/interpreter/bytecode-array-writer.cc ('k') | src/log.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_LOG_H_ 5 #ifndef V8_LOG_H_
6 #define V8_LOG_H_ 6 #define V8_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 Name* source, int line, int column); 172 Name* source, int line, int column);
173 void CodeCreateEvent(CodeEventListener::LogEventsAndTags tag, 173 void CodeCreateEvent(CodeEventListener::LogEventsAndTags tag,
174 AbstractCode* code, int args_count); 174 AbstractCode* code, int args_count);
175 // Emits a code deoptimization event. 175 // Emits a code deoptimization event.
176 void CodeDisableOptEvent(AbstractCode* code, SharedFunctionInfo* shared); 176 void CodeDisableOptEvent(AbstractCode* code, SharedFunctionInfo* shared);
177 void CodeMovingGCEvent(); 177 void CodeMovingGCEvent();
178 // Emits a code create event for a RegExp. 178 // Emits a code create event for a RegExp.
179 void RegExpCodeCreateEvent(AbstractCode* code, String* source); 179 void RegExpCodeCreateEvent(AbstractCode* code, String* source);
180 // Emits a code move event. 180 // Emits a code move event.
181 void CodeMoveEvent(AbstractCode* from, Address to); 181 void CodeMoveEvent(AbstractCode* from, Address to);
182 // Emits a code line info add event with Postion type. 182 // Emits a code line info record event.
183 void CodeLinePosInfoAddPositionEvent(void* jit_handler_data, 183 void CodeLinePosInfoRecordEvent(AbstractCode* code,
184 int pc_offset, 184 ByteArray* source_position_table);
185 int position);
186 // Emits a code line info add event with StatementPostion type.
187 void CodeLinePosInfoAddStatementPositionEvent(void* jit_handler_data,
188 int pc_offset,
189 int position);
190 // Emits a code line info start to record event
191 void CodeStartLinePosInfoRecordEvent(void** jit_handler_data_out);
192 // Emits a code line info finish record event.
193 // It's the callee's responsibility to dispose the parameter jit_handler_data.
194 void CodeEndLinePosInfoRecordEvent(AbstractCode* code,
195 void* jit_handler_data);
196 185
197 void SharedFunctionInfoMoveEvent(Address from, Address to); 186 void SharedFunctionInfoMoveEvent(Address from, Address to);
198 187
199 void CodeNameEvent(Address addr, int pos, const char* code_name); 188 void CodeNameEvent(Address addr, int pos, const char* code_name);
200 189
201 void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta); 190 void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta);
202 191
203 // ==== Events logged by --log-gc. ==== 192 // ==== Events logged by --log-gc. ====
204 // Heap sampling events: start, end, and individual types. 193 // Heap sampling events: start, end, and individual types.
205 void HeapSampleBeginEvent(const char* space, const char* kind); 194 void HeapSampleBeginEvent(const char* space, const char* kind);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 std::unique_ptr<ProfilerListener> profiler_listener_; 328 std::unique_ptr<ProfilerListener> profiler_listener_;
340 List<CodeEventListener*> listeners_; 329 List<CodeEventListener*> listeners_;
341 330
342 // Guards against multiple calls to TearDown() that can happen in some tests. 331 // Guards against multiple calls to TearDown() that can happen in some tests.
343 // 'true' between SetUp() and TearDown(). 332 // 'true' between SetUp() and TearDown().
344 bool is_initialized_; 333 bool is_initialized_;
345 334
346 base::ElapsedTimer timer_; 335 base::ElapsedTimer timer_;
347 336
348 friend class CpuProfiler; 337 friend class CpuProfiler;
349 friend class SourcePositionTableBuilder;
350 }; 338 };
351 339
352 #define TIMER_EVENTS_LIST(V) \ 340 #define TIMER_EVENTS_LIST(V) \
353 V(RecompileSynchronous, true) \ 341 V(RecompileSynchronous, true) \
354 V(RecompileConcurrent, true) \ 342 V(RecompileConcurrent, true) \
355 V(CompileIgnition, true) \ 343 V(CompileIgnition, true) \
356 V(CompileFullCode, true) \ 344 V(CompileFullCode, true) \
357 V(OptimizeCode, true) \ 345 V(OptimizeCode, true) \
358 V(CompileCode, true) \ 346 V(CompileCode, true) \
359 V(DeoptimizeCode, true) \ 347 V(DeoptimizeCode, true) \
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 406
419 NameBuffer* name_buffer_; 407 NameBuffer* name_buffer_;
420 }; 408 };
421 409
422 410
423 } // namespace internal 411 } // namespace internal
424 } // namespace v8 412 } // namespace v8
425 413
426 414
427 #endif // V8_LOG_H_ 415 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-writer.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698