/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/codegen/atomic-memory-order.h
36 строк
965 B
Michaël Zasso
deps: update V8 to 14.6.202.33
24 апр 2026, 19:01
Не верифицирован
24 апр 2026, 19:01
f1e0b83
Код
Авторство
О чём код?
// 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_CODEGEN_ATOMIC_MEMORY_ORDER_H_ #define V8_CODEGEN_ATOMIC_MEMORY_ORDER_H_ #include <ostream> #include "src/base/logging.h" namespace v8 { namespace internal { // Atomic memory orders supported by the compiler. // The numeric values must match the encoding in Wasm wire bytes. enum class AtomicMemoryOrder : uint8_t { kSeqCst = 0, kAcqRel = 1 }; inline size_t hash_value(AtomicMemoryOrder order) { return static_cast<uint8_t>(order); } inline std::ostream& operator<<(std::ostream& os, AtomicMemoryOrder order) { switch (order) { case AtomicMemoryOrder::kSeqCst: return os << "kSeqCst"; case AtomicMemoryOrder::kAcqRel: return os << "kAcqRel"; } UNREACHABLE(); } } // namespace internal } // namespace v8 #endif // V8_CODEGEN_ATOMIC_MEMORY_ORDER_H_