diff options
Diffstat (limited to 'deps/v8/src/prototype-inl.h')
-rw-r--r-- | deps/v8/src/prototype-inl.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/deps/v8/src/prototype-inl.h b/deps/v8/src/prototype-inl.h index 820d5756f1..8f5dedda71 100644 --- a/deps/v8/src/prototype-inl.h +++ b/deps/v8/src/prototype-inl.h @@ -18,7 +18,6 @@ PrototypeIterator::PrototypeIterator(Isolate* isolate, WhereToStart where_to_start, WhereToEnd where_to_end) : isolate_(isolate), - object_(nullptr), handle_(receiver), where_to_end_(where_to_end), is_at_end_(false), @@ -27,7 +26,7 @@ PrototypeIterator::PrototypeIterator(Isolate* isolate, if (where_to_start == kStartAtPrototype) Advance(); } -PrototypeIterator::PrototypeIterator(Isolate* isolate, JSReceiver* receiver, +PrototypeIterator::PrototypeIterator(Isolate* isolate, JSReceiver receiver, WhereToStart where_to_start, WhereToEnd where_to_end) : isolate_(isolate), @@ -38,7 +37,7 @@ PrototypeIterator::PrototypeIterator(Isolate* isolate, JSReceiver* receiver, if (where_to_start == kStartAtPrototype) Advance(); } -PrototypeIterator::PrototypeIterator(Isolate* isolate, Map* receiver_map, +PrototypeIterator::PrototypeIterator(Isolate* isolate, Map receiver_map, WhereToEnd where_to_end) : isolate_(isolate), object_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype()), @@ -47,7 +46,7 @@ PrototypeIterator::PrototypeIterator(Isolate* isolate, Map* receiver_map, seen_proxies_(0) { if (!is_at_end_ && where_to_end_ == END_AT_NON_HIDDEN) { DCHECK(object_->IsJSReceiver()); - Map* map = JSReceiver::cast(object_)->map(); + Map map = JSReceiver::cast(object_)->map(); is_at_end_ = !map->has_hidden_prototype(); } } @@ -55,7 +54,6 @@ PrototypeIterator::PrototypeIterator(Isolate* isolate, Map* receiver_map, PrototypeIterator::PrototypeIterator(Isolate* isolate, Handle<Map> receiver_map, WhereToEnd where_to_end) : isolate_(isolate), - object_(nullptr), handle_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype(), isolate_), where_to_end_(where_to_end), @@ -63,7 +61,7 @@ PrototypeIterator::PrototypeIterator(Isolate* isolate, Handle<Map> receiver_map, seen_proxies_(0) { if (!is_at_end_ && where_to_end_ == END_AT_NON_HIDDEN) { DCHECK(handle_->IsJSReceiver()); - Map* map = JSReceiver::cast(*handle_)->map(); + Map map = JSReceiver::cast(*handle_)->map(); is_at_end_ = !map->has_hidden_prototype(); } } @@ -93,10 +91,10 @@ void PrototypeIterator::Advance() { } void PrototypeIterator::AdvanceIgnoringProxies() { - Object* object = handle_.is_null() ? object_ : *handle_; - Map* map = HeapObject::cast(object)->map(); + Object object = handle_.is_null() ? object_ : *handle_; + Map map = HeapObject::cast(object)->map(); - Object* prototype = map->prototype(); + Object prototype = map->prototype(); is_at_end_ = where_to_end_ == END_AT_NON_HIDDEN ? !map->has_hidden_prototype() : prototype->IsNull(isolate_); |