OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/ic/stub-cache.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/ic/stub-cache.h" | |
9 #include "src/type-info.h" | 8 #include "src/type-info.h" |
10 | 9 |
11 namespace v8 { | 10 namespace v8 { |
12 namespace internal { | 11 namespace internal { |
13 | 12 |
14 | 13 |
15 StubCache::StubCache(Isolate* isolate) : isolate_(isolate) {} | 14 StubCache::StubCache(Isolate* isolate) : isolate_(isolate) {} |
16 | 15 |
17 | 16 |
18 void StubCache::Initialize() { | 17 void StubCache::Initialize() { |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 int offset = SecondaryOffset(*name, flags, primary_offset); | 137 int offset = SecondaryOffset(*name, flags, primary_offset); |
139 if (entry(secondary_, offset) == &secondary_[i] && | 138 if (entry(secondary_, offset) == &secondary_[i] && |
140 TypeFeedbackOracle::IsRelevantFeedback(map, *native_context)) { | 139 TypeFeedbackOracle::IsRelevantFeedback(map, *native_context)) { |
141 types->AddMapIfMissing(Handle<Map>(map), zone); | 140 types->AddMapIfMissing(Handle<Map>(map), zone); |
142 } | 141 } |
143 } | 142 } |
144 } | 143 } |
145 } | 144 } |
146 } // namespace internal | 145 } // namespace internal |
147 } // namespace v8 | 146 } // namespace v8 |
OLD | NEW |