/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/wasm/wasm-wrapper-cache.cc
28 строк
891 B
Michaël Zasso
deps: update V8 to 14.6.202.33
24 апр 2026, 19:01
Не верифицирован
24 апр 2026, 19:01
f1e0b83
Код
Авторство
О чём код?
// Copyright 2025 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. #include "src/wasm/wasm-wrapper-cache.h" #include "src/wasm/wasm-engine.h" #include "src/wasm/wasm-import-wrapper-cache.h" #include "src/wasm/wasm-stack-wrapper-cache.h" namespace v8::internal::wasm { void WasmWrapperHandle::set_code(WasmCode* code) { #ifdef DEBUG if (code->kind() == WasmCode::Kind::kWasmStackEntryWrapper) { GetWasmStackEntryWrapperCache()->mutex_.AssertHeld(); } else { GetWasmImportWrapperCache()->mutex_.AssertHeld(); } #endif // We're taking ownership of a WasmCode object that has just been allocated // and should have a refcount of 1. code->DcheckRefCountIsOne(); DCHECK(!has_code()); code_.store(code, std::memory_order_release); } } // namespace v8::internal::wasm