v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
log-inl.h
Go to the documentation of this file.
1
// Copyright 2006-2009 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef V8_LOGGING_LOG_INL_H_
6
#define V8_LOGGING_LOG_INL_H_
7
8
#include "
src/logging/log.h
"
9
// Include the non-inl header before the rest of the headers.
10
11
#include "
src/execution/isolate.h
"
12
#include "
src/objects/objects-inl.h
"
13
#include "
src/tracing/trace-event.h
"
14
15
namespace
v8
{
16
namespace
internal
{
17
18
LogEventListener::CodeTag
V8FileLogger::ToNativeByScript
(
19
LogEventListener::CodeTag
tag,
Tagged<Script>
script) {
20
if
(script->type() !=
Script::Type::kNative
)
return
tag;
21
switch
(tag) {
22
case
LogEventListener::CodeTag::kFunction:
23
return
LogEventListener::CodeTag::kNativeFunction;
24
case
LogEventListener::CodeTag::kScript:
25
return
LogEventListener::CodeTag::kNativeScript;
26
default
:
27
return
tag;
28
}
29
}
30
31
template
<
class
TimerEvent>
32
void
TimerEventScope<TimerEvent>::LogTimerEvent
(
v8::LogEventStatus
se) {
33
V8FileLogger::CallEventLogger
(
isolate_
, TimerEvent::name(), se,
34
TimerEvent::expose_to_api());
35
}
36
37
}
// namespace internal
38
}
// namespace v8
39
40
#endif
// V8_LOGGING_LOG_INL_H_
isolate_
Isolate * isolate_
Definition
api-natives.cc:37
v8::internal::LogEventListener::CodeTag
CodeTag
Definition
code-events.h:65
v8::internal::Script::Type::kNative
@ kNative
v8::internal::Tagged
Definition
waiter-queue-node.h:21
v8::internal::TimerEventScope::LogTimerEvent
void LogTimerEvent(v8::LogEventStatus se)
Definition
log-inl.h:32
v8::internal::V8FileLogger::CallEventLogger
static V8_INLINE void CallEventLogger(Isolate *isolate, const char *name, v8::LogEventStatus se, bool expose_to_api)
Definition
log.h:262
v8::internal::V8FileLogger::ToNativeByScript
static V8_INLINE CodeTag ToNativeByScript(CodeTag tag, Tagged< Script > script)
Definition
log-inl.h:18
isolate.h
log.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
v8::LogEventStatus
LogEventStatus
Definition
v8-callbacks.h:239
objects-inl.h
trace-event.h
src
logging
log-inl.h
Generated on Sun Apr 6 2025 21:08:54 for v8 by
1.12.0