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

Side by Side Diff: src/ic/ic-inl.h

Issue 817223003: Remove custom weak handling of monomorphic IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | « src/ic/ic-compiler.cc ('k') | src/objects.h » ('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 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 #ifndef V8_IC_INL_H_ 5 #ifndef V8_IC_INL_H_
6 #define V8_IC_INL_H_ 6 #define V8_IC_INL_H_
7 7
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 if (heap->gc_state() == Heap::MARK_COMPACT) { 118 if (heap->gc_state() == Heap::MARK_COMPACT) {
119 heap->mark_compact_collector()->RecordCodeTargetPatch(address, target); 119 heap->mark_compact_collector()->RecordCodeTargetPatch(address, target);
120 } else { 120 } else {
121 heap->incremental_marking()->RecordCodeTargetPatch(address, target); 121 heap->incremental_marking()->RecordCodeTargetPatch(address, target);
122 } 122 }
123 PostPatching(address, target, old_target); 123 PostPatching(address, target, old_target);
124 } 124 }
125 125
126 126
127 void IC::set_target(Code* code) { 127 void IC::set_target(Code* code) {
128 #ifdef VERIFY_HEAP
129 code->VerifyEmbeddedObjectsDependency();
130 #endif
131 SetTargetAtAddress(address(), code, constant_pool()); 128 SetTargetAtAddress(address(), code, constant_pool());
132 target_set_ = true; 129 target_set_ = true;
133 } 130 }
134 131
135 132
136 void LoadIC::set_target(Code* code) { 133 void LoadIC::set_target(Code* code) {
137 // The contextual mode must be preserved across IC patching. 134 // The contextual mode must be preserved across IC patching.
138 DCHECK(LoadICState::GetContextualMode(code->extra_ic_state()) == 135 DCHECK(LoadICState::GetContextualMode(code->extra_ic_state()) ==
139 LoadICState::GetContextualMode(target()->extra_ic_state())); 136 LoadICState::GetContextualMode(target()->extra_ic_state()));
140 137
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 inline Code* IC::get_host() { 214 inline Code* IC::get_host() {
218 return isolate() 215 return isolate()
219 ->inner_pointer_to_code_cache() 216 ->inner_pointer_to_code_cache()
220 ->GetCacheEntry(address()) 217 ->GetCacheEntry(address())
221 ->code; 218 ->code;
222 } 219 }
223 } 220 }
224 } // namespace v8::internal 221 } // namespace v8::internal
225 222
226 #endif // V8_IC_INL_H_ 223 #endif // V8_IC_INL_H_
OLDNEW
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698