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

Unified Diff: src/crankshaft/hydrogen.cc

Issue 1416493007: [turbofan] Implement the implicit ToObject for property access. (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
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen.cc
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
index 17fb0afc05d181c1adbe03a7eaac486dabb436c2..555291f588efac8062d74813d2be691a32455341 100644
--- a/src/crankshaft/hydrogen.cc
+++ b/src/crankshaft/hydrogen.cc
@@ -6510,9 +6510,12 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic(
Handle<Map> HOptimizedGraphBuilder::PropertyAccessInfo::map() {
- JSFunction* ctor = IC::GetRootConstructor(
- *map_, current_info()->closure()->context()->native_context());
- if (ctor != NULL) return handle(ctor->initial_map());
+ Handle<JSFunction> ctor;
+ if (Map::GetConstructorFunction(
+ map_, handle(current_info()->closure()->context()->native_context()))
+ .ToHandle(&ctor)) {
+ return handle(ctor->initial_map());
+ }
return map_;
}
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698