| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index c28cec41854d5bf613d58c4748d33cb0117d492e..a7ff337f7acda76c5475620fa697bd8e9317d0f5 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -339,18 +339,18 @@ 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
|
| +#endif // VERIFY_HEAP
|
| return result.location();
|
| }
|
|
|
|
|
| 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
|
| +#endif // VERIFY_HEAP
|
| return result.location();
|
| }
|
|
|
|
|