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

Issue 88026: Added ForceSet on objects (Closed)

Created:
11 years, 8 months ago by Christian Plesner Hansen
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Added method to forcefully set a local property, ignoring ReadOnly, accessors or interceptors.

Patch Set 1 #

Patch Set 2 : Added docs for ForceSet #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -9 lines) Patch
M include/v8.h View 1 1 chunk +10 lines, -0 lines 1 comment Download
M src/api.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M src/handles.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/handles.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/objects.cc View 2 chunks +15 lines, -9 lines 1 comment Download
M src/runtime.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 chunk +53 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +115 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Christian Plesner Hansen
11 years, 8 months ago (2009-04-21 13:09:15 UTC) #1
Mads Ager (chromium)
11 years, 8 months ago (2009-04-21 13:24:16 UTC) #2
LGTM

http://codereview.chromium.org/88026/diff/1001/1002
File include/v8.h (right):

http://codereview.chromium.org/88026/diff/1001/1002#newcode1049
Line 1049: // Sets a local property on this object, bypassing interceptors and
For now this only forces the set for string keys, right?  We should probably
document here that the set is not forced if the key can be converted to an array
index.

http://codereview.chromium.org/88026/diff/1001/1006
File src/objects.cc (right):

http://codereview.chromium.org/88026/diff/1001/1006#newcode1823
Line 1823: case CALLBACKS: case INTERCEPTOR:
Two lines?

Powered by Google App Engine
This is Rietveld 408576698