Lines Matching refs:isolate

18   HandleScope scope(isolate);
19 if (!args.new_target()->IsUndefined(isolate)) { // [[Construct]]
21 isolate, NewTypeError(MessageTemplate::kNotConstructor,
22 isolate->factory()->BigInt_string()));
25 Handle<Object> value = args.atOrUndefined(isolate, 1);
29 isolate, value,
30 JSReceiver::ToPrimitive(isolate, Handle<JSReceiver>::cast(value),
35 RETURN_RESULT_OR_FAILURE(isolate, BigInt::FromNumber(isolate, value));
37 RETURN_RESULT_OR_FAILURE(isolate, BigInt::FromObject(isolate, value));
42 HandleScope scope(isolate);
43 Handle<Object> bits_obj = args.atOrUndefined(isolate, 1);
44 Handle<Object> bigint_obj = args.atOrUndefined(isolate, 2);
48 isolate, bits,
49 Object::ToIndex(isolate, bits_obj, MessageTemplate::kInvalidIndex));
52 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint,
53 BigInt::FromObject(isolate, bigint_obj));
55 RETURN_RESULT_OR_FAILURE(isolate,
56 BigInt::AsUintN(isolate, bits->Number(), bigint));
60 HandleScope scope(isolate);
61 Handle<Object> bits_obj = args.atOrUndefined(isolate, 1);
62 Handle<Object> bigint_obj = args.atOrUndefined(isolate, 2);
66 isolate, bits,
67 Object::ToIndex(isolate, bits_obj, MessageTemplate::kInvalidIndex));
70 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, bigint,
71 BigInt::FromObject(isolate, bigint_obj));
73 return *BigInt::AsIntN(isolate, bits->Number(), bigint);
78 MaybeHandle<BigInt> ThisBigIntValue(Isolate* isolate, Handle<Object> value,
87 if (data.IsBigInt()) return handle(BigInt::cast(data), isolate);
91 isolate,
93 isolate->factory()->NewStringFromAsciiChecked(caller),
94 isolate->factory()->BigInt_string()),
99 Isolate* isolate, const char* builtin_name) {
103 isolate, x, ThisBigIntValue(isolate, receiver, builtin_name));
107 if (!radix->IsUndefined(isolate)) {
109 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, radix,
110 Object::ToInteger(isolate, radix));
115 isolate, NewRangeError(MessageTemplate::kToRadixFormatRange));
121 RETURN_RESULT_OR_FAILURE(isolate, BigInt::ToString(isolate, x, radix_number));
127 HandleScope scope(isolate);
133 isolate, x, ThisBigIntValue(isolate, args.receiver(), method_name));
136 isolate,
137 Intl::NumberToLocaleString(isolate, x, args.atOrUndefined(isolate, 1),
138 args.atOrUndefined(isolate, 2), method_name));
141 Handle<Object> radix = isolate->factory()->undefined_value();
142 return BigIntToStringImpl(args.receiver(), radix, isolate, method_name);
146 HandleScope scope(isolate);
147 Handle<Object> radix = args.atOrUndefined(isolate, 1);
148 return BigIntToStringImpl(args.receiver(), radix, isolate,
153 HandleScope scope(isolate);
155 isolate,
156 ThisBigIntValue(isolate, args.receiver(), "BigInt.prototype.valueOf"));