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

Unified Diff: src/objects.h

Issue 861173004: Do not generalize field representations when making elements kind or observed transition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 49f48a2c0853b6122ded30d9e6525818db82962b..c8d063c677c3a475482c96de1e7b1f89e57fdeb5 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6144,6 +6144,11 @@ class Map: public HeapObject {
inline void AppendDescriptor(Descriptor* desc);
+ // Returns a copy of the map, prepared for inserting into the transition
+ // tree (if the |map| owns descriptors then the new one will share
+ // descriptors with |map|).
+ static Handle<Map> CopyForTransition(Handle<Map> map, const char* reason);
+
// Returns a copy of the map, with all transitions dropped from the
// instance descriptors.
static Handle<Map> Copy(Handle<Map> map, const char* reason);
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698