Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 6aff6a2dc259427e3d145a0accb15f9fcc3bb7d5..36b6ae7e2781f91cb1f69e2771f379f06efc19ab 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4679,6 +4679,7 @@ bool Code::marked_for_deoptimization() { |
void Code::set_marked_for_deoptimization(bool flag) { |
ASSERT(kind() == OPTIMIZED_FUNCTION); |
+ ASSERT(!flag || AllowDeoptimization::IsAllowed(GetIsolate())); |
int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); |
int updated = MarkedForDeoptimizationField::update(previous, flag); |
WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); |