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

Unified Diff: src/ic/ic.cc

Issue 1424703005: Remove JSBuiltinsObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index 80651b1588e0a14e1575e6cd2d6a252fc2cbbcfd..65f4306a3c0c6cb759a06e30787eaa56e1fdb619 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -332,14 +332,6 @@ void IC::UpdateState(Handle<Object> receiver, Handle<Object> name) {
MarkPrototypeFailure(name);
return;
}
-
- // The builtins object is special. It only changes when JavaScript
- // builtins are loaded lazily. It is important to keep inline
- // caches for the builtins object monomorphic. Therefore, if we get
- // an inline cache miss for the builtins object after lazily loading
- // JavaScript builtins, we return uninitialized as the state to
- // force the inline cache back to monomorphic state.
- if (receiver->IsJSBuiltinsObject()) state_ = PREMONOMORPHIC;
}

Powered by Google App Engine
This is Rietveld 408576698