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

Unified Diff: src/ic.h

Issue 219313002: Monomorphic prototype failures should be reserved for already-seen keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « no previous file | src/ic.cc » ('j') | src/ic.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.h
diff --git a/src/ic.h b/src/ic.h
index e70cb82c96d59e132ce3994d5f099fc0c183cdad..a51df5c31ef09b299442c91968ff5e5f41af8d4e 100644
--- a/src/ic.h
+++ b/src/ic.h
@@ -96,7 +96,9 @@ class IC {
// Compute the current IC state based on the target stub, receiver and name.
void UpdateState(Handle<Object> receiver, Handle<Object> name);
- void MarkMonomorphicPrototypeFailure() {
+ bool IsNameCompatibleWithMonomorphicPrototypeFailure(Handle<Object> name);
+ void MarkMonomorphicPrototypeFailure(Handle<Object> name) {
+ ASSERT(IsNameCompatibleWithMonomorphicPrototypeFailure(name));
state_ = MONOMORPHIC_PROTOTYPE_FAILURE;
}
« no previous file with comments | « no previous file | src/ic.cc » ('j') | src/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698