Index: src/compiler/access-info.cc |
diff --git a/src/compiler/access-info.cc b/src/compiler/access-info.cc |
index 0693d35c0ae64f159d522fcb0891ca34eb39775f..010689027e8efe89df60a7a7e9d18dcafa1e4ef5 100644 |
--- a/src/compiler/access-info.cc |
+++ b/src/compiler/access-info.cc |
@@ -135,7 +135,9 @@ AccessInfoFactory::AccessInfoFactory(CompilationDependencies* dependencies, |
native_context_(native_context), |
isolate_(native_context->GetIsolate()), |
type_cache_(TypeCache::Get()), |
- zone_(zone) {} |
+ zone_(zone) { |
+ DCHECK(native_context->IsNativeContext()); |
+} |
bool AccessInfoFactory::ComputeElementAccessInfo( |