diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-02-11 19:03:35 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-02-11 19:09:18 +0100 |
commit | c7b329225126ad3b9eeb2408e0f0801f1aea5eb1 (patch) | |
tree | 193c193111d5f302031ad345bc94d17a3f67bf66 /deps/v8/test/unittests/interpreter | |
parent | 6ea9af9906cd74ed07ca05cf6aa44382025a6044 (diff) | |
download | node-new-c7b329225126ad3b9eeb2408e0f0801f1aea5eb1.tar.gz |
deps: update V8 to 8.8.278.17
PR-URL: https://github.com/nodejs/node/pull/36139
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'deps/v8/test/unittests/interpreter')
4 files changed, 15 insertions, 16 deletions
diff --git a/deps/v8/test/unittests/interpreter/bytecode-array-builder-unittest.cc b/deps/v8/test/unittests/interpreter/bytecode-array-builder-unittest.cc index 7b1150b499..9da64339d5 100644 --- a/deps/v8/test/unittests/interpreter/bytecode-array-builder-unittest.cc +++ b/deps/v8/test/unittests/interpreter/bytecode-array-builder-unittest.cc @@ -277,6 +277,9 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { // Emit GetSuperConstructor. builder.GetSuperConstructor(reg); + // Constructor check for GetSuperConstructor. + builder.ThrowIfNotSuperConstructor(reg); + // Hole checks. builder.ThrowReferenceErrorIfHole(name) .ThrowSuperAlreadyCalledIfNotHole() @@ -532,11 +535,7 @@ TEST_F(BytecodeArrayBuilderTest, Parameters) { Register receiver(builder.Receiver()); Register param8(builder.Parameter(8)); -#ifdef V8_REVERSE_JSARGS CHECK_EQ(receiver.index() - param8.index(), 9); -#else - CHECK_EQ(param8.index() - receiver.index(), 9); -#endif } TEST_F(BytecodeArrayBuilderTest, Constants) { diff --git a/deps/v8/test/unittests/interpreter/bytecode-array-writer-unittest.cc b/deps/v8/test/unittests/interpreter/bytecode-array-writer-unittest.cc index ad25ab06cb..0592a64362 100644 --- a/deps/v8/test/unittests/interpreter/bytecode-array-writer-unittest.cc +++ b/deps/v8/test/unittests/interpreter/bytecode-array-writer-unittest.cc @@ -142,8 +142,8 @@ TEST_F(BytecodeArrayWriterUnittest, SimpleExample) { Handle<BytecodeArray> bytecode_array = writer()->ToBytecodeArray(isolate(), 0, 0, factory()->empty_byte_array()); - bytecode_array->set_synchronized_source_position_table( - *writer()->ToSourcePositionTable(isolate())); + bytecode_array->set_source_position_table( + *writer()->ToSourcePositionTable(isolate()), kReleaseStore); CHECK_EQ(bytecodes()->size(), arraysize(expected_bytes)); PositionTableEntry expected_positions[] = {{0, 55, true}, {8, 70, true}}; @@ -229,8 +229,8 @@ TEST_F(BytecodeArrayWriterUnittest, ComplexExample) { Handle<BytecodeArray> bytecode_array = writer()->ToBytecodeArray(isolate(), 0, 0, factory()->empty_byte_array()); - bytecode_array->set_synchronized_source_position_table( - *writer()->ToSourcePositionTable(isolate())); + bytecode_array->set_source_position_table( + *writer()->ToSourcePositionTable(isolate()), kReleaseStore); SourcePositionTableIterator source_iterator( bytecode_array->SourcePositionTable()); for (size_t i = 0; i < arraysize(expected_positions); ++i) { @@ -278,8 +278,8 @@ TEST_F(BytecodeArrayWriterUnittest, ElideNoneffectfulBytecodes) { Handle<BytecodeArray> bytecode_array = writer()->ToBytecodeArray(isolate(), 0, 0, factory()->empty_byte_array()); - bytecode_array->set_synchronized_source_position_table( - *writer()->ToSourcePositionTable(isolate())); + bytecode_array->set_source_position_table( + *writer()->ToSourcePositionTable(isolate()), kReleaseStore); SourcePositionTableIterator source_iterator( bytecode_array->SourcePositionTable()); for (size_t i = 0; i < arraysize(expected_positions); ++i) { @@ -346,8 +346,8 @@ TEST_F(BytecodeArrayWriterUnittest, DeadcodeElimination) { Handle<BytecodeArray> bytecode_array = writer()->ToBytecodeArray(isolate(), 0, 0, factory()->empty_byte_array()); - bytecode_array->set_synchronized_source_position_table( - *writer()->ToSourcePositionTable(isolate())); + bytecode_array->set_source_position_table( + *writer()->ToSourcePositionTable(isolate()), kReleaseStore); SourcePositionTableIterator source_iterator( bytecode_array->SourcePositionTable()); for (size_t i = 0; i < arraysize(expected_positions); ++i) { diff --git a/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.cc b/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.cc index 19ebc7078b..6ec3999968 100644 --- a/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.cc +++ b/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.cc @@ -419,7 +419,7 @@ TARGET_TEST_F(InterpreterAssemblerTest, LoadConstantPoolEntry) { LoadSensitivity::kCritical)); } { - Node* index = m.Parameter(2); + Node* index = m.UntypedParameter(2); TNode<Object> load_constant = m.LoadConstantPoolEntry(m.ReinterpretCast<IntPtrT>(index)); Matcher<Node*> constant_pool_matcher = m.IsLoadFromObject( diff --git a/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.h b/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.h index 3abc6ac24e..828af4ade4 100644 --- a/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.h +++ b/deps/v8/test/unittests/interpreter/interpreter-assembler-unittest.h @@ -38,6 +38,9 @@ class InterpreterAssemblerTest : public TestWithIsolateAndZone { OperandScale operand_scale = OperandScale::kSingle) : InterpreterAssembler(state, bytecode, operand_scale) {} ~InterpreterAssemblerForTest(); + InterpreterAssemblerForTest(const InterpreterAssemblerForTest&) = delete; + InterpreterAssemblerForTest& operator=(const InterpreterAssemblerForTest&) = + delete; Matcher<compiler::Node*> IsLoad( const Matcher<compiler::LoadRepresentation>& rep_matcher, @@ -83,9 +86,6 @@ class InterpreterAssemblerTest : public TestWithIsolateAndZone { Matcher<compiler::Node*> IsLoadRegisterOperand(int offset, OperandSize operand_size); - - private: - DISALLOW_COPY_AND_ASSIGN(InterpreterAssemblerForTest); }; }; |