v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
materialized-object-store.h
Go to the documentation of this file.
1
// Copyright 2021 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_DEOPTIMIZER_MATERIALIZED_OBJECT_STORE_H_
6
#define V8_DEOPTIMIZER_MATERIALIZED_OBJECT_STORE_H_
7
8
#include <vector>
9
10
#include "
src/handles/handles.h
"
11
12
namespace
v8
{
13
namespace
internal
{
14
15
class
FixedArray
;
16
class
Isolate;
17
18
class
MaterializedObjectStore
{
19
public
:
20
explicit
MaterializedObjectStore
(
Isolate
* isolate) :
isolate_
(isolate) {}
21
22
DirectHandle<FixedArray>
Get
(
Address
fp);
23
void
Set
(
Address
fp,
DirectHandle<FixedArray>
materialized_objects);
24
bool
Remove
(
Address
fp);
25
26
private
:
27
Isolate
*
isolate
()
const
{
return
isolate_
; }
28
DirectHandle<FixedArray>
GetStackEntries
();
29
DirectHandle<FixedArray>
EnsureStackEntries
(
int
size);
30
31
int
StackIdToIndex
(
Address
fp);
32
33
Isolate
*
isolate_
;
34
std::vector<Address>
frame_fps_
;
35
};
36
37
}
// namespace internal
38
}
// namespace v8
39
40
#endif
// V8_DEOPTIMIZER_MATERIALIZED_OBJECT_STORE_H_
v8::internal::DirectHandle
Definition
handles.h:659
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::MaterializedObjectStore
Definition
materialized-object-store.h:18
v8::internal::MaterializedObjectStore::EnsureStackEntries
DirectHandle< FixedArray > EnsureStackEntries(int size)
Definition
materialized-object-store.cc:66
v8::internal::MaterializedObjectStore::GetStackEntries
DirectHandle< FixedArray > GetStackEntries()
Definition
materialized-object-store.cc:61
v8::internal::MaterializedObjectStore::Get
DirectHandle< FixedArray > Get(Address fp)
Definition
materialized-object-store.cc:15
v8::internal::MaterializedObjectStore::MaterializedObjectStore
MaterializedObjectStore(Isolate *isolate)
Definition
materialized-object-store.h:20
v8::internal::MaterializedObjectStore::Set
void Set(Address fp, DirectHandle< FixedArray > materialized_objects)
Definition
materialized-object-store.cc:25
v8::internal::MaterializedObjectStore::isolate
Isolate * isolate() const
Definition
materialized-object-store.h:27
v8::internal::MaterializedObjectStore::isolate_
Isolate * isolate_
Definition
materialized-object-store.h:33
v8::internal::MaterializedObjectStore::frame_fps_
std::vector< Address > frame_fps_
Definition
materialized-object-store.h:34
v8::internal::MaterializedObjectStore::StackIdToIndex
int StackIdToIndex(Address fp)
Definition
materialized-object-store.cc:54
v8::internal::MaterializedObjectStore::Remove
bool Remove(Address fp)
Definition
materialized-object-store.cc:37
handles.h
v8::internal::compiler::FixedArray
FixedArray
Definition
js-graph.cc:224
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::Address
Address
Definition
api-callbacks-inl.h:36
v8
Definition
api-arguments-inl.h:19
src
deoptimizer
materialized-object-store.h
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0