2018-11-20 14:45:08 +00:00
|
|
|
// 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.
|
|
|
|
|
2019-05-21 09:30:15 +00:00
|
|
|
#include "src/codegen/assembler-inl.h"
|
|
|
|
#include "src/codegen/macro-assembler-inl.h"
|
2019-05-22 07:55:37 +00:00
|
|
|
#include "src/execution/simulator.h"
|
2019-05-22 12:44:24 +00:00
|
|
|
#include "src/handles/handles-inl.h"
|
2018-11-20 14:45:08 +00:00
|
|
|
#include "test/cctest/cctest.h"
|
|
|
|
#include "test/common/assembler-tester.h"
|
|
|
|
|
Reland "[no-wasm] Exclude src/wasm from compilation"
This is a reland of 80f5dfda0147d6b078ae6c9d0eb947bd012bf72d. A condition
in pipeline.cc was inverted, which lead to a CSA verifier error.
Original change's description:
> [no-wasm] Exclude src/wasm from compilation
>
> This is the biggest chunk, including
> - all of src/wasm,
> - torque file for wasm objects,
> - torque file for wasm builtins,
> - wasm builtins,
> - wasm runtime functions,
> - int64 lowering,
> - simd scala lowering,
> - WasmGraphBuilder (TF graph construction for wasm),
> - wasm frame types,
> - wasm interrupts,
> - the JSWasmCall opcode,
> - wasm backing store allocation.
>
> Those components are all recursively entangled, so I found no way to
> split this change up further.
>
> Some includes that were recursively included by wasm headers needed to
> be added explicitly now.
>
> backing-store-unittest.cc is renamed to wasm-backing-store-unittest.cc
> because it only tests wasm backing stores. This file is excluded from
> no-wasm builds then.
>
> R=jkummerow@chromium.org, jgruber@chromium.org, mlippautz@chromium.org, petermarshall@chromium.org
>
> Bug: v8:11238
> Change-Id: I7558f2d12d2dd6c65128c4de7b79173668c80b2b
> Cq-Include-Trybots: luci.v8.try:v8_linux64_no_wasm_compile_rel
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2742955
> Commit-Queue: Clemens Backes <clemensb@chromium.org>
> Reviewed-by: Peter Marshall <petermarshall@chromium.org>
> Reviewed-by: Toon Verwaest <verwaest@chromium.org>
> Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
> Reviewed-by: Jakob Gruber <jgruber@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#73344}
TBR=jgruber@chromium.org
Bug: v8:11238
Change-Id: I20bd2847a59c68738b5a336cd42582b7b1499585
Cq-Include-Trybots: luci.v8.try:v8_linux64_no_wasm_compile_rel
Cq-Include-Trybots: luci.v8.try:v8_linux_verify_csa_rel_ng
Cq-Include-Trybots: luci.v8.try:v8_linux64_verify_csa_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2752867
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73348}
2021-03-11 13:42:01 +00:00
|
|
|
#if V8_ENABLE_WEBASSEMBLY
|
|
|
|
#include "src/wasm/code-space-access.h"
|
|
|
|
#endif // V8_ENABLE_WEBASSEMBLY
|
|
|
|
|
2018-11-20 14:45:08 +00:00
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
2018-11-26 14:23:44 +00:00
|
|
|
namespace test_icache {
|
2018-11-20 14:45:08 +00:00
|
|
|
|
|
|
|
using F0 = int(int);
|
|
|
|
|
|
|
|
#define __ masm.
|
|
|
|
|
|
|
|
static constexpr int kNumInstr = 100;
|
2018-11-23 15:17:42 +00:00
|
|
|
static constexpr int kNumIterations = 5;
|
|
|
|
static constexpr int kBufferSize = 8 * KB;
|
2018-11-20 14:45:08 +00:00
|
|
|
|
2019-01-17 10:23:16 +00:00
|
|
|
static void FloodWithInc(Isolate* isolate, TestingAssemblerBuffer* buffer) {
|
|
|
|
MacroAssembler masm(isolate, CodeObjectRequired::kYes, buffer->CreateView());
|
2018-11-20 14:45:08 +00:00
|
|
|
#if V8_TARGET_ARCH_IA32
|
2019-02-14 13:01:52 +00:00
|
|
|
__ mov(eax, Operand(esp, kSystemPointerSize));
|
2018-11-20 14:45:08 +00:00
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ add(eax, Immediate(1));
|
|
|
|
}
|
|
|
|
#elif V8_TARGET_ARCH_X64
|
|
|
|
__ movl(rax, arg_reg_1);
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ addl(rax, Immediate(1));
|
|
|
|
}
|
|
|
|
#elif V8_TARGET_ARCH_ARM64
|
2020-03-17 14:54:12 +00:00
|
|
|
__ CodeEntry();
|
2018-11-20 14:45:08 +00:00
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ Add(x0, x0, Operand(1));
|
|
|
|
}
|
|
|
|
#elif V8_TARGET_ARCH_ARM
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ add(r0, r0, Operand(1));
|
|
|
|
}
|
|
|
|
#elif V8_TARGET_ARCH_MIPS
|
|
|
|
__ mov(v0, a0);
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ Addu(v0, v0, Operand(1));
|
|
|
|
}
|
|
|
|
#elif V8_TARGET_ARCH_MIPS64
|
|
|
|
__ mov(v0, a0);
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ Addu(v0, v0, Operand(1));
|
|
|
|
}
|
2021-08-11 11:54:59 +00:00
|
|
|
#elif V8_TARGET_ARCH_LOONG64
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ Add_w(a0, a0, Operand(1));
|
|
|
|
}
|
2020-02-21 14:37:03 +00:00
|
|
|
#elif V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64
|
2018-11-21 20:08:53 +00:00
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ addi(r3, r3, Operand(1));
|
|
|
|
}
|
|
|
|
#elif V8_TARGET_ARCH_S390
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ agfi(r2, Operand(1));
|
|
|
|
}
|
2021-02-09 16:11:55 +00:00
|
|
|
#elif V8_TARGET_ARCH_RISCV64
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ Add32(a0, a0, Operand(1));
|
|
|
|
}
|
2018-11-20 14:45:08 +00:00
|
|
|
#else
|
|
|
|
#error Unsupported architecture
|
|
|
|
#endif
|
|
|
|
__ Ret();
|
2018-11-27 17:12:39 +00:00
|
|
|
CodeDesc desc;
|
|
|
|
masm.GetCode(isolate, &desc);
|
2018-11-20 14:45:08 +00:00
|
|
|
}
|
|
|
|
|
2019-01-17 10:23:16 +00:00
|
|
|
static void FloodWithNop(Isolate* isolate, TestingAssemblerBuffer* buffer) {
|
|
|
|
MacroAssembler masm(isolate, CodeObjectRequired::kYes, buffer->CreateView());
|
2018-11-20 14:45:08 +00:00
|
|
|
#if V8_TARGET_ARCH_IA32
|
2019-02-14 13:01:52 +00:00
|
|
|
__ mov(eax, Operand(esp, kSystemPointerSize));
|
2018-11-20 14:45:08 +00:00
|
|
|
#elif V8_TARGET_ARCH_X64
|
|
|
|
__ movl(rax, arg_reg_1);
|
2020-03-17 14:54:12 +00:00
|
|
|
#elif V8_TARGET_ARCH_ARM64
|
|
|
|
__ CodeEntry();
|
2018-11-20 14:45:08 +00:00
|
|
|
#elif V8_TARGET_ARCH_MIPS
|
|
|
|
__ mov(v0, a0);
|
|
|
|
#elif V8_TARGET_ARCH_MIPS64
|
|
|
|
__ mov(v0, a0);
|
|
|
|
#endif
|
|
|
|
for (int i = 0; i < kNumInstr; ++i) {
|
|
|
|
__ nop();
|
|
|
|
}
|
|
|
|
__ Ret();
|
2018-11-27 17:12:39 +00:00
|
|
|
CodeDesc desc;
|
|
|
|
masm.GetCode(isolate, &desc);
|
2018-11-20 14:45:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Order of operation for this test case:
|
|
|
|
// exec -> perm(RW) -> patch -> flush -> perm(RX) -> exec
|
|
|
|
TEST(TestFlushICacheOfWritable) {
|
|
|
|
Isolate* isolate = CcTest::i_isolate();
|
|
|
|
HandleScope handles(isolate);
|
2018-11-23 15:17:42 +00:00
|
|
|
|
|
|
|
for (int i = 0; i < kNumIterations; ++i) {
|
2019-01-17 10:23:16 +00:00
|
|
|
auto buffer = AllocateAssemblerBuffer(kBufferSize);
|
2018-11-23 15:17:42 +00:00
|
|
|
|
|
|
|
// Allow calling the function from C++.
|
2019-01-17 10:23:16 +00:00
|
|
|
auto f = GeneratedCode<F0>::FromBuffer(isolate, buffer->start());
|
|
|
|
|
2022-04-18 20:03:38 +00:00
|
|
|
{
|
|
|
|
AssemblerBufferWriteScope rw_buffer_scope(*buffer);
|
|
|
|
FloodWithInc(isolate, buffer.get());
|
|
|
|
FlushInstructionCache(buffer->start(), buffer->size());
|
|
|
|
}
|
2018-11-23 15:17:42 +00:00
|
|
|
CHECK_EQ(23 + kNumInstr, f.Call(23)); // Call into generated code.
|
2022-04-18 20:03:38 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
AssemblerBufferWriteScope rw_buffer_scope(*buffer);
|
|
|
|
FloodWithNop(isolate, buffer.get());
|
|
|
|
FlushInstructionCache(buffer->start(), buffer->size());
|
|
|
|
}
|
2018-11-23 15:17:42 +00:00
|
|
|
CHECK_EQ(23, f.Call(23)); // Call into generated code.
|
|
|
|
}
|
2018-11-20 14:45:08 +00:00
|
|
|
}
|
|
|
|
|
2018-11-27 10:54:07 +00:00
|
|
|
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64
|
|
|
|
// Note that this order of operations is not supported on ARM32/64 because on
|
|
|
|
// some older ARM32/64 kernels there is a bug which causes an access error on
|
2018-11-23 15:17:42 +00:00
|
|
|
// cache flush instructions to trigger access error on non-writable memory.
|
|
|
|
// See https://bugs.chromium.org/p/v8/issues/detail?id=8157
|
|
|
|
//
|
|
|
|
// Also note that this requires {kBufferSize == 8 * KB} to reproduce.
|
2018-11-27 10:54:07 +00:00
|
|
|
//
|
|
|
|
// The order of operations in V8 is akin to {TestFlushICacheOfWritable} above.
|
|
|
|
// It is hence OK to disable the below test on some architectures. Only the
|
|
|
|
// above test case should remain enabled on all architectures.
|
2018-11-23 15:17:42 +00:00
|
|
|
#define CONDITIONAL_TEST DISABLED_TEST
|
|
|
|
#else
|
|
|
|
#define CONDITIONAL_TEST TEST
|
|
|
|
#endif
|
|
|
|
|
2018-11-20 14:45:08 +00:00
|
|
|
// Order of operation for this test case:
|
|
|
|
// exec -> perm(RW) -> patch -> perm(RX) -> flush -> exec
|
2018-11-23 15:17:42 +00:00
|
|
|
CONDITIONAL_TEST(TestFlushICacheOfExecutable) {
|
2018-11-20 14:45:08 +00:00
|
|
|
Isolate* isolate = CcTest::i_isolate();
|
|
|
|
HandleScope handles(isolate);
|
2018-11-23 15:17:42 +00:00
|
|
|
|
|
|
|
for (int i = 0; i < kNumIterations; ++i) {
|
2019-01-17 10:23:16 +00:00
|
|
|
auto buffer = AllocateAssemblerBuffer(kBufferSize);
|
2018-11-23 15:17:42 +00:00
|
|
|
|
|
|
|
// Allow calling the function from C++.
|
2019-01-17 10:23:16 +00:00
|
|
|
auto f = GeneratedCode<F0>::FromBuffer(isolate, buffer->start());
|
|
|
|
|
|
|
|
CHECK(SetPermissions(GetPlatformPageAllocator(), buffer->start(),
|
|
|
|
buffer->size(), v8::PageAllocator::kReadWrite));
|
|
|
|
FloodWithInc(isolate, buffer.get());
|
|
|
|
CHECK(SetPermissions(GetPlatformPageAllocator(), buffer->start(),
|
|
|
|
buffer->size(), v8::PageAllocator::kReadExecute));
|
2019-02-06 15:30:18 +00:00
|
|
|
FlushInstructionCache(buffer->start(), buffer->size());
|
2018-11-23 15:17:42 +00:00
|
|
|
CHECK_EQ(23 + kNumInstr, f.Call(23)); // Call into generated code.
|
2019-01-17 10:23:16 +00:00
|
|
|
CHECK(SetPermissions(GetPlatformPageAllocator(), buffer->start(),
|
|
|
|
buffer->size(), v8::PageAllocator::kReadWrite));
|
|
|
|
FloodWithNop(isolate, buffer.get());
|
|
|
|
CHECK(SetPermissions(GetPlatformPageAllocator(), buffer->start(),
|
|
|
|
buffer->size(), v8::PageAllocator::kReadExecute));
|
2019-02-06 15:30:18 +00:00
|
|
|
FlushInstructionCache(buffer->start(), buffer->size());
|
2018-11-23 15:17:42 +00:00
|
|
|
CHECK_EQ(23, f.Call(23)); // Call into generated code.
|
|
|
|
}
|
2018-11-20 14:45:08 +00:00
|
|
|
}
|
|
|
|
|
2018-11-23 15:17:42 +00:00
|
|
|
#undef CONDITIONAL_TEST
|
|
|
|
|
Reland "[no-wasm] Exclude src/wasm from compilation"
This is a reland of 80f5dfda0147d6b078ae6c9d0eb947bd012bf72d. A condition
in pipeline.cc was inverted, which lead to a CSA verifier error.
Original change's description:
> [no-wasm] Exclude src/wasm from compilation
>
> This is the biggest chunk, including
> - all of src/wasm,
> - torque file for wasm objects,
> - torque file for wasm builtins,
> - wasm builtins,
> - wasm runtime functions,
> - int64 lowering,
> - simd scala lowering,
> - WasmGraphBuilder (TF graph construction for wasm),
> - wasm frame types,
> - wasm interrupts,
> - the JSWasmCall opcode,
> - wasm backing store allocation.
>
> Those components are all recursively entangled, so I found no way to
> split this change up further.
>
> Some includes that were recursively included by wasm headers needed to
> be added explicitly now.
>
> backing-store-unittest.cc is renamed to wasm-backing-store-unittest.cc
> because it only tests wasm backing stores. This file is excluded from
> no-wasm builds then.
>
> R=jkummerow@chromium.org, jgruber@chromium.org, mlippautz@chromium.org, petermarshall@chromium.org
>
> Bug: v8:11238
> Change-Id: I7558f2d12d2dd6c65128c4de7b79173668c80b2b
> Cq-Include-Trybots: luci.v8.try:v8_linux64_no_wasm_compile_rel
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2742955
> Commit-Queue: Clemens Backes <clemensb@chromium.org>
> Reviewed-by: Peter Marshall <petermarshall@chromium.org>
> Reviewed-by: Toon Verwaest <verwaest@chromium.org>
> Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
> Reviewed-by: Jakob Gruber <jgruber@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#73344}
TBR=jgruber@chromium.org
Bug: v8:11238
Change-Id: I20bd2847a59c68738b5a336cd42582b7b1499585
Cq-Include-Trybots: luci.v8.try:v8_linux64_no_wasm_compile_rel
Cq-Include-Trybots: luci.v8.try:v8_linux_verify_csa_rel_ng
Cq-Include-Trybots: luci.v8.try:v8_linux64_verify_csa_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2752867
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73348}
2021-03-11 13:42:01 +00:00
|
|
|
#if V8_ENABLE_WEBASSEMBLY
|
2018-11-20 14:45:08 +00:00
|
|
|
// Order of operation for this test case:
|
2018-11-23 15:17:42 +00:00
|
|
|
// perm(RWX) -> exec -> patch -> flush -> exec
|
2018-11-20 14:45:08 +00:00
|
|
|
TEST(TestFlushICacheOfWritableAndExecutable) {
|
|
|
|
Isolate* isolate = CcTest::i_isolate();
|
|
|
|
HandleScope handles(isolate);
|
2018-11-23 15:17:42 +00:00
|
|
|
|
|
|
|
for (int i = 0; i < kNumIterations; ++i) {
|
2021-01-19 12:21:14 +00:00
|
|
|
auto buffer = AllocateAssemblerBuffer(kBufferSize, nullptr,
|
Revert "[rwx][mac] Support fast W^X permission switching on Apple Silicon (M1)"
This reverts commit 9d31f8663ad72fdf04d15a72d83b54a6ac33b640.
Reason for revert: crashes on Mac/arm64 bots:
https://ci.chromium.org/ui/p/v8/builders/ci/V8%20Mac%20-%20arm64%20-%20debug/5923/overview
Original change's description:
> [rwx][mac] Support fast W^X permission switching on Apple Silicon (M1)
>
> ... for V8 code space. The feature is currently disabled.
>
> In order to use fast W^X permission switching we must allocate
> executable pages with readable writable executable permissions (RWX).
> However, MacOS on ARM64 ("Apple M1"/Apple Silicon) prohibits further
> permission changing of RWX memory pages. This means that the code page
> headers must be allocated with RWX permissions too because otherwise
> it wouldn't be possible to allocate a large code page over the freed
> regular code page and vice versa.
>
> When enabled, the new machinery works as follows:
>
> 1) when memory region is reserved for allocating executable pages, the
> whole region is committed with RWX permissions and then decommitted,
> 2) since reconfiguration of RWX page permissions is not allowed on
> MacOS on ARM64 ("Apple M1"/Apple Silicon), there must be no attempts
> to change them,
> 3) the request to set RWX permissions in the executable page region
> just recommits the pages without changing permissions (see (1), they
> were already allocated as RWX and then discarded),
> 4) in order to make executable pages inaccessible one must use
> OS::DiscardSystemPages() instead of OS::DecommitPages() or
> setting permissions to kNoAccess because the latter two are not
> allowed by the MacOS (see (2)).
> 5) since code space page headers are allocated as RWX pages it's also
> necessary to switch between W^X modes when updating the data in the
> page headers (i.e. when marking, updating stats, wiring pages in
> lists, etc.). The new CodePageHeaderModificationScope class is used
> in the respective places. On unrelated configurations it's a no-op.
>
> The fast permission switching can't be used for V8 configuration with
> enabled pointer compression and disabled external code space because
> a) the pointer compression cage has to be reserved with MAP_JIT flag
> which is too expensive,
> b) in case of shared pointer compression cage if the code range will
> be deleted while the cage is still alive then attempt to configure
> permissions of pages that were previously set to RWX will fail.
>
> This also CL extends the unmapper unit tests with permissions tracking
> for discarded pages.
>
> Bug: v8:12797
> Change-Id: Idb28cbc481306477589eee9962d2e75167d87c61
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3579303
> Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
> Reviewed-by: Clemens Backes <clemensb@chromium.org>
> Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
> Commit-Queue: Igor Sheludko <ishell@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#80238}
Bug: v8:12797
Change-Id: Ic07948e036db36326d464a2a901d052aa060a406
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3611665
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80239}
2022-04-27 23:28:34 +00:00
|
|
|
VirtualMemory::kMapAsJittable);
|
2018-11-23 15:17:42 +00:00
|
|
|
|
|
|
|
// Allow calling the function from C++.
|
2019-01-17 10:23:16 +00:00
|
|
|
auto f = GeneratedCode<F0>::FromBuffer(isolate, buffer->start());
|
2018-11-23 15:17:42 +00:00
|
|
|
|
2022-04-18 20:03:38 +00:00
|
|
|
buffer->MakeWritableAndExecutable();
|
|
|
|
|
2021-07-15 10:30:47 +00:00
|
|
|
{
|
2022-04-18 20:03:38 +00:00
|
|
|
RwxMemoryWriteScopeForTesting rw_scope;
|
2021-07-15 10:30:47 +00:00
|
|
|
FloodWithInc(isolate, buffer.get());
|
|
|
|
FlushInstructionCache(buffer->start(), buffer->size());
|
|
|
|
}
|
2018-11-23 15:17:42 +00:00
|
|
|
CHECK_EQ(23 + kNumInstr, f.Call(23)); // Call into generated code.
|
2021-07-15 10:30:47 +00:00
|
|
|
{
|
2022-04-18 20:03:38 +00:00
|
|
|
RwxMemoryWriteScopeForTesting rw_scope;
|
2021-07-15 10:30:47 +00:00
|
|
|
FloodWithNop(isolate, buffer.get());
|
|
|
|
FlushInstructionCache(buffer->start(), buffer->size());
|
|
|
|
}
|
2018-11-23 15:17:42 +00:00
|
|
|
CHECK_EQ(23, f.Call(23)); // Call into generated code.
|
|
|
|
}
|
2018-11-20 14:45:08 +00:00
|
|
|
}
|
Reland "[no-wasm] Exclude src/wasm from compilation"
This is a reland of 80f5dfda0147d6b078ae6c9d0eb947bd012bf72d. A condition
in pipeline.cc was inverted, which lead to a CSA verifier error.
Original change's description:
> [no-wasm] Exclude src/wasm from compilation
>
> This is the biggest chunk, including
> - all of src/wasm,
> - torque file for wasm objects,
> - torque file for wasm builtins,
> - wasm builtins,
> - wasm runtime functions,
> - int64 lowering,
> - simd scala lowering,
> - WasmGraphBuilder (TF graph construction for wasm),
> - wasm frame types,
> - wasm interrupts,
> - the JSWasmCall opcode,
> - wasm backing store allocation.
>
> Those components are all recursively entangled, so I found no way to
> split this change up further.
>
> Some includes that were recursively included by wasm headers needed to
> be added explicitly now.
>
> backing-store-unittest.cc is renamed to wasm-backing-store-unittest.cc
> because it only tests wasm backing stores. This file is excluded from
> no-wasm builds then.
>
> R=jkummerow@chromium.org, jgruber@chromium.org, mlippautz@chromium.org, petermarshall@chromium.org
>
> Bug: v8:11238
> Change-Id: I7558f2d12d2dd6c65128c4de7b79173668c80b2b
> Cq-Include-Trybots: luci.v8.try:v8_linux64_no_wasm_compile_rel
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2742955
> Commit-Queue: Clemens Backes <clemensb@chromium.org>
> Reviewed-by: Peter Marshall <petermarshall@chromium.org>
> Reviewed-by: Toon Verwaest <verwaest@chromium.org>
> Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
> Reviewed-by: Jakob Gruber <jgruber@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#73344}
TBR=jgruber@chromium.org
Bug: v8:11238
Change-Id: I20bd2847a59c68738b5a336cd42582b7b1499585
Cq-Include-Trybots: luci.v8.try:v8_linux64_no_wasm_compile_rel
Cq-Include-Trybots: luci.v8.try:v8_linux_verify_csa_rel_ng
Cq-Include-Trybots: luci.v8.try:v8_linux64_verify_csa_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2752867
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73348}
2021-03-11 13:42:01 +00:00
|
|
|
#endif // V8_ENABLE_WEBASSEMBLY
|
2018-11-20 14:45:08 +00:00
|
|
|
|
|
|
|
#undef __
|
|
|
|
|
2018-11-26 14:23:44 +00:00
|
|
|
} // namespace test_icache
|
2018-11-20 14:45:08 +00:00
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|