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

Unified Diff: src/code-stubs.cc

Issue 1502963002: [ic] Change CompareIC to handle JSReceiver instead of JSObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index 8443c704a64130ff08c6327b696455994bb2606a..4e2e46e66c9626ad10e0c90e6e78b525aeb81cdd 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -353,8 +353,8 @@ InlineCacheState CompareICStub::GetICState() const {
case CompareICState::INTERNALIZED_STRING:
case CompareICState::STRING:
case CompareICState::UNIQUE_NAME:
- case CompareICState::OBJECT:
- case CompareICState::KNOWN_OBJECT:
+ case CompareICState::RECEIVER:
+ case CompareICState::KNOWN_RECEIVER:
return MONOMORPHIC;
case CompareICState::GENERIC:
return ::v8::internal::GENERIC;
@@ -431,12 +431,12 @@ void CompareICStub::Generate(MacroAssembler* masm) {
case CompareICState::UNIQUE_NAME:
GenerateUniqueNames(masm);
break;
- case CompareICState::OBJECT:
- GenerateObjects(masm);
+ case CompareICState::RECEIVER:
+ GenerateReceivers(masm);
break;
- case CompareICState::KNOWN_OBJECT:
+ case CompareICState::KNOWN_RECEIVER:
DCHECK(*known_map_ != NULL);
- GenerateKnownObjects(masm);
+ GenerateKnownReceivers(masm);
break;
case CompareICState::GENERIC:
GenerateGeneric(masm);
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698