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

Unified Diff: src/ic/ic-inl.h

Issue 1865863003: Cleanup IC-related code (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ic/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic-inl.h
diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h
index 998bd8cf12364e09b1512c8ef9e70d35417fad7b..f77c40a3961cd8492d8169f39d6d00f9fd87aadd 100644
--- a/src/ic/ic-inl.h
+++ b/src/ic/ic-inl.h
@@ -87,42 +87,12 @@ void IC::SetTargetAtAddress(Address address, Code* target,
void IC::set_target(Code* code) {
SetTargetAtAddress(address(), code, constant_pool());
- target_set_ = true;
}
-
-void LoadIC::set_target(Code* code) {
- // The contextual mode must be preserved across IC patching.
- DCHECK(LoadICState::GetTypeofMode(code->extra_ic_state()) ==
- LoadICState::GetTypeofMode(target()->extra_ic_state()));
-
- IC::set_target(code);
-}
-
-
-void StoreIC::set_target(Code* code) {
- // Language mode must be preserved across IC patching.
- DCHECK(StoreICState::GetLanguageMode(code->extra_ic_state()) ==
- StoreICState::GetLanguageMode(target()->extra_ic_state()));
- IC::set_target(code);
-}
-
-
-void KeyedStoreIC::set_target(Code* code) {
- // Language mode must be preserved across IC patching.
- DCHECK(StoreICState::GetLanguageMode(code->extra_ic_state()) ==
- language_mode());
- IC::set_target(code);
-}
-
-
-Code* IC::raw_target() const {
+Code* IC::target() const {
return GetTargetAtAddress(address(), constant_pool());
}
-void IC::UpdateTarget() { target_ = handle(raw_target(), isolate_); }
-
-
Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map,
bool receiver_is_holder, Isolate* isolate,
CacheHolderFlag* flag) {
« no previous file with comments | « src/ic/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698