Lines Matching refs:recv
39 V8_INLINE bool HasInitialRegExpMap(Isolate* isolate, JSReceiver* recv) { in HasInitialRegExpMap() argument
40 return recv->map() == isolate->regexp_function()->initial_map(); in HasInitialRegExpMap()
46 Handle<JSReceiver> recv, in SetLastIndex() argument
50 if (HasInitialRegExpMap(isolate, *recv)) { in SetLastIndex()
51 JSRegExp::cast(*recv)->set_last_index(*value_as_object, SKIP_WRITE_BARRIER); in SetLastIndex()
52 return recv; in SetLastIndex()
54 return Object::SetProperty(isolate, recv, in SetLastIndex()
61 Handle<JSReceiver> recv) { in GetLastIndex() argument
62 if (HasInitialRegExpMap(isolate, *recv)) { in GetLastIndex()
63 return handle(JSRegExp::cast(*recv)->last_index(), isolate); in GetLastIndex()
65 return Object::GetProperty(isolate, recv, in GetLastIndex()
148 JSReceiver* recv = JSReceiver::cast(*obj); in IsUnmodifiedRegExp() local
150 if (!HasInitialRegExpMap(isolate, recv)) return false; in IsUnmodifiedRegExp()
153 Object* proto = recv->map()->prototype(); in IsUnmodifiedRegExp()
163 Object* last_index = JSRegExp::cast(recv)->last_index(); in IsUnmodifiedRegExp()