Lines Matching refs:isolate
21 HandleScope scope(isolate); in BUILTIN()
29 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
30 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
35 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, name, in BUILTIN()
36 Object::ToName(isolate, key)); in BUILTIN()
39 if (!PropertyDescriptor::ToPropertyDescriptor(isolate, attributes, &desc)) { in BUILTIN()
40 return ReadOnlyRoots(isolate).exception(); in BUILTIN()
44 isolate, Handle<JSReceiver>::cast(target), name, &desc, kDontThrow); in BUILTIN()
45 MAYBE_RETURN(result, ReadOnlyRoots(isolate).exception()); in BUILTIN()
46 return *isolate->factory()->ToBoolean(result.FromJust()); in BUILTIN()
51 HandleScope scope(isolate); in BUILTIN()
58 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
59 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
64 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, name, in BUILTIN()
65 Object::ToName(isolate, key)); in BUILTIN()
69 MAYBE_RETURN(result, ReadOnlyRoots(isolate).exception()); in BUILTIN()
70 return *isolate->factory()->ToBoolean(result.FromJust()); in BUILTIN()
75 HandleScope scope(isolate); in BUILTIN()
76 Handle<Object> target = args.atOrUndefined(isolate, 1); in BUILTIN()
77 Handle<Object> key = args.atOrUndefined(isolate, 2); in BUILTIN()
82 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
83 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
88 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, name, in BUILTIN()
89 Object::ToName(isolate, key)); in BUILTIN()
92 isolate, Object::GetPropertyOrElement(receiver, name, in BUILTIN()
98 HandleScope scope(isolate); in BUILTIN()
105 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
106 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
111 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, name, in BUILTIN()
112 Object::ToName(isolate, key)); in BUILTIN()
116 isolate, Handle<JSReceiver>::cast(target), name, &desc); in BUILTIN()
117 MAYBE_RETURN(found, ReadOnlyRoots(isolate).exception()); in BUILTIN()
118 if (!found.FromJust()) return ReadOnlyRoots(isolate).undefined_value(); in BUILTIN()
119 return *desc.ToObject(isolate); in BUILTIN()
124 HandleScope scope(isolate); in BUILTIN()
130 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
131 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
135 RETURN_RESULT_OR_FAILURE(isolate, in BUILTIN()
136 JSReceiver::GetPrototype(isolate, receiver)); in BUILTIN()
141 HandleScope scope(isolate); in BUILTIN()
147 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
148 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
154 MAYBE_RETURN(result, ReadOnlyRoots(isolate).exception()); in BUILTIN()
155 return *isolate->factory()->ToBoolean(result.FromJust()); in BUILTIN()
160 HandleScope scope(isolate); in BUILTIN()
166 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
167 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
173 isolate, keys, in BUILTIN()
177 return *isolate->factory()->NewJSArrayWithElements(keys); in BUILTIN()
182 HandleScope scope(isolate); in BUILTIN()
188 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
189 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
195 MAYBE_RETURN(result, ReadOnlyRoots(isolate).exception()); in BUILTIN()
196 return *isolate->factory()->ToBoolean(result.FromJust()); in BUILTIN()
201 HandleScope scope(isolate); in BUILTIN()
202 Handle<Object> target = args.atOrUndefined(isolate, 1); in BUILTIN()
203 Handle<Object> key = args.atOrUndefined(isolate, 2); in BUILTIN()
204 Handle<Object> value = args.atOrUndefined(isolate, 3); in BUILTIN()
209 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
210 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
215 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, name, in BUILTIN()
216 Object::ToName(isolate, key)); in BUILTIN()
219 isolate, receiver, name, Handle<JSReceiver>::cast(target)); in BUILTIN()
222 MAYBE_RETURN(result, ReadOnlyRoots(isolate).exception()); in BUILTIN()
223 return *isolate->factory()->ToBoolean(result.FromJust()); in BUILTIN()
228 HandleScope scope(isolate); in BUILTIN()
235 isolate, NewTypeError(MessageTemplate::kCalledOnNonObject, in BUILTIN()
236 isolate->factory()->NewStringFromAsciiChecked( in BUILTIN()
240 if (!proto->IsJSReceiver() && !proto->IsNull(isolate)) { in BUILTIN()
242 isolate, NewTypeError(MessageTemplate::kProtoObjectOrNull, proto)); in BUILTIN()
247 MAYBE_RETURN(result, ReadOnlyRoots(isolate).exception()); in BUILTIN()
248 return *isolate->factory()->ToBoolean(result.FromJust()); in BUILTIN()