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
14
15namespace v8 {
16namespace internal {
17
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
31template <class TimerEvent>
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_
void LogTimerEvent(v8::LogEventStatus se)
Definition log-inl.h:32
static V8_INLINE void CallEventLogger(Isolate *isolate, const char *name, v8::LogEventStatus se, bool expose_to_api)
Definition log.h:262
static V8_INLINE CodeTag ToNativeByScript(CodeTag tag, Tagged< Script > script)
Definition log-inl.h:18
LogEventStatus