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

Unified Diff: src/hydrogen.cc

Issue 17071002: Add soft-deopt for uninitialized assignment (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 | « src/ast.cc ('k') | src/type-info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 74bf48961177ee7baa2063d294005c10bb7f93bf..3fc4a62b496461a2225b524672a9fd733aa434ab 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -6484,6 +6484,9 @@ void HOptimizedGraphBuilder::HandlePropertyAssignment(Assignment* expr) {
return HandlePolymorphicStoreNamedField(expr, object, value, types, name);
} else {
Drop(2);
+ if (expr->IsUninitialized()) {
+ AddSoftDeoptimize();
+ }
instr = BuildStoreNamedGeneric(object, name, value);
}
« no previous file with comments | « src/ast.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698