Lines Matching refs:Handle
22 Handle<AccessorInfo> Accessors::MakeAccessor(
23 Isolate* isolate, Handle<Name> name, AccessorNameGetterCallback getter,
26 Handle<AccessorInfo> info = factory->NewAccessorInfo();
35 Handle<Object> get = v8::FromCData(isolate, getter);
37 Handle<Object> set = v8::FromCData(isolate, setter);
42 Handle<Object> js_get = v8::FromCData(isolate, redirected);
49 static V8_INLINE bool CheckForName(Handle<Name> name,
50 Handle<String> property_name,
63 bool Accessors::IsJSObjectFieldAccessor(Handle<Map> map, Handle<Name> name,
86 Isolate* isolate, Handle<Object> receiver, Handle<JSObject> holder,
87 Handle<Name> name, Handle<Object> value) {
109 Handle<Object> receiver = Utils::OpenHandle(*info.This());
110 Handle<JSObject> holder =
111 Handle<JSObject>::cast(Utils::OpenHandle(*info.Holder()));
112 Handle<Name> name = Utils::OpenHandle(*key);
113 Handle<Object> value = Utils::OpenHandle(*val);
134 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate)));
138 Handle<AccessorInfo> Accessors::ArgumentsIteratorInfo(
140 Handle<Name> name = isolate->factory()->iterator_symbol();
161 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate)));
172 Handle<JSReceiver> object = Utils::OpenHandle(*info.Holder());
173 Handle<JSArray> array = Handle<JSArray>::cast(object);
174 Handle<Object> length_obj = Utils::OpenHandle(*val);
223 Handle<AccessorInfo> Accessors::ArrayLengthInfo(
242 Handle<Object> result;
243 if (!holder->GetExport(Handle<String>::cast(Utils::OpenHandle(*name)))
257 Handle<JSModuleNamespace> holder =
258 Handle<JSModuleNamespace>::cast(Utils::OpenHandle(*info.Holder()));
270 Handle<AccessorInfo> Accessors::ModuleNamespaceEntryInfo(
271 Isolate* isolate, Handle<String> name, PropertyAttributes attributes) {
302 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(result, isolate)));
306 Handle<AccessorInfo> Accessors::StringLengthInfo(
327 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
331 Handle<AccessorInfo> Accessors::ScriptColumnOffsetInfo(
333 Handle<String> name(isolate->factory()->InternalizeOneByteString(
353 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(id, isolate)));
357 Handle<AccessorInfo> Accessors::ScriptIdInfo(
359 Handle<String> name(
378 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(source, isolate)));
382 Handle<AccessorInfo> Accessors::ScriptNameInfo(
402 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(source, isolate)));
406 Handle<AccessorInfo> Accessors::ScriptSourceInfo(
427 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
431 Handle<AccessorInfo> Accessors::ScriptLineOffsetInfo(
433 Handle<String> name(isolate->factory()->InternalizeOneByteString(
454 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
458 Handle<AccessorInfo> Accessors::ScriptTypeInfo(
460 Handle<String> name(
480 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
484 Handle
486 Handle<String> name(isolate->factory()->InternalizeOneByteString(
506 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(url, isolate)));
510 Handle<AccessorInfo> Accessors::ScriptSourceUrlInfo(
531 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(url, isolate)));
535 Handle<AccessorInfo> Accessors::ScriptSourceMappingUrlInfo(
555 info.GetReturnValue().Set(Utils::ToLocal(Handle<Object>(res, isolate)));
559 Handle<AccessorInfo> Accessors::ScriptContextDataInfo(
561 Handle<String> name(isolate->factory()->InternalizeOneByteString(
578 Handle<Object> object = Utils::OpenHandle(*info.Holder());
579 Handle<Script> script(
580 Script::cast(Handle<JSValue>::cast(object)->value()), isolate);
581 Handle<Object> result = isolate->factory()->undefined_value();
583 Handle<SharedFunctionInfo> eval_from_shared(
586 Handle<Script> eval_from_script(Script::cast(eval_from_shared->script()));
595 Handle<AccessorInfo> Accessors::ScriptEvalFromScriptInfo(
597 Handle<String> name(isolate->factory()->InternalizeOneByteString(
614 Handle<Object> object = Utils::OpenHandle(*info.Holder());
615 Handle<Script> script(
616 Script::cast(Handle<JSValue>::cast(object)->value()), isolate);
617 Handle<Object> result = isolate->factory()->undefined_value();
619 result = Handle<Object>(Smi::FromInt(script->GetEvalPosition()), isolate);
625 Handle<AccessorInfo> Accessors::ScriptEvalFromScriptPositionInfo(
627 Handle<String> name(isolate->factory()->InternalizeOneByteString(
644 Handle<Object> object = Utils::OpenHandle(*info.Holder());
645 Handle<Script> script(
646 Script::cast(Handle<JSValue>::cast(object)->value()), isolate);
647 Handle<Object> result = isolate->factory()->undefined_value();
649 Handle<SharedFunctionInfo> shared(
653 result = Handle<Object>(shared->name(), isolate);
655 result = Handle<Object>(shared->inferred_name(), isolate);
662 Handle<AccessorInfo> Accessors::ScriptEvalFromFunctionNameInfo(
664 Handle<String> name(isolate->factory()->InternalizeOneByteString(
675 static Handle<Object> GetFunctionPrototype(Isolate* isolate,
676 Handle<JSFunction> function) {
678 Handle<Object> proto = isolate->factory()->NewFunctionPrototype(function);
681 return Handle<Object>(function->prototype(), isolate);
686 Isolate* isolate, Handle<JSFunction> function, Handle<Object> value) {
693 MaybeHandle<Object> Accessors::FunctionSetPrototype(Handle<JSFunction> function,
694 Handle<Object> prototype) {
708 Handle<JSFunction> function =
709 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
710 Handle<Object> result = GetFunctionPrototype(isolate, function);
719 Handle<Object> value = Utils::OpenHandle(*val);
720 Handle<JSFunction> object =
721 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
730 Handle<AccessorInfo> Accessors::FunctionPrototypeInfo(
750 Handle<JSFunction> function =
751 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
752 Handle<Object> result;
754 result = handle(Smi::kZero, isolate);
761 Handle<AccessorInfo> Accessors::FunctionLengthInfo(
779 Handle<JSFunction> function =
780 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
781 Handle<Object> result = JSFunction::GetName(isolate, function);
785 Handle<AccessorInfo> Accessors::FunctionNameInfo(
798 static Handle<Object> ArgumentsForInlinedFunction(
800 Handle<JSFunction> inlined_function,
821 Handle<JSObject> arguments =
823 Handle<FixedArray> array = factory->NewFixedArray(argument_count);
829 Handle<Object> value = iter->GetValue();
845 Handle<JSFunction> function) {
858 Handle<Object> GetFunctionArguments(Isolate* isolate,
859 Handle<JSFunction> function) {
881 Handle<JSObject> arguments = isolate->factory()->NewArgumentsObject(
883 Handle<FixedArray> array = isolate->factory()->NewFixedArray(length);
910 Handle<JSObject> Accessors::FunctionGetArguments(Handle<JSFunction> function) {
911 Handle<Object> arguments =
914 return Handle<JSObject>::cast(arguments);
923 Handle<JSFunction> function =
924 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
925 Handle<Object> result =
927 ? Handle<Object>::cast(isolate->factory()->null_value())
933 Handle<AccessorInfo> Accessors::FunctionArgumentsInfo(
1001 Handle<JSFunction> function) {
1040 return Handle<JSFunction>(caller);
1049 Handle<JSFunction> function =
1050 Handle<JSFunction>::cast(Utils::OpenHandle(*info.Holder()));
1051 Handle<Object> result;
1054 Handle<JSFunction> caller;
1064 Handle<AccessorInfo> Accessors::FunctionCallerInfo(
1082 Handle<JSBoundFunction> function =
1083 Handle<JSBoundFunction>::cast(Utils::OpenHandle(*info.Holder()));
1085 Handle<Smi> target_length;
1086 Handle<JSFunction> target(JSFunction::cast(function->bound_target_function()),
1089 target_length = handle(Smi::kZero, isolate);
1097 Handle<Object> result(Smi::FromInt(length), isolate);
1101 Handle<AccessorInfo> Accessors::BoundFunctionLengthInfo(
1118 Handle<JSBoundFunction> function =
1119 Handle<JSBoundFunction>::cast(Utils::OpenHandle(*info.Holder()));
1120 Handle<Object> result;
1128 Handle<AccessorInfo> Accessors::BoundFunctionNameInfo(
1142 Handle<JSObject> error) {
1151 bool IsAccessor(Handle<Object> receiver, Handle<Name> name,
1152 Handle<JSObject> holder) {
1170 Handle<JSObject> holder =
1171 Handle<JSObject>::cast(Utils::OpenHandle(*info.Holder()));
1175 Handle<Object> stack_trace;
1176 Handle<Symbol> stack_trace_symbol = isolate->factory()->stack_trace_symbol();
1181 Handle<Object> result = isolate->factory()->undefined_value();
1189 Handle<Object> formatted_stack_trace;
1205 Handle<Object> receiver =
1207 Handle<Name> name = Utils::OpenHandle(*key);
1232 Handle<JSObject> obj = Handle<JSObject>::cast(
1236 Handle<Symbol> stack_trace_symbol = isolate->factory()->stack_trace_symbol();
1244 Handle<AccessorInfo> Accessors::ErrorStackInfo(Isolate* isolate,
1246 Handle<AccessorInfo> info =