OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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-iterator.h" | 8 #include "src/interpreter/bytecode-array-iterator.h" |
9 #include "src/interpreter/bytecode-label.h" | 9 #include "src/interpreter/bytecode-label.h" |
10 #include "src/interpreter/bytecode-register-allocator.h" | 10 #include "src/interpreter/bytecode-register-allocator.h" |
| 11 #include "src/objects-inl.h" |
11 #include "test/unittests/test-utils.h" | 12 #include "test/unittests/test-utils.h" |
12 | 13 |
13 namespace v8 { | 14 namespace v8 { |
14 namespace internal { | 15 namespace internal { |
15 namespace interpreter { | 16 namespace interpreter { |
16 | 17 |
17 class BytecodeArrayBuilderTest : public TestWithIsolateAndZone { | 18 class BytecodeArrayBuilderTest : public TestWithIsolateAndZone { |
18 public: | 19 public: |
19 BytecodeArrayBuilderTest() {} | 20 BytecodeArrayBuilderTest() {} |
20 ~BytecodeArrayBuilderTest() override {} | 21 ~BytecodeArrayBuilderTest() override {} |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 iterator.Advance(); | 760 iterator.Advance(); |
760 } | 761 } |
761 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); | 762 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); |
762 iterator.Advance(); | 763 iterator.Advance(); |
763 CHECK(iterator.done()); | 764 CHECK(iterator.done()); |
764 } | 765 } |
765 | 766 |
766 } // namespace interpreter | 767 } // namespace interpreter |
767 } // namespace internal | 768 } // namespace internal |
768 } // namespace v8 | 769 } // namespace v8 |
OLD | NEW |