| Index: src/handles-inl.h
|
| diff --git a/src/handles-inl.h b/src/handles-inl.h
|
| index a25b4a2266c6e19cb939b3270e9a9f38faeb6649..19a02cca9ae9b32871dffd6258db0bcec339ea49 100644
|
| --- a/src/handles-inl.h
|
| +++ b/src/handles-inl.h
|
| @@ -52,14 +52,15 @@ Handle<T>::Handle(T* obj, Isolate* isolate) {
|
|
|
|
|
| template <typename T>
|
| -inline bool Handle<T>::is_identical_to(const Handle<T> other) const {
|
| +inline bool Handle<T>::is_identical_to(const Handle<T> o) const {
|
| ASSERT(location_ == NULL || !(*location_)->IsFailure());
|
| - if (location_ == other.location_) return true;
|
| - if (location_ == NULL || other.location_ == NULL) return false;
|
| // Dereferencing deferred handles to check object equality is safe.
|
| - SLOW_ASSERT(IsDereferenceAllowed(NO_DEFERRED_CHECK) &&
|
| - other.IsDereferenceAllowed(NO_DEFERRED_CHECK));
|
| - return *location_ == *other.location_;
|
| + SLOW_ASSERT(
|
| + (location_ == NULL || IsDereferenceAllowed(NO_DEFERRED_CHECK)) &&
|
| + (o.location_ == NULL || o.IsDereferenceAllowed(NO_DEFERRED_CHECK)));
|
| + if (location_ == o.location_) return true;
|
| + if (location_ == NULL || o.location_ == NULL) return false;
|
| + return *location_ == *o.location_;
|
| }
|
|
|
|
|
|
|