/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/codegen/flush-instruction-cache.cc
30 строк
875 B
Michaël Zasso
deps: update V8 to 12.8.374.13
16 авг 2024, 17:03
Не верифицирован
16 авг 2024, 17:03
9d7cd9b
Код
Авторство
О чём код?
// 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. #include "src/codegen/flush-instruction-cache.h" #include "src/base/platform/mutex.h" #include "src/codegen/cpu-features.h" #include "src/execution/simulator.h" namespace v8 { namespace internal { void FlushInstructionCache(void* start, size_t size) { if (size == 0) return; if (v8_flags.jitless) return; TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "FlushInstructionCache", "start", start, "size", size); #if defined(USE_SIMULATOR) base::MutexGuard lock_guard(Simulator::i_cache_mutex()); Simulator::FlushICache(Simulator::i_cache(), start, size); #else CpuFeatures::FlushICache(start, size); #endif // USE_SIMULATOR } } // namespace internal } // namespace v8