| 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/factory.h" | 7 #include "src/factory.h" |
| 8 #include "src/handles-inl.h" | 8 #include "src/handles-inl.h" |
| 9 #include "src/interpreter/constant-array-builder.h" | 9 #include "src/interpreter/constant-array-builder.h" |
| 10 #include "src/isolate.h" | 10 #include "src/isolate.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 ConstantArrayBuilderTest : public TestWithIsolateAndZone { | 18 class ConstantArrayBuilderTest : public TestWithIsolateAndZone { |
| 18 public: | 19 public: |
| 19 ConstantArrayBuilderTest() {} | 20 ConstantArrayBuilderTest() {} |
| 20 ~ConstantArrayBuilderTest() override {} | 21 ~ConstantArrayBuilderTest() override {} |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 343 |
| 343 // Check values after reserved entries are inserted. | 344 // Check values after reserved entries are inserted. |
| 344 for (size_t i = 0; i < k16BitCapacity; i++) { | 345 for (size_t i = 0; i < k16BitCapacity; i++) { |
| 345 CHECK_EQ(Handle<Smi>::cast(builder.At(i))->value(), static_cast<int>(i)); | 346 CHECK_EQ(Handle<Smi>::cast(builder.At(i))->value(), static_cast<int>(i)); |
| 346 } | 347 } |
| 347 } | 348 } |
| 348 | 349 |
| 349 } // namespace interpreter | 350 } // namespace interpreter |
| 350 } // namespace internal | 351 } // namespace internal |
| 351 } // namespace v8 | 352 } // namespace v8 |
| OLD | NEW |