8466b71ad8
Linkage-related methods were declared in wasm-compiler.h and implemented in wasm-linkage.cc. This required all users of e.g. wasm call descriptors to include the whole wasm compiler header. Also, some wasm linkage information is independent of turbofan and also used outside of the compiler directory. This CL splits off wasm-linkage.h (with minimal includes) and puts it in src/wasm. This allows to use that information without including compiler headers (will clean up several uses in follow-up CLs). R=mstarzinger@chromium.org, titzer@chromium.org Bug: v8:7570 Change-Id: Ifcae70b4ea7932cda30953b325c2b87c4176c598 Reviewed-on: https://chromium-review.googlesource.com/1013701 Reviewed-by: Ben Titzer <titzer@chromium.org> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org> Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#52849}
31 lines
832 B
C
31 lines
832 B
C
// Copyright 2018 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_ASSEMBLER_ARCH_H_
|
|
#define V8_ASSEMBLER_ARCH_H_
|
|
|
|
#include "src/assembler.h"
|
|
|
|
#if V8_TARGET_ARCH_IA32
|
|
#include "src/ia32/assembler-ia32.h"
|
|
#elif V8_TARGET_ARCH_X64
|
|
#include "src/x64/assembler-x64.h"
|
|
#elif V8_TARGET_ARCH_ARM64
|
|
#include "src/arm64/assembler-arm64.h"
|
|
#elif V8_TARGET_ARCH_ARM
|
|
#include "src/arm/assembler-arm.h"
|
|
#elif V8_TARGET_ARCH_PPC
|
|
#include "src/ppc/assembler-ppc.h"
|
|
#elif V8_TARGET_ARCH_MIPS
|
|
#include "src/mips/assembler-mips.h"
|
|
#elif V8_TARGET_ARCH_MIPS64
|
|
#include "src/mips64/assembler-mips64.h"
|
|
#elif V8_TARGET_ARCH_S390
|
|
#include "src/s390/assembler-s390.h"
|
|
#else
|
|
#error Unknown architecture.
|
|
#endif
|
|
|
|
#endif // V8_ASSEMBLER_ARCH_H_
|