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

Unified Diff: src/objects-inl.h

Issue 10694155: Renamed ConvertDescriptorToFieldAndMapTransition to ConvertTransitionToMapTransition, and let it re… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 fbb0183815083b93fe410b498c968372f7f71df4..6b45b3eac56aa87cbb0e43695bc7342c6b328c97 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3528,6 +3528,10 @@ MaybeObject* Map::AddTransition(String* key, Object* value) {
return TransitionArray::NewWith(key, value);
}
+void Map::SetTransition(int transition_index, Object* value) {
+ transitions()->SetValue(transition_index, value);
+}
+
// If the map is using the empty descriptor array, install a new empty
// descriptor array that will contain an elements transition.
« 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