v8/src/flush-instruction-cache.h
Sigurd Schneider 0c20a4c6aa [cleanup] Move Code class out of objects.cc
Drive-by: Refactor FlushInstructionCache to its own header. This removes
dependencies of objects.cc and code.cc

Bug: v8:8562
Change-Id: If23f3b9d4f2068e08c61c0f4b070ecfe1b9a6cc0
Reviewed-on: https://chromium-review.googlesource.com/c/1456081
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59435}
2019-02-07 12:37:06 +00:00

24 lines
716 B
C++

// 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_