LOG_API(isolate, "Persistent::New");
i::Handle<i::Object> result = isolate->global_handles()->Create(*obj);
#ifdef VERIFY_HEAP
- (*obj)->ObjectVerify();
+ if (i::FLAG_verify_heap) {
+ (*obj)->ObjectVerify();
+ }
#endif // VERIFY_HEAP
return result.location();
}
i::Object** V8::CopyPersistent(i::Object** obj) {
i::Handle<i::Object> result = i::GlobalHandles::CopyGlobal(obj);
#ifdef VERIFY_HEAP
- (*obj)->ObjectVerify();
+ if (i::FLAG_verify_heap) {
+ (*obj)->ObjectVerify();
+ }
#endif // VERIFY_HEAP
return result.location();
}
#ifdef VERIFY_HEAP
Heap* debug_heap = heap_;
- debug_heap->Verify();
+ if (FLAG_verify_heap) {
+ debug_heap->Verify();
+ }
#endif
SetProgressTotal(2); // 2 passes.
#ifdef VERIFY_HEAP
- debug_heap->Verify();
+ if (FLAG_verify_heap) {
+ debug_heap->Verify();
+ }
#endif
snapshot_->AddSyntheticRootEntries();