aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/flush-instruction-cache.h
blob: 48adc5a95ac784ebcb72dc309b228883b3b5dc16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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.

#ifndef V8_FLUSH_INSTRUCTION_CACHE_H_
#define V8_FLUSH_INSTRUCTION_CACHE_H_

#include "include/v8-internal.h"
#include "src/base/macros.h"

namespace v8 {
namespace internal {

V8_EXPORT_PRIVATE void FlushInstructionCache(void* start, size_t size);
V8_EXPORT_PRIVATE V8_INLINE void FlushInstructionCache(Address start,
                                                       size_t size) {
  return FlushInstructionCache(reinterpret_cast<void*>(start), size);
}

}  // namespace internal
}  // namespace v8

#endif  // V8_FLUSH_INSTRUCTION_CACHE_H_