/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/execution/isolate-utils-inl.h
31 строка
941 B
Michaël Zasso
deps: update V8 to 14.1.146.11
04 окт 2025, 19:47
Не верифицирован
04 окт 2025, 19:47
7772a2d
Код
Авторство
О чём код?
// Copyright 2019 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_EXECUTION_ISOLATE_UTILS_INL_H_ #define V8_EXECUTION_ISOLATE_UTILS_INL_H_ #include "src/execution/isolate-utils.h" // Include the non-inl header before the rest of the headers. #include "src/common/ptr-compr-inl.h" #include "src/execution/isolate.h" #include "src/heap/heap-inl.h" #include "src/sandbox/isolate.h" namespace v8::internal { V8_INLINE bool GetIsolateFromHeapObject(Tagged<HeapObject> object, Isolate** isolate) { MemoryChunk* chunk = MemoryChunk::FromHeapObject(object); if (chunk->InReadOnlySpace()) { *isolate = nullptr; return false; } *isolate = Isolate::FromHeap(chunk->Metadata()->heap()); return true; } } // namespace v8::internal #endif // V8_EXECUTION_ISOLATE_UTILS_INL_H_