Index: src/lithium-codegen.cc |
diff --git a/src/lithium-codegen.cc b/src/lithium-codegen.cc |
index b5602185e1afc0cdca9df2feadcfdd66cb0ceaad..b24a062f941e333a4dc65c15a2665706f7371a0f 100644 |
--- a/src/lithium-codegen.cc |
+++ b/src/lithium-codegen.cc |
@@ -210,4 +210,15 @@ void LCodeGenBase::RegisterWeakObjectsInOptimizedCode(Handle<Code> code) { |
} |
+void LCodeGenBase::Abort(BailoutReason reason) { |
+ info()->set_bailout_reason(reason); |
+ status_ = ABORTED; |
+} |
+ |
+ |
+void LCodeGenBase::AddDeprecationDependency(Handle<Map> map) { |
+ if (map->is_deprecated()) return Abort(kMapBecameDeprecated); |
+ chunk_->AddDeprecationDependency(map); |
+} |
+ |
} } // namespace v8::internal |