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

Unified Diff: src/typing.cc

Issue 22562004: Fix Object.freeze, Object.observe wrt CountOperation and CompoundAssignment. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add regression test Created 7 years, 4 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/hydrogen.cc ('k') | test/mjsunit/harmony/object-observe.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index df2cee51e9e7553404a10004922c53de4ee89294..f8e2a7c206d80ee0e4b26096f97cb4173c88132f 100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -388,9 +388,7 @@ void AstTyper::VisitAssignment(Assignment* expr) {
Property* prop = target->AsProperty();
if (prop != NULL) {
prop->RecordTypeFeedback(oracle(), zone());
- if (!prop->key()->IsPropertyName()) { // i.e., keyed
- expr->RecordTypeFeedback(oracle(), zone());
- }
+ expr->RecordTypeFeedback(oracle(), zone());
}
RECURSE(Visit(expr->binary_operation()));
« no previous file with comments | « src/hydrogen.cc ('k') | test/mjsunit/harmony/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698