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

Unified Diff: src/hydrogen.h

Issue 982143002: Revert of Simplify and compact transitions storage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/heap/objects-visiting-inl.h ('k') | src/json-parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index ca679e7253ec9db75fbbc04529785ab89038fd98..831ed20cb11d26ea064eddbbfa94ccd3773302c0 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2553,11 +2553,10 @@
number_ = number;
}
void LookupTransition(Map* map, Name* name, PropertyAttributes attributes) {
- Map* target =
- TransitionArray::SearchTransition(map, kData, name, attributes);
- if (target == NULL) return NotFound();
+ int transition_index = map->SearchTransition(kData, name, attributes);
+ if (transition_index == TransitionArray::kNotFound) return NotFound();
lookup_type_ = TRANSITION_TYPE;
- transition_ = handle(target);
+ transition_ = handle(map->GetTransition(transition_index));
number_ = transition_->LastAdded();
details_ = transition_->instance_descriptors()->GetDetails(number_);
}
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/json-parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698