| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 4fc724b707f38e8045a2d50e02ae8861ced7c419..16400437756c4bc518738bace5635d6127526b59 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -10358,31 +10358,6 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetArrayKeys) {
|
| }
|
|
|
|
|
| -// DefineAccessor takes an optional final argument which is the
|
| -// property attributes (e.g. DONT_ENUM, DONT_DELETE). IMPORTANT: due
|
| -// to the way accessors are implemented, it is set for both the getter
|
| -// and setter on the first call to DefineAccessor and ignored on
|
| -// subsequent calls.
|
| -RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineAccessor) {
|
| - RUNTIME_ASSERT(args.length() == 4 || args.length() == 5);
|
| - // Compute attributes.
|
| - PropertyAttributes attributes = NONE;
|
| - if (args.length() == 5) {
|
| - CONVERT_CHECKED(Smi, attrs, args[4]);
|
| - int value = attrs->value();
|
| - // Only attribute bits should be set.
|
| - ASSERT((value & ~(READ_ONLY | DONT_ENUM | DONT_DELETE)) == 0);
|
| - attributes = static_cast<PropertyAttributes>(value);
|
| - }
|
| -
|
| - CONVERT_CHECKED(JSObject, obj, args[0]);
|
| - CONVERT_CHECKED(String, name, args[1]);
|
| - CONVERT_CHECKED(Smi, flag, args[2]);
|
| - CONVERT_CHECKED(JSFunction, fun, args[3]);
|
| - return obj->DefineAccessor(name, flag->value() == 0, fun, attributes);
|
| -}
|
| -
|
| -
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_LookupAccessor) {
|
| ASSERT(args.length() == 3);
|
| CONVERT_CHECKED(JSObject, obj, args[0]);
|
|
|