v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
flush-instruction-cache.cc
Go to the documentation of this file.
1// Copyright 2019 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
10
11namespace v8 {
12namespace internal {
13
14void FlushInstructionCache(void* start, size_t size) {
15 if (size == 0) return;
16 if (v8_flags.jitless) return;
17
18 TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "FlushInstructionCache",
19 "start", start, "size", size);
20
21#if defined(USE_SIMULATOR)
22 base::MutexGuard lock_guard(Simulator::i_cache_mutex());
23 Simulator::FlushICache(Simulator::i_cache(), start, size);
24#else
26#endif // USE_SIMULATOR
27}
28
29} // namespace internal
30} // namespace v8
static void FlushICache(void *start, size_t size)
Definition cpu-riscv.cc:15
int start
void FlushInstructionCache(void *start, size_t size)
V8_EXPORT_PRIVATE FlagValues v8_flags
#define TRACE_EVENT2(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)
#define TRACE_DISABLED_BY_DEFAULT(name)