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

Unified Diff: src/compilation-dependencies.cc

Issue 1406153010: [turbofan] Initial support for transitioning stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix non-inobject properties. 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 2d48153db03458d2adf40c26ca64cafc8889600c..c9c194f19ff056cd1c279f13befede4d67ff377b 100644
--- a/src/compilation-dependencies.cc
+++ b/src/compilation-dependencies.cc
@@ -106,6 +106,15 @@ void CompilationDependencies::Rollback() {
}
+void CompilationDependencies::AssumeMapNotDeprecated(Handle<Map> map) {
+ DCHECK(!map->is_deprecated());
+ // Do nothing if the map cannot be deprecated.
+ if (map->CanBeDeprecated()) {
+ Insert(DependentCode::kTransitionGroup, map);
+ }
+}
+
+
void CompilationDependencies::AssumeMapStable(Handle<Map> map) {
DCHECK(map->is_stable());
// Do nothing if the map cannot transition.

Powered by Google App Engine
This is Rietveld 408576698