diff options
Diffstat (limited to 'deps/v8/src/handles.cc')
-rw-r--r-- | deps/v8/src/handles.cc | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/deps/v8/src/handles.cc b/deps/v8/src/handles.cc index 48114d91a7..b3704df698 100644 --- a/deps/v8/src/handles.cc +++ b/deps/v8/src/handles.cc @@ -208,17 +208,6 @@ Handle<String> FlattenGetString(Handle<String> string) { } -Handle<Object> SetPrototype(Handle<JSFunction> function, - Handle<Object> prototype) { - ASSERT(function->should_have_prototype()); - CALL_HEAP_FUNCTION(function->GetIsolate(), - Accessors::FunctionSetPrototype(*function, - *prototype, - NULL), - Object); -} - - Handle<Object> SetProperty(Isolate* isolate, Handle<Object> object, Handle<Object> key, @@ -320,11 +309,6 @@ Handle<JSObject> DeepCopy(Handle<JSObject> obj) { } -Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info) { - CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->DefineAccessor(*info), Object); -} - - // Wrappers for scripts are kept alive and cached in weak global // handles referred from foreign objects held by the scripts as long as // they are used. When they are not used anymore, the garbage @@ -543,8 +527,9 @@ v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, args(isolate, interceptor->data(), *receiver, *object); v8::Handle<v8::Array> result; if (!interceptor->enumerator()->IsUndefined()) { - v8::NamedPropertyEnumerator enum_fun = - v8::ToCData<v8::NamedPropertyEnumerator>(interceptor->enumerator()); + v8::NamedPropertyEnumeratorCallback enum_fun = + v8::ToCData<v8::NamedPropertyEnumeratorCallback>( + interceptor->enumerator()); LOG(isolate, ApiObjectAccess("interceptor-named-enum", *object)); result = args.Call(enum_fun); } @@ -565,8 +550,9 @@ v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, args(isolate, interceptor->data(), *receiver, *object); v8::Handle<v8::Array> result; if (!interceptor->enumerator()->IsUndefined()) { - v8::IndexedPropertyEnumerator enum_fun = - v8::ToCData<v8::IndexedPropertyEnumerator>(interceptor->enumerator()); + v8::IndexedPropertyEnumeratorCallback enum_fun = + v8::ToCData<v8::IndexedPropertyEnumeratorCallback>( + interceptor->enumerator()); LOG(isolate, ApiObjectAccess("interceptor-indexed-enum", *object)); result = args.Call(enum_fun); #if ENABLE_EXTRA_CHECKS @@ -629,8 +615,12 @@ Handle<FixedArray> GetKeysInFixedArrayFor(Handle<JSReceiver> object, if (p->IsJSProxy()) { Handle<JSProxy> proxy(JSProxy::cast(*p), isolate); Handle<Object> args[] = { proxy }; - Handle<Object> names = Execution::Call( - isolate->proxy_enumerate(), object, ARRAY_SIZE(args), args, threw); + Handle<Object> names = Execution::Call(isolate, + isolate->proxy_enumerate(), + object, + ARRAY_SIZE(args), + args, + threw); if (*threw) return content; content = AddKeysFromJSArray(content, Handle<JSArray>::cast(names)); break; |