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

Unified Diff: src/compilation-dependencies.cc

Issue 1396333010: [turbofan] Initial support for monomorphic/polymorphic property loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix broken tests. Add documentation and TODOs. 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/compilation-dependencies.cc
diff --git a/src/compilation-dependencies.cc b/src/compilation-dependencies.cc
index 643b88ab0ec0875dd32c3f3dd414811862c3a492..2d48153db03458d2adf40c26ca64cafc8889600c 100644
--- a/src/compilation-dependencies.cc
+++ b/src/compilation-dependencies.cc
@@ -106,6 +106,15 @@ void CompilationDependencies::Rollback() {
}
+void CompilationDependencies::AssumeMapStable(Handle<Map> map) {
+ DCHECK(map->is_stable());
+ // Do nothing if the map cannot transition.
+ if (map->CanTransition()) {
+ Insert(DependentCode::kPrototypeCheckGroup, map);
+ }
+}
+
+
void CompilationDependencies::AssumeTransitionStable(
Handle<AllocationSite> site) {
// Do nothing if the object doesn't have any useful element transitions left.

Powered by Google App Engine
This is Rietveld 408576698