Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1097)

Unified Diff: src/lookup.h

Issue 1697153002: [runtime] Add fast path to update LookupIterator in simple cases (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/lookup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lookup.h
diff --git a/src/lookup.h b/src/lookup.h
index 48048bb51dc33a9721a9328a143345cb84a1638b..60f171c2d79d7c565c6f2380a060d37e1e92ad89 100644
--- a/src/lookup.h
+++ b/src/lookup.h
@@ -287,11 +287,13 @@ class LookupIterator final BASE_EMBEDDED {
return (configuration_ & kInterceptor) != 0;
}
int descriptor_number() const {
+ DCHECK(!IsElement());
DCHECK(has_property_);
DCHECK(!holder_map_->is_dictionary_map());
return number_;
}
int dictionary_entry() const {
+ DCHECK(!IsElement());
DCHECK(has_property_);
DCHECK(holder_map_->is_dictionary_map());
return number_;
« no previous file with comments | « no previous file | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698