Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index cc0f70bf318c5f57fca3e49c5d5c9d7daaf9a3ff..3069bc5e1a9d94728695db96fd38b5e313831250 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -339,7 +339,7 @@ void SetResourceConstraints(i::Isolate* isolate, |
i::Object** V8::GlobalizeReference(i::Isolate* isolate, i::Object** obj) { |
LOG_API(isolate, "Persistent::New"); |
i::Handle<i::Object> result = isolate->global_handles()->Create(*obj); |
-#ifdef DEBUG |
+#ifdef VERIFY_HEAP |
(*obj)->ObjectVerify(); |
#endif // DEBUG |
Jakob Kummerow
2014/12/04 08:59:45
nit: s/DEBUG/VERIFY_HEAP/, again below
|
return result.location(); |
@@ -348,7 +348,7 @@ i::Object** V8::GlobalizeReference(i::Isolate* isolate, i::Object** obj) { |
i::Object** V8::CopyPersistent(i::Object** obj) { |
i::Handle<i::Object> result = i::GlobalHandles::CopyGlobal(obj); |
-#ifdef DEBUG |
+#ifdef VERIFY_HEAP |
(*obj)->ObjectVerify(); |
#endif // DEBUG |
return result.location(); |