/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/deoptimizer/materialized-object-store.h
40 строк
1015 B
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2021 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_DEOPTIMIZER_MATERIALIZED_OBJECT_STORE_H_ #define V8_DEOPTIMIZER_MATERIALIZED_OBJECT_STORE_H_ #include <vector> #include "src/handles/handles.h" namespace v8 { namespace internal { class FixedArray; class Isolate; class MaterializedObjectStore { public: explicit MaterializedObjectStore(Isolate* isolate) : isolate_(isolate) {} DirectHandle<FixedArray> Get(Address fp); void Set(Address fp, DirectHandle<FixedArray> materialized_objects); bool Remove(Address fp); private: Isolate* isolate() const { return isolate_; } DirectHandle<FixedArray> GetStackEntries(); DirectHandle<FixedArray> EnsureStackEntries(int size); int StackIdToIndex(Address fp); Isolate* isolate_; std::vector<Address> frame_fps_; }; } // namespace internal } // namespace v8 #endif // V8_DEOPTIMIZER_MATERIALIZED_OBJECT_STORE_H_