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

Unified Diff: src/objects.cc

Issue 10905266: Directly set the value in the descriptors pointer to avoid checks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 0bcabdf50e63ef6daa0ec451a3e0597eeca5ed8e..3c193a5271502e38bf00ec129b961d1ef662df2c 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -1810,7 +1810,8 @@ MaybeObject* JSObject::ConvertTransitionToMapTransition(
// new_map and install its descriptors in the old_map. Since the old_map
// stores the descriptors for the new_map, remove the transition array of
// the new_map that is only in place to store the descriptors.
- old_map->transitions()->set_descriptors(new_map->instance_descriptors());
+ old_map->transitions()->descriptors_pointer()->set_value(
+ new_map->instance_descriptors());
new_map->ClearTransitions(GetHeap());
old_map->set_owns_descriptors(false);
Map* map;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698