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/factory.h" |
| 6 #include "src/identity-map.h" |
| 7 #include "src/isolate.h" |
| 8 #include "src/objects.h" |
| 9 // FIXME(mstarzinger, marja): This is weird, but required because of the missing |
| 10 // (disallowed) include: src/factory.h -> src/objects-inl.h |
| 11 #include "src/objects-inl.h" |
| 12 // FIXME(mstarzinger, marja): This is weird, but required because of the missing |
| 13 // (disallowed) include: src/type-feedback-vector.h -> |
| 14 // src/type-feedback-vector-inl.h |
| 15 #include "src/type-feedback-vector-inl.h" |
5 #include "src/v8.h" | 16 #include "src/v8.h" |
6 | |
7 #include "src/identity-map.h" | |
8 #include "src/zone.h" | 17 #include "src/zone.h" |
9 | |
10 #include "test/cctest/cctest.h" | 18 #include "test/cctest/cctest.h" |
11 | 19 |
12 namespace v8 { | 20 namespace v8 { |
13 namespace internal { | 21 namespace internal { |
14 | 22 |
15 // Helper for testing. A "friend" of the IdentityMapBase class, it is able to | 23 // Helper for testing. A "friend" of the IdentityMapBase class, it is able to |
16 // "move" objects to simulate GC for testing the internals of the map. | 24 // "move" objects to simulate GC for testing the internals of the map. |
17 class IdentityMapTester : public HandleAndZoneScope { | 25 class IdentityMapTester : public HandleAndZoneScope { |
18 public: | 26 public: |
19 IdentityMap<void*> map; | 27 IdentityMap<void*> map; |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 CHECK_NE(string4.location(), string6.location()); | 419 CHECK_NE(string4.location(), string6.location()); |
412 CHECK_NE(number1.location(), number6.location()); | 420 CHECK_NE(number1.location(), number6.location()); |
413 CHECK_NE(string1.location(), string6.location()); | 421 CHECK_NE(string1.location(), string6.location()); |
414 CHECK_EQ(number5.location(), number6.location()); | 422 CHECK_EQ(number5.location(), number6.location()); |
415 CHECK_EQ(string5.location(), string6.location()); | 423 CHECK_EQ(string5.location(), string6.location()); |
416 } | 424 } |
417 } | 425 } |
418 | 426 |
419 } // namespace internal | 427 } // namespace internal |
420 } // namespace v8 | 428 } // namespace v8 |
OLD | NEW |