Optimize DefineOneShotAccessor in messages.js to not call DefineOwnProperty.

Review URL: http://codereview.chromium.org/8490008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9886 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ricow@chromium.org 2011-11-07 09:30:28 +00:00
parent 9fa02bc5dd
commit 086ae44213

View File

@ -745,12 +745,8 @@ function DefineOneShotAccessor(obj, name, fun) {
hasBeenSet = true;
value = v;
}
var desc = { get: getter,
set: setter,
enumerable: false,
configurable: true };
desc = ToPropertyDescriptor(desc);
DefineOwnProperty(obj, name, desc, true);
%DefineOrRedefineAccessorProperty(obj, name, GETTER, getter, DONT_ENUM);
%DefineOrRedefineAccessorProperty(obj, name, SETTER, setter, DONT_ENUM);
}
function CallSite(receiver, fun, pos) {