diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-05-22 12:56:12 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2013-05-22 13:13:11 -0700 |
commit | 506fc4de1e820d97b637f6e01dda2ab97667efa7 (patch) | |
tree | e2f2fec2085f6c1a603b79be4e63e765292cca52 /deps/v8/src/handles.cc | |
parent | 52adc0d96309f9e04cbb220d63206e32b8309081 (diff) | |
download | node-new-506fc4de1e820d97b637f6e01dda2ab97667efa7.tar.gz |
v8: upgrade to v3.19.3
Diffstat (limited to 'deps/v8/src/handles.cc')
-rw-r--r-- | deps/v8/src/handles.cc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/deps/v8/src/handles.cc b/deps/v8/src/handles.cc index 5a5773ebd0..7a8d5c90bc 100644 --- a/deps/v8/src/handles.cc +++ b/deps/v8/src/handles.cc @@ -545,19 +545,14 @@ int GetScriptLineNumberSafe(Handle<Script> script, int code_pos) { } -void CustomArguments::IterateInstance(ObjectVisitor* v) { - v->VisitPointers(values_, values_ + ARRAY_SIZE(values_)); -} - - // Compute the property keys from the interceptor. // TODO(rossberg): support symbols in API, and filter here if needed. v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, Handle<JSObject> object) { Isolate* isolate = receiver->GetIsolate(); Handle<InterceptorInfo> interceptor(object->GetNamedInterceptor()); - CustomArguments args(isolate, interceptor->data(), *receiver, *object); - v8::AccessorInfo info(args.end()); + PropertyCallbackArguments + args(isolate, interceptor->data(), *receiver, *object); v8::Handle<v8::Array> result; if (!interceptor->enumerator()->IsUndefined()) { v8::NamedPropertyEnumerator enum_fun = @@ -566,7 +561,7 @@ v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, { // Leaving JavaScript. VMState<EXTERNAL> state(isolate); - result = enum_fun(info); + result = args.Call(enum_fun); } } #if ENABLE_EXTRA_CHECKS @@ -581,8 +576,8 @@ v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, Handle<JSObject> object) { Isolate* isolate = receiver->GetIsolate(); Handle<InterceptorInfo> interceptor(object->GetIndexedInterceptor()); - CustomArguments args(isolate, interceptor->data(), *receiver, *object); - v8::AccessorInfo info(args.end()); + PropertyCallbackArguments + args(isolate, interceptor->data(), *receiver, *object); v8::Handle<v8::Array> result; if (!interceptor->enumerator()->IsUndefined()) { v8::IndexedPropertyEnumerator enum_fun = @@ -591,7 +586,7 @@ v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, { // Leaving JavaScript. VMState<EXTERNAL> state(isolate); - result = enum_fun(info); + result = args.Call(enum_fun); #if ENABLE_EXTRA_CHECKS CHECK(result.IsEmpty() || v8::Utils::OpenHandle(*result)->IsJSObject()); #endif |