Lines Matching refs:isolate
65 bool Formatter(Isolate* isolate, BuiltinArguments& args, int index) {
74 HandleScope scope(isolate);
75 auto percent = isolate->factory()->LookupSingleCharacterStringFromCode('%');
79 state.off = String::IndexOf(isolate, state.str, percent, state.off);
85 uint16_t specifier = state.str->Get(state.off + 1, isolate);
88 current = isolate->factory()->nan_value();
91 isolate->factory()->NewNumberFromInt(10)};
92 auto builtin = specifier == 'f' ? isolate->global_parse_float_fun()
93 : isolate->global_parse_int_fun();
94 if (!Execution::CallBuiltin(isolate, builtin,
95 isolate->factory()->undefined_value(),
103 if (!Execution::CallBuiltin(isolate, isolate->string_function(),
104 isolate->factory()->undefined_value(),
144 Isolate* isolate, const internal::BuiltinArguments& args,
147 CHECK(!isolate->has_pending_exception());
148 CHECK(!isolate->has_scheduled_exception());
149 if (!isolate->console_delegate()) return;
150 HandleScope scope(isolate);
153 isolate, args.target(), isolate->factory()->console_context_id_symbol());
157 isolate, args.target(),
158 isolate->factory()->console_context_name_symbol());
161 : isolate->factory()->anonymous_string();
162 (isolate->console_delegate()->*func)(
167 void LogTimerEvent(Isolate* isolate, BuiltinArguments args,
169 if (!isolate->logger()->is_logging()) return;
170 HandleScope scope(isolate);
178 LOG(isolate, TimerEvent(se, raw_name));
185 ConsoleCall(isolate, args, &debug::ConsoleDelegate::call); \
186 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); \
187 return ReadOnlyRoots(isolate).undefined_value(); \
194 if (!Formatter(isolate, args, index)) { \
195 return ReadOnlyRoots(isolate).exception(); \
197 ConsoleCall(isolate, args, &debug::ConsoleDelegate::call); \
198 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); \
199 return ReadOnlyRoots(isolate).undefined_value(); \
205 LogTimerEvent(isolate, args, v8::LogEventStatus::kStart);
206 ConsoleCall(isolate, args, &debug::ConsoleDelegate::Time);
207 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate);
208 return ReadOnlyRoots(isolate).undefined_value();
212 LogTimerEvent(isolate, args, v8::LogEventStatus::kEnd);
213 ConsoleCall(isolate, args, &debug::ConsoleDelegate::TimeEnd);
214 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate);
215 return ReadOnlyRoots(isolate).undefined_value();
219 LogTimerEvent(isolate, args, v8::LogEventStatus::kStamp);
220 ConsoleCall(isolate, args, &debug::ConsoleDelegate::TimeStamp);
221 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate);
222 return ReadOnlyRoots(isolate).undefined_value();
227 void InstallContextFunction(Isolate* isolate, Handle<JSObject> target,
230 Factory* const factory = isolate->factory();
232 Handle<NativeContext> context(isolate->native_context());
233 Handle<Map> map = isolate->sloppy_function_without_prototype_map();
236 Name::ToFunctionName(isolate, factory->InternalizeUtf8String(name))
243 Factory::JSFunctionBuilder{isolate, info, context}.set_map(map).Build();
249 JSObject::AddProperty(isolate, fun, factory->console_context_id_symbol(),
250 handle(Smi::FromInt(context_id), isolate), NONE);
252 JSObject::AddProperty(isolate, fun, factory->console_context_name_symbol(),
255 JSObject::AddProperty(isolate, target, name_string, fun, NONE);
261 HandleScope scope(isolate);
263 Factory* const factory = isolate->factory();
270 Factory::JSFunctionBuilder{isolate, info, isolate->native_context()}
273 Handle<JSObject> prototype = factory->NewJSObject(isolate->object_function());
278 int id = isolate->last_console_context_id() + 1;
279 isolate->set_last_console_context_id(id);
282 InstallContextFunction(isolate, context, #name, Builtin::kConsole##call, id, \
287 InstallContextFunction(isolate, context, "time", Builtin::kConsoleTime, id,
289 InstallContextFunction(isolate, context, "timeEnd", Builtin::kConsoleTimeEnd,
291 InstallContextFunction(isolate, context, "timeStamp",