Lines Matching defs:result
272 HeapObject result;
278 result = allocator->AllocateRawWith<HeapAllocator::kRetryOrFail>(
281 result = allocator->AllocateRawWith<HeapAllocator::kLightRetry>(
284 if (result.is_null()) return MaybeHandle<Code>();
290 result.set_map_after_allocation(*isolate_->factory()->code_map(),
292 Handle<Code> code = handle(Code::cast(result), isolate_);
309 HeapObject result;
310 if (!heap->AllocateRaw(object_size, allocation_type).To(&result)) {
313 CHECK(!result.is_null());
318 result.set_map_after_allocation(*local_isolate_->factory()->code_map(),
320 Handle<Code> code = handle(Code::cast(result), local_isolate_);
348 HeapObject result = allocator()->AllocateRawWith<HeapAllocator::kRetryOrFail>(
353 result.set_map_after_allocation(*map, write_barrier_mode);
356 Object(result.ptr() + map->instance_size()));
359 return result;
376 HeapObject result = allocator()->AllocateRawWith<HeapAllocator::kRetryOrFail>(
382 result.set_map_after_allocation(*map, write_barrier_mode);
383 return result;
391 HeapObject result = allocator()->AllocateRawWith<HeapAllocator::kRetryOrFail>(
393 heap->CreateFillerObjectAt(result.address(), size, ClearRecordedSlots::kNo);
394 return Handle<HeapObject>(result, isolate());
398 auto result = NewStructInternal<PrototypeInfo>(PROTOTYPE_INFO_TYPE,
401 result.set_prototype_users(Smi::zero());
402 result.set_registry_slot(PrototypeInfo::UNREGISTERED);
403 result.set_bit_field(0);
404 result.set_module_namespace(*undefined_value(), SKIP_WRITE_BARRIER);
405 return handle(result, isolate());
410 auto result =
413 result.set_keys(*keys);
414 result.set_indices(*indices);
415 return handle(result, isolate());
420 auto result = NewStructInternal<Tuple2>(TUPLE2_TYPE, allocation);
422 result.set_value1(*value1);
423 result.set_value2(*value2);
424 return handle(result, isolate());
453 HeapObject result = AllocateRawFixedArray(length, allocation);
455 result.set_map_after_allocation(*property_array_map(), SKIP_WRITE_BARRIER);
456 PropertyArray array = PropertyArray::cast(result);
470 HeapObject result;
471 if (!allocation.To(&result)) return MaybeHandle<FixedArray>();
474 LargePage::FromHeapObject(result)->ProgressBar().Enable();
477 result.set_map_after_allocation(*fixed_array_map(), SKIP_WRITE_BARRIER);
478 FixedArray array = FixedArray::cast(result);
563 HeapObject result = AllocateRawWithImmortalMap(size, allocation, *map);
564 Handle<T> table(T::cast(result), isolate());
640 SwissNameDictionary result = SwissNameDictionary::cast(obj);
641 result.Initialize(isolate(), *empty_meta_table, 0);
642 return handle(result, isolate());
685 Handle<SeqOneByteString> result;
686 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result,
692 CopyChars(SeqOneByteString::cast(*result).GetChars(no_gc), string.begin(),
694 return result;
707 Handle<SeqOneByteString> result;
709 isolate(), result,
713 decoder.Decode(result->GetChars(no_gc), utf8_data);
714 return result;
718 Handle<SeqTwoByteString> result;
720 isolate(), result,
724 decoder.Decode(result->GetChars(no_gc), utf8_data);
725 return result;
756 Handle<SeqOneByteString> result;
758 isolate(), result,
765 decoder.Decode(result->GetChars(no_gc), utf8_data);
766 return result;
770 Handle<SeqTwoByteString> result;
772 isolate(), result,
779 decoder.Decode(result->GetChars(no_gc), utf8_data);
780 return result;
790 Handle<SeqOneByteString> result;
791 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result,
794 CopyChars(result->GetChars(no_gc), string, length);
795 return result;
797 Handle<SeqTwoByteString> result;
798 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result,
801 CopyChars(result->GetChars(no_gc), string, length);
802 return result;
848 String result = String::cast(AllocateRawWithImmortalMap(
856 result.set_length(chars);
857 result.set_raw_hash_field(hash_field);
858 DCHECK_EQ(size, result.Size());
861 WriteOneByteData(t, SeqOneByteString::cast(result).GetChars(no_gc), chars);
863 WriteTwoByteData(t, SeqTwoByteString::cast(result).GetChars(no_gc), chars);
865 return handle(result, isolate());
956 Handle<String> result =
958 single_character_string_cache()->set(code, *result);
959 return result;
1005 Handle<SeqOneByteString> result =
1008 uint8_t* dest = result->GetChars(no_gc);
1010 return result;
1012 Handle<SeqTwoByteString> result =
1015 base::uc16* dest = result->GetChars(no_gc);
1017 return result;
1154 HeapObject result = allocator()->AllocateRawWith<HeapAllocator::kRetryOrFail>(
1156 result.set_map_after_allocation(*map);
1158 Context context = Context::cast(result);
1511 WasmTypeInfo result = WasmTypeInfo::cast(AllocateRawWithImmortalMap(
1514 result.AllocateExternalPointerEntries(isolate());
1515 result.set_foreign_address(isolate(), type_address);
1516 result.set_supertypes(*supertypes);
1517 result.set_subtypes(ReadOnlyRoots(isolate()).empty_array_list());
1518 result.set_instance_size(instance_size_bytes);
1519 result.set_instance(*instance);
1520 return handle(result, isolate());
1526 auto result = WasmApiFunctionRef::cast(AllocateRawWithImmortalMap(
1529 result.set_isolate_root(isolate()->isolate_root());
1530 result.set_native_context(*isolate()->native_context());
1532 result.set_callable(*callable);
1534 result.set_callable(*undefined_value());
1537 result.set_suspender(*suspender);
1539 result.set_suspender(*undefined_value());
1541 return handle(result, isolate());
1548 WasmInternalFunction result = WasmInternalFunction::cast(raw);
1550 result.AllocateExternalPointerEntries(isolate());
1551 result.set_foreign_address(isolate(), opt_call_target);
1552 result.set_ref(*ref);
1554 result.set_code(*BUILTIN_CODE(isolate(), Abort));
1555 result.set_external(*undefined_value());
1556 return handle(result, isolate());
1567 WasmJSFunctionData result =
1571 result.set_internal(*internal);
1572 result.set_wrapper_code(*wrapper_code);
1573 result.set_serialized_return_count(return_count);
1574 result.set_serialized_parameter_count(parameter_count);
1575 result.set_serialized_signature(*serialized_sig);
1576 return handle(result, isolate());
1582 WasmOnFulfilledData result =
1586 result.set_suspender(*suspender);
1587 return handle(result, isolate());
1598 WasmExportedFunctionData result =
1603 result.set_internal(*internal);
1604 result.set_wrapper_code(*export_wrapper);
1605 result.set_instance(*instance);
1606 result.set_function_index(func_index);
1607 result.set_signature(*sig_foreign);
1608 result.set_wrapper_budget(wrapper_budget);
1612 result.set_c_wrapper_code(
1615 result.set_packed_args_size(0);
1616 result.set_suspender(*undefined_value());
1617 return handle(result, isolate());
1629 WasmCapiFunctionData result =
1633 result.set_internal(*internal);
1634 result.set_wrapper_code(*wrapper_code);
1635 result.set_embedder_data(*embedder_data);
1636 result.set_serialized_signature(*serialized_sig);
1637 return handle(result, isolate());
1648 WasmArray result = WasmArray::cast(raw);
1649 result.set_raw_properties_or_hash(*empty_fixed_array(), kRelaxedStore);
1650 result.set_length(length);
1653 Address address = result.ElementAddress(i);
1660 int offset = result.element_offset(i);
1661 TaggedField<Object>::store(result, offset, *elements[i].to_ref());
1664 return handle(result, isolate());
1678 WasmArray result = WasmArray::cast(raw);
1679 result.set_raw_properties_or_hash(*empty_fixed_array(), kRelaxedStore);
1680 result.set_length(length);
1681 MemCopy(reinterpret_cast<void*>(result.ElementAddress(0)),
1685 return handle(result, isolate());
1694 WasmStruct result = WasmStruct::cast(raw);
1695 result.set_raw_properties_or_hash(*empty_fixed_array(), kRelaxedStore);
1699 Address address = result.RawFieldAddress(offset);
1703 TaggedField<Object>::store(result, offset, *args[i].to_ref());
1706 return handle(result, isolate());
1735 Cell result = Cell::cast(AllocateRawWithImmortalMap(
1738 result.set_value(*value);
1739 return handle(result, isolate());
1743 FeedbackCell result = FeedbackCell::cast(AllocateRawWithImmortalMap(
1747 result.set_value(*value);
1748 result.SetInitialInterruptBudget();
1749 result.clear_padding();
1750 return handle(result, isolate());
1754 FeedbackCell result = FeedbackCell::cast(AllocateRawWithImmortalMap(
1758 result.set_value(*value);
1759 result.SetInitialInterruptBudget();
1760 result.clear_padding();
1761 return handle(result, isolate());
1765 FeedbackCell result = FeedbackCell::cast(AllocateRawWithImmortalMap(
1769 result.set_value(*value);
1770 result.SetInitialInterruptBudget();
1771 result.clear_padding();
1772 return handle(result, isolate());
1848 HeapObject result = allocator()->AllocateRawWith<HeapAllocator::kRetryOrFail>(
1854 result.set_map_after_allocation(ReadOnlyRoots(roots).meta_map(),
1856 return handle(InitializeMap(Map::cast(result), type, instance_size,
2027 T result = T::cast(new_object);
2028 initialize_length(result, len);
2030 WriteBarrierMode mode = result.GetWriteBarrierMode(no_gc);
2031 result.CopyElements(isolate(), 0, *src, 0, len, mode);
2032 return handle(result, isolate());
2045 T result = T::cast(new_object);
2046 initialize_length(result, new_len);
2048 WriteBarrierMode mode = result.GetWriteBarrierMode(no_gc);
2049 result.CopyElements(isolate(), 0, *src, 0, old_len, mode);
2050 MemsetTagged(ObjectSlot(result.data_start() + old_len),
2052 return handle(result, isolate());
2074 WeakArrayList result = WeakArrayList::cast(heap_object);
2075 result.set_length(0);
2076 result.set_capacity(capacity);
2077 return handle(result, isolate());
2082 Handle<WeakArrayList> result =
2084 MemsetTagged(ObjectSlot(result->data_start()),
2086 return result;
2100 Handle<WeakArrayList> result =
2103 WeakArrayList raw = *result;
2111 return result;
2117 Handle<WeakArrayList> result =
2123 WeakArrayList raw_result = *result;
2135 return result;
2152 FixedArray result = FixedArray::cast(heap_object);
2153 result.set_length(new_len);
2155 WriteBarrierMode mode = result.GetWriteBarrierMode(no_gc);
2156 result.CopyElements(isolate(), 0, *array, 0, new_len, mode);
2157 return handle(result, isolate());
2169 Handle<FixedDoubleArray> result =
2172 result->address() + FixedDoubleArray::kLengthOffset,
2175 return result;
2201 // as the result.
2295 Handle<Code> result = Builtins::GenerateOffHeapTrampolineFor(
2302 CHECK_EQ(result->raw_metadata_size(), 0);
2311 CodePageMemoryModificationScope code_allocation(*result);
2313 Code raw_result = *result;
2353 return result;
2366 HeapObject result =
2372 Address new_addr = result.address();
2374 new_code = handle(Code::cast(result), isolate());
2432 Handle<JSObject> result =
2434 return result;
2503 // Make sure result is a global object with properties in dictionary.
2829 auto result =
2831 result->Setup(SharedFlag::kNotShared, ResizableFlag::kNotResizable,
2833 return result;
2861 auto result = Handle<JSArrayBuffer>::cast(
2866 result->Setup(SharedFlag::kShared, resizable, std::move(backing_store));
2867 return result;
3045 // Create the [[BoundArguments]] for the result.
3066 Handle<JSBoundFunction> result = Handle<JSBoundFunction>::cast(
3069 JSBoundFunction raw = *result;
3073 return result;
3091 JSProxy result = JSProxy::cast(New(map, AllocationType::kYoung));
3093 result.initialize_properties(isolate());
3094 result.set_target(*target, SKIP_WRITE_BARRIER);
3095 result.set_handler(*handler, SKIP_WRITE_BARRIER);
3096 return handle(result, isolate());
3295 Handle<String> result;
3297 result = zero_string();
3299 result = NaN_string();
3304 result = CharToString(this, string, mode);
3307 NumberToStringCacheSet(number, hash, result);
3309 return result;
3319 Handle<String> result;
3321 result = zero_string();
3326 result = CharToString(this, string, mode);
3329 NumberToStringCacheSet(handle(number, isolate()), hash, result);
3337 String raw = *result;
3345 return result;
3349 Handle<String> result;
3359 result = HeapNumberToString(NewHeapNumber(double_value), value, cache_mode);
3373 result = NewStringFromAsciiChecked(string);
3377 String raw = *result;
3385 return result;
3482 Handle<JSObject> result = NewJSObjectFromMap(map);
3484 Object::SetProperty(isolate(), result, length_string(), value,
3489 Object::SetProperty(isolate(), result, callee_string(), callee,
3494 return result;
3508 MaybeObject result = cache->Get(number_of_properties);
3510 if (result->GetHeapObjectIfWeak(&heap_object)) {
3644 Handle<RegExpMatchInfo> result = Handle<RegExpMatchInfo>::cast(elems);
3647 RegExpMatchInfo raw = *result;
3654 return result;
3947 Handle<JSFunction> result = BuildRaw(code);
3951 JSFunction::EnsureFeedbackVector(isolate_, result, &is_compiled_scope);
3954 Compiler::PostInstantiation(result);
3955 return result;