OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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" |
| 8 #include "src/isolate.h" |
7 #include "src/list.h" | 9 #include "src/list.h" |
8 #include "src/objects.h" | 10 #include "src/objects.h" |
| 11 // FIXME(mstarzinger, marja): This is weird, but required because of the missing |
| 12 // (disallowed) include: src/factory.h -> src/objects-inl.h |
| 13 #include "src/objects-inl.h" |
| 14 // FIXME(mstarzinger, marja): This is weird, but required because of the missing |
| 15 // (disallowed) include: src/type-feedback-vector.h -> |
| 16 // src/type-feedback-vector-inl.h |
| 17 #include "src/type-feedback-vector-inl.h" |
9 #include "test/cctest/cctest.h" | 18 #include "test/cctest/cctest.h" |
10 | 19 |
11 namespace v8 { | 20 namespace v8 { |
12 namespace internal { | 21 namespace internal { |
13 | 22 |
14 namespace { | 23 namespace { |
15 | 24 |
16 static Handle<Code> GetDummyCode(Isolate* isolate) { | 25 static Handle<Code> GetDummyCode(Isolate* isolate) { |
17 CodeDesc desc = {nullptr, // buffer | 26 CodeDesc desc = {nullptr, // buffer |
18 0, // buffer_size | 27 0, // buffer_size |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Check that lookup works not only right after storing. | 77 // Check that lookup works not only right after storing. |
69 for (int i = 0; i < kEntries; i++) { | 78 for (int i = 0; i < kEntries; i++) { |
70 Handle<Name> name = names.at(i); | 79 Handle<Name> name = names.at(i); |
71 Handle<Code> code = codes.at(i); | 80 Handle<Code> code = codes.at(i); |
72 CHECK_EQ(*code, map->LookupInCodeCache(*name, code->flags())); | 81 CHECK_EQ(*code, map->LookupInCodeCache(*name, code->flags())); |
73 } | 82 } |
74 } | 83 } |
75 | 84 |
76 } // namespace internal | 85 } // namespace internal |
77 } // namespace v8 | 86 } // namespace v8 |
OLD | NEW |