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

Unified Diff: src/lookup.cc

Issue 1416053007: Introduce LookupIterator::Restart() and use it (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « src/lookup.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lookup.cc
diff --git a/src/lookup.cc b/src/lookup.cc
index eb79ba190f463f42b8ef0a449c6d376f136bc09f..727ffd608a34a8fd6d547c13680db7d80988e656 100644
--- a/src/lookup.cc
+++ b/src/lookup.cc
@@ -80,13 +80,13 @@ void LookupIterator::Next() {
}
-void LookupIterator::RestartLookupForNonMaskingInterceptors() {
- interceptor_state_ = InterceptorState::kProcessNonMasking;
+void LookupIterator::RestartInternal(InterceptorState interceptor_state) {
state_ = NOT_FOUND;
+ interceptor_state_ = interceptor_state;
property_details_ = PropertyDetails::Empty();
- number_ = DescriptorArray::kNotFound;
holder_ = initial_holder_;
holder_map_ = handle(holder_->map(), isolate_);
+ number_ = DescriptorArray::kNotFound;
Jakob Kummerow 2015/10/22 15:33:25 Reordered to match the initialization order in the
Next();
}
« no previous file with comments | « src/lookup.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698