summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/local-factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/heap/local-factory.cc')
-rw-r--r--deps/v8/src/heap/local-factory.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/heap/local-factory.cc b/deps/v8/src/heap/local-factory.cc
index a581cfee60..d8c2ce898a 100644
--- a/deps/v8/src/heap/local-factory.cc
+++ b/deps/v8/src/heap/local-factory.cc
@@ -40,7 +40,8 @@ void LocalFactory::AddToScriptList(Handle<Script> shared) {
HeapObject LocalFactory::AllocateRaw(int size, AllocationType allocation,
AllocationAlignment alignment) {
- DCHECK_EQ(allocation, AllocationType::kOld);
+ DCHECK(allocation == AllocationType::kOld ||
+ allocation == AllocationType::kSharedOld);
return HeapObject::FromAddress(isolate()->heap()->AllocateRawOrFail(
size, allocation, AllocationOrigin::kRuntime, alignment));
}