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

Issue 16051002: Fix Object.freeze for objects with mixed accessors and data properties (Closed)

Created:
7 years, 7 months ago by adamk
Modified:
7 years, 7 months ago
Reviewers:
Toon Verwaest
CC:
v8-dev, Jakob Kummerow
Visibility:
Public.

Description

Fix Object.freeze for objects with mixed accessors and data properties The bug in the existing code was that it modified the |attributes| local variable on its way through the loop in CopyUpToAddAttributes. But that affected any properties updated after an accessor property. The code now sets up a mask each time and applies that instead of mutating |attributes|. R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=14818

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M src/objects.cc View 1 chunk +6 lines, -3 lines 1 comment Download
M test/mjsunit/object-freeze.js View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
adamk
This should unblock the V8 roll. Stupid, stupid bug...
7 years, 7 months ago (2013-05-25 00:52:49 UTC) #1
Toon Verwaest
https://codereview.chromium.org/16051002/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/16051002/diff/1/src/objects.cc#newcode6747 src/objects.cc:6747: int mask = DONT_DELETE | DONT_ENUM; This is very ...
7 years, 7 months ago (2013-05-25 10:52:59 UTC) #2
Toon Verwaest
Nevermind my comments. I obviously didn't review it properly. lgtm :)
7 years, 7 months ago (2013-05-27 10:55:58 UTC) #3
Toon Verwaest
7 years, 7 months ago (2013-05-27 10:56:34 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r14818 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698