[stubs] Also handle properties of the JSBuiltinsObject in the fast case.
authorbmeurer <bmeurer@chromium.org>
Tue, 28 Jul 2015 06:48:08 +0000 (23:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Jul 2015 06:48:24 +0000 (06:48 +0000)
commit6cf94ebde1ad31dfce0af4dfa642468ec21b0174
tree4fbd168a0e33cd6029b4dd526e639a53779e8a45
parent5dff4bdff06c0463db1e876af7541af2b715392c
[stubs] Also handle properties of the JSBuiltinsObject in the fast case.

We can apply the shortcut used for data properties of the JSGlobalObject
to builtin properties as well. This mostly affects the custom properties
we use for the Math functions (i.e. rngstate for Math.random() and kMath
for sin, cos and friends).

Drive-by-fix: Also mark the internal builtin typed arrays properties
(rngstate, kMath and rempio2result) as READ_ONLY, as they should not be
touched after genesis.

R=yangguo@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29887}
src/bootstrapper.cc
src/runtime/runtime-object.cc