[strong] Implement per-object restrictions behaviour for prototype setting
authorconradw <conradw@chromium.org>
Wed, 27 May 2015 17:06:36 +0000 (10:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 27 May 2015 17:06:43 +0000 (17:06 +0000)
commit629d2750732236b2ac128bd253b97928026d3435
tree7e091e794494d403294c274a3262bbba87eab52b
parenta814516a08c7fba50be8a8100f985473972dffbc
[strong] Implement per-object restrictions behaviour for prototype setting

Implements the strong mode proposal's restrictions on the ability of user code
to modify the prototype of strong objects.

Setting the strong bit is still wip, so this change will only affect those
objects that have the bit correctly set. The tests reflect this, and will be
expanded as more objects can be marked as strong.

BUG=v8:3956
LOG=N

Review URL: https://codereview.chromium.org/1143623002

Cr-Commit-Position: refs/heads/master@{#28664}
src/messages.h
src/objects.cc
test/mjsunit/strong/object-set-prototype.js [new file with mode: 0644]