v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
tick-counter.cc
Go to the documentation of this file.
1
// Copyright 2019 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
#include "
src/codegen/tick-counter.h
"
6
7
#include "
src/base/logging.h
"
8
#include "
src/base/macros.h
"
9
#include "
src/heap/local-heap.h
"
10
11
namespace
v8
{
12
namespace
internal
{
13
14
void
TickCounter::AttachLocalHeap
(
LocalHeap
* local_heap) {
15
DCHECK_NULL
(
local_heap_
);
16
local_heap_
= local_heap;
17
DCHECK_NOT_NULL
(
local_heap_
);
18
}
19
20
void
TickCounter::DetachLocalHeap
() {
local_heap_
=
nullptr
; }
21
22
}
// namespace internal
23
}
// namespace v8
v8::internal::LocalHeap
Definition
local-heap.h:50
v8::internal::TickCounter::local_heap_
LocalHeap * local_heap_
Definition
tick-counter.h:41
v8::internal::TickCounter::AttachLocalHeap
void AttachLocalHeap(LocalHeap *local_heap)
Definition
tick-counter.cc:14
v8::internal::TickCounter::DetachLocalHeap
void DetachLocalHeap()
Definition
tick-counter.cc:20
local-heap.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
logging.h
DCHECK_NULL
#define DCHECK_NULL(val)
Definition
logging.h:491
DCHECK_NOT_NULL
#define DCHECK_NOT_NULL(val)
Definition
logging.h:492
macros.h
tick-counter.h
src
codegen
tick-counter.cc
Generated on Sun Apr 6 2025 21:08:51 for v8 by
1.12.0