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

Unified Diff: src/objects-inl.h

Issue 17287003: Emit deprecated check for constant function transitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index a8aa1bfe6bffde388037d4c9844bf06143bf4067..5d4d9d3715be14a17f795d6366adda03262c1a4d 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3624,6 +3624,9 @@ bool Map::CanBeDeprecated() {
details.representation().IsHeapObject()) {
return true;
}
+ if (FLAG_track_fields && details.type() == CONSTANT_FUNCTION) {
+ return true;
+ }
}
return false;
}
« 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