| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/interpreter/bytecode-array-builder.h" | 7 #include "src/interpreter/bytecode-array-builder.h" |
| 8 #include "src/interpreter/bytecode-array-random-iterator.h" | 8 #include "src/interpreter/bytecode-array-random-iterator.h" |
| 9 #include "src/objects-inl.h" |
| 9 #include "test/unittests/test-utils.h" | 10 #include "test/unittests/test-utils.h" |
| 10 | 11 |
| 11 namespace v8 { | 12 namespace v8 { |
| 12 namespace internal { | 13 namespace internal { |
| 13 namespace interpreter { | 14 namespace interpreter { |
| 14 | 15 |
| 15 class BytecodeArrayRandomIteratorTest : public TestWithIsolateAndZone { | 16 class BytecodeArrayRandomIteratorTest : public TestWithIsolateAndZone { |
| 16 public: | 17 public: |
| 17 BytecodeArrayRandomIteratorTest() {} | 18 BytecodeArrayRandomIteratorTest() {} |
| 18 ~BytecodeArrayRandomIteratorTest() override {} | 19 ~BytecodeArrayRandomIteratorTest() override {} |
| (...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 EXPECT_TRUE( | 1002 EXPECT_TRUE( |
| 1002 iterator.GetConstantForIndexOperand(0).is_identical_to(heap_num_0)); | 1003 iterator.GetConstantForIndexOperand(0).is_identical_to(heap_num_0)); |
| 1003 ASSERT_TRUE(iterator.IsValid()); | 1004 ASSERT_TRUE(iterator.IsValid()); |
| 1004 --iterator; | 1005 --iterator; |
| 1005 ASSERT_FALSE(iterator.IsValid()); | 1006 ASSERT_FALSE(iterator.IsValid()); |
| 1006 } | 1007 } |
| 1007 | 1008 |
| 1008 } // namespace interpreter | 1009 } // namespace interpreter |
| 1009 } // namespace internal | 1010 } // namespace internal |
| 1010 } // namespace v8 | 1011 } // namespace v8 |
| OLD | NEW |