Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: test/cctest/test-code-cache.cc

Issue 2304553002: Include only stuff you need, part 6: Fix cctest.h. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/test-array-list.cc ('k') | test/cctest/test-code-layout.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « test/cctest/test-array-list.cc ('k') | test/cctest/test-code-layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698