diff options
Diffstat (limited to 'deps/v8/src/flush-instruction-cache.h')
-rw-r--r-- | deps/v8/src/flush-instruction-cache.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/v8/src/flush-instruction-cache.h b/deps/v8/src/flush-instruction-cache.h new file mode 100644 index 0000000000..48adc5a95a --- /dev/null +++ b/deps/v8/src/flush-instruction-cache.h @@ -0,0 +1,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_ |