libraries/v8/runtime.cc
// Return information on whether an object has a named or indexed interceptor.
// args[0]: object
Return information on whether an object has a named or indexed interceptor.
args[0]: object
Return information on whether an object has a named or indexed interceptor . args [ 0 ] : object
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetInterceptorInfo) {
  HandleScope scope(isolate);
  ASSERT(args.length() == 1);
  if (!args[0]->IsJSObject()) {
    return Smi::FromInt(0);
  }
  CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
  int result = 0;
  if (obj->HasNamedInterceptor()) result |= 2;
  if (obj->HasIndexedInterceptor()) result |= 1;
  return Smi::FromInt(result);
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_GetInterceptorInfo ) { HandleScope scope ( isolate ) ; ASSERT ( args . length ( ) == 1 ) ; if ( ! args [ 0 ] -> IsJSObject ( ) ) { return Smi :: FromInt ( 0 ) ; } CONVERT_ARG_HANDLE_CHECKED ( JSObject , obj , 0 ) ; int result = 0 ; if ( obj -> HasNamedInterceptor ( ) ) result |= 2 ; if ( obj -> HasIndexedInterceptor ( ) ) result |= 1 ; return Smi :: FromInt ( result ) ; }
Return information on whether an object has a named or indexed interceptor.
Return information on whether an object has a named or indexed interceptor .