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/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <memory> | 9 #include <memory> |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 13779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13790 if (map == *pattern.find_[current_pattern]) { | 13790 if (map == *pattern.find_[current_pattern]) { |
13791 info->set_target_object(*pattern.replace_[current_pattern]); | 13791 info->set_target_object(*pattern.replace_[current_pattern]); |
13792 if (++current_pattern == pattern.count_) return; | 13792 if (++current_pattern == pattern.count_) return; |
13793 } | 13793 } |
13794 } | 13794 } |
13795 UNREACHABLE(); | 13795 UNREACHABLE(); |
13796 } | 13796 } |
13797 | 13797 |
13798 | 13798 |
13799 void Code::ClearInlineCaches() { | 13799 void Code::ClearInlineCaches() { |
13800 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | | 13800 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET); |
13801 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID); | |
13802 for (RelocIterator it(this, mask); !it.done(); it.next()) { | 13801 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
13803 RelocInfo* info = it.rinfo(); | 13802 RelocInfo* info = it.rinfo(); |
13804 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); | 13803 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); |
13805 if (target->is_inline_cache_stub()) { | 13804 if (target->is_inline_cache_stub()) { |
13806 ICUtility::Clear(this->GetIsolate(), info->pc(), | 13805 ICUtility::Clear(this->GetIsolate(), info->pc(), |
13807 info->host()->constant_pool()); | 13806 info->host()->constant_pool()); |
13808 } | 13807 } |
13809 } | 13808 } |
13810 } | 13809 } |
13811 | 13810 |
(...skipping 6400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20212 // not | 20211 // not |
20213 // depend on this. | 20212 // depend on this. |
20214 return DICTIONARY_ELEMENTS; | 20213 return DICTIONARY_ELEMENTS; |
20215 } | 20214 } |
20216 DCHECK_LE(kind, LAST_ELEMENTS_KIND); | 20215 DCHECK_LE(kind, LAST_ELEMENTS_KIND); |
20217 return kind; | 20216 return kind; |
20218 } | 20217 } |
20219 } | 20218 } |
20220 } // namespace internal | 20219 } // namespace internal |
20221 } // namespace v8 | 20220 } // namespace v8 |
OLD | NEW |