Index: src/assert-scope.h |
diff --git a/src/assert-scope.h b/src/assert-scope.h |
index 7e1bc7792785231dae5855e07daa236459c4a073..82ba66505df363fc68c93abad5b10dc8b45abb9f 100644 |
--- a/src/assert-scope.h |
+++ b/src/assert-scope.h |
@@ -28,7 +28,8 @@ enum PerIsolateAssertType { |
JAVASCRIPT_EXECUTION_ASSERT, |
JAVASCRIPT_EXECUTION_THROWS, |
ALLOCATION_FAILURE_ASSERT, |
- DEOPTIMIZATION_ASSERT |
+ DEOPTIMIZATION_ASSERT, |
+ COMPILATION_ASSERT |
}; |
@@ -254,6 +255,13 @@ typedef PerIsolateAssertScopeDebugOnly<DEOPTIMIZATION_ASSERT, false> |
typedef PerIsolateAssertScopeDebugOnly<DEOPTIMIZATION_ASSERT, true> |
AllowDeoptimization; |
+// Scope to document where we do not expect deoptimization. |
+typedef PerIsolateAssertScopeDebugOnly<COMPILATION_ASSERT, false> |
+ DisallowCompilation; |
+ |
+// Scope to introduce an exception to DisallowDeoptimization. |
+typedef PerIsolateAssertScopeDebugOnly<COMPILATION_ASSERT, true> |
+ AllowCompilation; |
} } // namespace v8::internal |
#endif // V8_ASSERT_SCOPE_H_ |