Lines Matching defs:from
186 // Creates some basic objects. Used for creating a context from scratch.
188 // Creates the empty function. Used for creating a context from scratch.
207 // context from scratch or using a deserialized one from the context snapshot
216 // passed through the API. The global from the snapshot is detached from the
220 // replace the global object from the deserialized native context.
226 // New context initialization. Used for creating a context from scratch.
270 // Used both for deserialized and from-scratch contexts to add the extensions
292 // Migrates all properties from the 'from' object to the 'to'
293 // object and overrides the prototype in 'to' with the one from
294 // 'from'.
295 void TransferObject(Handle<JSObject> from, Handle<JSObject> to);
296 void TransferNamedProperties(Handle<JSObject> from, Handle<JSObject> to);
297 void TransferIndexedProperties(Handle<JSObject> from, Handle<JSObject> to);
1035 "Async-from-Sync Iterator");
1396 // Re-initialize the global proxy with the global proxy function from the
1764 SimpleInstallFunction(isolate_, array_function, "from", Builtin::kArrayFrom,
2748 // TODO(ishell): microtask queue pointer will be moved from native context
3327 SimpleInstallFunction(isolate_, typed_array_fun, "from",
3670 // Setup the map for IterResultObjects created from builtins in such a
4013 // Copy constructor from the sloppy arguments boilerplate.
4112 // Initialize features from more mature to less mature, because less mature
4820 INSTALL_TEMPORAL_FUNC(PlainDate, from, From, 1)
4899 INSTALL_TEMPORAL_FUNC(PlainTime, from, From, 1)
4947 INSTALL_TEMPORAL_FUNC(PlainDateTime, from, From, 1)
5024 INSTALL_TEMPORAL_FUNC(ZonedDateTime, from, From, 1)
5112 INSTALL_TEMPORAL_FUNC(Duration, from, From, 1)
5162 INSTALL_TEMPORAL_FUNC(Instant, from, From, 1)
5212 INSTALL_TEMPORAL_FUNC(PlainYearMonth, from, From, 1)
5270 INSTALL_TEMPORAL_FUNC(PlainMonthDay, from, From, 1)
5310 INSTALL_TEMPORAL_FUNC(TimeZone, from, From, 1)
5338 INSTALL_TEMPORAL_FUNC(Calendar, from, From, 1)
6104 void Genesis::TransferNamedProperties(Handle<JSObject> from,
6111 if (from->HasFastProperties()) {
6113 from->map().instance_descriptors(isolate()), isolate());
6114 for (InternalIndex i : from->map().IterateOwnDescriptors()) {
6122 FieldIndex index = FieldIndex::ForDescriptor(from->map(), i);
6124 isolate(), from, details.representation(), index);
6147 } else if (from->IsJSGlobalObject()) {
6150 JSGlobalObject::cast(*from).global_dictionary(kAcquireLoad), isolate());
6177 from->property_dictionary_swiss(), isolate());
6199 Handle<NameDictionary>(from->property_dictionary(), isolate());
6223 void Genesis::TransferIndexedProperties(Handle<JSObject> from,
6227 Handle<FixedArray>(FixedArray::cast(from->elements()), isolate());
6232 void Genesis::TransferObject(Handle<JSObject> from, Handle<JSObject> to) {
6235 DCHECK(!from->IsJSArray());
6238 TransferNamedProperties(from, to);
6239 TransferIndexedProperties(from, to);
6242 Handle<HeapObject> proto(from->map().prototype(), isolate());
6248 // Find global.Array.prototype to inherit from.
6263 // Update map with length accessor from Array.
6324 // We can only de-serialize a context if the isolate was initialized from
6325 // a snapshot. Otherwise we have to build the context from scratch.
6326 // Also create a context from scratch to expose natives, if required by flag.
6346 // properties from the deserialized global are copied onto it.
6389 PrintF("[Initializing context from scratch took %0.3f ms]\n", ms);
6491 char* Bootstrapper::RestoreState(char* from) {
6492 nesting_ = *reinterpret_cast<NestingCounterType*>(from);
6493 return from + sizeof(NestingCounterType);