v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
weak-object-worklists.cc
Go to the documentation of this file.
1// Copyright 2020 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
6
7#include "src/heap/heap-inl.h"
9#include "src/heap/heap.h"
17
18namespace v8 {
19
20namespace internal {
21
24#define INIT_LOCAL_WORKLIST(_, name, __) , name##_local(weak_objects->name)
27{
28}
29
31#define INVOKE_PUBLISH(_, name, __) name##_local.Publish();
33#undef INVOKE_PUBLISH
34}
35
37#define INVOKE_CLEAR(_, name, __) name.Clear();
39#undef INVOKE_CLEAR
40}
41
42} // namespace internal
43} // namespace v8
#define _
#define INVOKE_PUBLISH(_, name, __)
#define INVOKE_CLEAR(_, name, __)
#define INIT_LOCAL_WORKLIST(_, name, __)
#define WEAK_OBJECT_WORKLISTS(F)