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

Unified Diff: src/objects-inl.h

Issue 932533003: Remove the holder_ field from LookupResult (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 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 | « src/objects.cc ('k') | src/property.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 0c72d9511daaa9062bd6110128e888f3c88e76e0..bc79580ac38674914cc219804c75d348f56f6546 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3026,22 +3026,19 @@ PropertyDetails Map::GetLastDescriptorDetails() {
}
-void Map::LookupDescriptor(JSObject* holder,
- Name* name,
- LookupResult* result) {
+void Map::LookupDescriptor(Name* name, LookupResult* result) {
DescriptorArray* descriptors = this->instance_descriptors();
int number = descriptors->SearchWithCache(name, this);
if (number == DescriptorArray::kNotFound) return result->NotFound();
- result->DescriptorResult(holder, descriptors->GetDetails(number), number);
+ result->DescriptorResult(descriptors->GetDetails(number), number);
}
-void Map::LookupTransition(JSObject* holder, Name* name,
- PropertyAttributes attributes,
+void Map::LookupTransition(Name* name, PropertyAttributes attributes,
LookupResult* result) {
int transition_index = this->SearchTransition(kData, name, attributes);
if (transition_index == TransitionArray::kNotFound) return result->NotFound();
- result->TransitionResult(holder, this->GetTransition(transition_index));
+ result->TransitionResult(this->GetTransition(transition_index));
}
« no previous file with comments | « src/objects.cc ('k') | src/property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698