summaryrefslogtreecommitdiff
path: root/deps/v8/src/compilation-dependencies.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compilation-dependencies.cc')
-rw-r--r--deps/v8/src/compilation-dependencies.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/v8/src/compilation-dependencies.cc b/deps/v8/src/compilation-dependencies.cc
index 643b88ab0e..c9c194f19f 100644
--- a/deps/v8/src/compilation-dependencies.cc
+++ b/deps/v8/src/compilation-dependencies.cc
@@ -106,6 +106,24 @@ 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.
+ 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.