Index: vm/object.cc |
=================================================================== |
--- vm/object.cc (revision 17884) |
+++ vm/object.cc (working copy) |
@@ -1281,6 +1281,7 @@ |
Heap::Space space) { |
ASSERT(Utils::IsAligned(size, kObjectAlignment)); |
Isolate* isolate = Isolate::Current(); |
+ ASSERT(isolate->no_callback_scope_depth() == 0); |
Heap* heap = isolate->heap(); |
uword address = heap->Allocate(size, space); |