2551f73eeb
This makes jumbo_file_merge_limit=50 work again. Bug: chromium:770684 Change-Id: I5db6566da876d71ea6ba50ff03b7652074b0a35f Reviewed-on: https://chromium-review.googlesource.com/725818 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Mostyn Bramley-Moore <mostynb@vewd.com> Cr-Commit-Position: refs/heads/master@{#48728}
75 lines
2.7 KiB
C++
75 lines
2.7 KiB
C++
// Copyright 2015 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_INTERPRETER_INTERPRETER_ASSEMBLER_UNITTEST_H_
|
|
#define V8_UNITTESTS_INTERPRETER_INTERPRETER_ASSEMBLER_UNITTEST_H_
|
|
|
|
#include "src/compiler/code-assembler.h"
|
|
#include "src/compiler/machine-operator.h"
|
|
#include "src/interpreter/interpreter-assembler.h"
|
|
#include "test/unittests/test-utils.h"
|
|
#include "testing/gmock-support.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
namespace interpreter {
|
|
namespace interpreter_assembler_unittest {
|
|
|
|
using ::testing::Matcher;
|
|
|
|
class InterpreterAssemblerTest;
|
|
|
|
class InterpreterAssemblerTestState : public compiler::CodeAssemblerState {
|
|
public:
|
|
InterpreterAssemblerTestState(InterpreterAssemblerTest* test,
|
|
Bytecode bytecode);
|
|
};
|
|
|
|
class InterpreterAssemblerTest : public TestWithIsolateAndZone {
|
|
public:
|
|
InterpreterAssemblerTest() {}
|
|
~InterpreterAssemblerTest() override {}
|
|
|
|
class InterpreterAssemblerForTest final : public InterpreterAssembler {
|
|
public:
|
|
InterpreterAssemblerForTest(
|
|
InterpreterAssemblerTestState* state, Bytecode bytecode,
|
|
OperandScale operand_scale = OperandScale::kSingle)
|
|
: InterpreterAssembler(state, bytecode, operand_scale) {}
|
|
~InterpreterAssemblerForTest();
|
|
|
|
Matcher<compiler::Node*> IsLoad(
|
|
const Matcher<compiler::LoadRepresentation>& rep_matcher,
|
|
const Matcher<compiler::Node*>& base_matcher,
|
|
const Matcher<compiler::Node*>& index_matcher);
|
|
Matcher<compiler::Node*> IsStore(
|
|
const Matcher<compiler::StoreRepresentation>& rep_matcher,
|
|
const Matcher<compiler::Node*>& base_matcher,
|
|
const Matcher<compiler::Node*>& index_matcher,
|
|
const Matcher<compiler::Node*>& value_matcher);
|
|
|
|
Matcher<compiler::Node*> IsUnsignedByteOperand(int offset);
|
|
Matcher<compiler::Node*> IsSignedByteOperand(int offset);
|
|
Matcher<compiler::Node*> IsUnsignedShortOperand(int offset);
|
|
Matcher<compiler::Node*> IsSignedShortOperand(int offset);
|
|
Matcher<compiler::Node*> IsUnsignedQuadOperand(int offset);
|
|
Matcher<compiler::Node*> IsSignedQuadOperand(int offset);
|
|
|
|
Matcher<compiler::Node*> IsSignedOperand(int offset,
|
|
OperandSize operand_size);
|
|
Matcher<compiler::Node*> IsUnsignedOperand(int offset,
|
|
OperandSize operand_size);
|
|
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(InterpreterAssemblerForTest);
|
|
};
|
|
};
|
|
|
|
} // namespace interpreter_assembler_unittest
|
|
} // namespace interpreter
|
|
} // namespace internal
|
|
} // namespace v8
|
|
|
|
#endif // V8_UNITTESTS_INTERPRETER_INTERPRETER_ASSEMBLER_UNITTEST_H_
|