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

Unified Diff: src/stub-cache.cc

Issue 78023002: Use Type in CheckPrototypes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/stub-cache.h ('k') | src/types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/stub-cache.cc
diff --git a/src/stub-cache.cc b/src/stub-cache.cc
index 6fdd6d989fa11ff95e99cddf66d343224e5fcc0e..756ab27e452a876e9e3eb5d79865fd9fdfc974a0 100644
--- a/src/stub-cache.cc
+++ b/src/stub-cache.cc
@@ -1168,9 +1168,9 @@ Register LoadStubCompiler::HandlerFrontendHeader(
}
// Check that the maps starting from the prototype haven't changed.
- return CheckPrototypes(receiver, object_reg, holder,
- scratch1(), scratch2(), scratch3(),
- name, miss, check_type);
+ return CheckPrototypes(
+ IC::CurrentTypeOf(receiver, isolate()), object_reg, holder,
+ scratch1(), scratch2(), scratch3(), name, miss, check_type);
}
@@ -1182,9 +1182,9 @@ Register StoreStubCompiler::HandlerFrontendHeader(
Handle<JSObject> holder,
Handle<Name> name,
Label* miss) {
- return CheckPrototypes(Handle<JSObject>::cast(object), object_reg, holder,
- this->name(), scratch1(), scratch2(),
- name, miss, SKIP_RECEIVER);
+ return CheckPrototypes(
+ IC::CurrentTypeOf(object, isolate()), object_reg, holder, this->name(),
+ scratch1(), scratch2(), name, miss, SKIP_RECEIVER);
}
« no previous file with comments | « src/stub-cache.h ('k') | src/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698