v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cpu-ppc.cc
Go to the documentation of this file.
1// Copyright 2014 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
5// CPU specific code for ppc independent of OS goes here.
6
7#if V8_TARGET_ARCH_PPC64
8
10
11namespace v8 {
12namespace internal {
13
14void CpuFeatures::FlushICache(void* buffer, size_t size) {
15#if !defined(USE_SIMULATOR)
16 __asm__ __volatile__(
17 "sync \n"
18 "icbi 0, %0 \n"
19 "isync \n"
20 : /* no output */
21 : "r"(buffer)
22 : "memory");
23#endif // !USE_SIMULATOR
24}
25} // namespace internal
26} // namespace v8
27
28#endif // V8_TARGET_ARCH_PPC64
static void FlushICache(void *start, size_t size)
Definition cpu-riscv.cc:15