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

Unified Diff: src/objects.cc

Issue 228483005: Bugfix: A TransitionArray can disappear during copy. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Missing line. Created 6 years, 8 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 | src/transitions.h » ('j') | src/transitions.cc » ('J')
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 859cb8a520acc9c7d55c21439ebe5ca9d677cf47..e283cc787b00729b76c6c9e9eaffdcae1b9621bb 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -2501,11 +2501,7 @@ Handle<TransitionArray> Map::AddTransition(Handle<Map> map,
Handle<Name> key,
Handle<Map> target,
SimpleTransitionFlag flag) {
- if (map->HasTransitionArray()) {
- return TransitionArray::CopyInsert(map, key, target);
- }
- return TransitionArray::NewWith(
- flag, key, target, handle(map->GetBackPointer(), map->GetIsolate()));
+ return TransitionArray::AddTransition(map, key, target, flag);
Toon Verwaest 2014/04/10 11:49:28 I presume there's no point anymore to having this
mvstanton 2014/04/10 13:10:45 Yep, bye-bye silly wabbit.
}
« no previous file with comments | « no previous file | src/transitions.h » ('j') | src/transitions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698