8b57bdba59
This is a reland of 13141c8a65
... with a fix for an UB issue of passing null pointers to memcpy()
when size is zero.
TBR=leszeks@chromium.org
Original change's description:
> [zone-compr] Introduce ZoneTypeTraits and ZoneCompression
>
> Also move zone compression flags to src/common/globals.h.
>
> Bug: v8:9923
> Change-Id: Id0a77720e735e2669a1e5eef48e1b4866ad99480
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2324255
> Reviewed-by: Leszek Swirski <leszeks@chromium.org>
> Commit-Queue: Igor Sheludko <ishell@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#69160}
Bug: v8:9923
Change-Id: I2245b81516c39ccea262c282c659ef601af57abf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2332165
Commit-Queue: Igor Sheludko (OOO Aug 3-17) <ishell@chromium.org>
Reviewed-by: Igor Sheludko (OOO Aug 3-17) <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69166}
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
// Copyright 2017 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_UNITTESTS_CODE_STUB_ASSEMBLER_UNITTEST_H_
|
|
#define V8_UNITTESTS_CODE_STUB_ASSEMBLER_UNITTEST_H_
|
|
|
|
#include "src/codegen/code-stub-assembler.h"
|
|
#include "test/unittests/test-utils.h"
|
|
#include "testing/gmock-support.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
class CodeStubAssemblerTest : public TestWithIsolateAndZone {
|
|
public:
|
|
CodeStubAssemblerTest() : TestWithIsolateAndZone(kCompressGraphZone) {}
|
|
~CodeStubAssemblerTest() override = default;
|
|
};
|
|
|
|
class CodeStubAssemblerTestState : public compiler::CodeAssemblerState {
|
|
public:
|
|
explicit CodeStubAssemblerTestState(CodeStubAssemblerTest* test);
|
|
};
|
|
|
|
class CodeStubAssemblerForTest : public CodeStubAssembler {
|
|
public:
|
|
explicit CodeStubAssemblerForTest(CodeStubAssemblerTestState* state)
|
|
: CodeStubAssembler(state) {}
|
|
};
|
|
|
|
} // namespace internal
|
|
} // namespace v8
|
|
|
|
#endif // V8_UNITTESTS_CODE_STUB_ASSEMBLER_UNITTEST_H_
|