Commit edc2af0a authored by Nikolaos Papaspyrou's avatar Nikolaos Papaspyrou Committed by V8 LUCI CQ

cleanup: Fix some typos

Mostly in comments, again, not much to be said...

Bug: v8:12425
Change-Id: I6d6c70b4e4dba70ec6ac7574caecc77b65316050
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3693698Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
Commit-Queue: Nikolaos Papaspyrou <nikolaos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80977}
parent 7787ed20
......@@ -579,7 +579,7 @@ double IncrementalMarking::CurrentTimeToMarkingTask() const {
}
void IncrementalMarking::MarkingComplete(CompletionAction action) {
// Allowed overshoot percantage of incremental marking walltime.
// Allowed overshoot percentage of incremental marking walltime.
constexpr double kAllowedOvershoot = 0.1;
// Minimum overshoot in ms. This is used to allow moving away from stack when
// marking was fast.
......
......@@ -717,7 +717,7 @@ bool SemiSpaceNewSpace::AddFreshPage() {
return false;
}
// We park unused allocation buffer space of allocations happenting from the
// We park unused allocation buffer space of allocations happening from the
// mutator.
if (FLAG_allocation_buffer_parking && heap()->gc_state() == Heap::NOT_IN_GC &&
remaining_in_page >= kAllocationBufferParkingThreshold) {
......@@ -741,7 +741,7 @@ bool SemiSpaceNewSpace::AddParkedAllocationBuffer(
if (size_in_bytes + filler_size <= parked_size) {
parked_allocation_buffers_.erase(it);
Page* page = Page::FromAddress(start);
// We move a page with a parked allocaiton to the end of the pages list
// We move a page with a parked allocation to the end of the pages list
// to maintain the invariant that the last page is the used one.
to_space_.MovePageToTheEnd(page);
UpdateLinearAllocationArea(start);
......
......@@ -89,7 +89,7 @@ class SemiSpace final : public Space {
bool AdvancePage() {
Page* next_page = current_page_->next_page();
// We cannot expand if we reached the target capcity. Note
// We cannot expand if we reached the target capacity. Note
// that we need to account for the next page already for this check as we
// could potentially fill the whole page after advancing.
if (next_page == nullptr || (current_capacity_ == target_capacity_)) {
......
......@@ -921,7 +921,7 @@ void ObjectStatsCollectorImpl::RecordVirtualScriptDetails(Script script) {
Object raw_source = script.source();
if (raw_source.IsExternalString(cage_base())) {
// The contents of external strings aren't on the heap, so we have to record
// them manually. The on-heap String object is recorded indepentendely in
// them manually. The on-heap String object is recorded independently in
// the normal pass.
ExternalString string = ExternalString::cast(raw_source);
Address resource = string.resource_as_address();
......
......@@ -105,7 +105,7 @@ class HeapVisitor : public ObjectVisitorWithCageBases {
// Guard predicate for visiting the objects map pointer separately.
V8_INLINE bool ShouldVisitMapPointer() { return true; }
// If this predicate returns false, then the heap visitor will fail
// in default Visit implemention for subclasses of JSObject.
// in default Visit implementation for subclasses of JSObject.
V8_INLINE bool AllowDefaultJSObjectVisit() { return true; }
#define VISIT(TypeName) \
......
......@@ -63,7 +63,7 @@ void PromoteYoungGenerationGC::EvacuateYoungGeneration() {
// Fix up special trackers.
heap_->external_string_table_.PromoteYoung();
// GlobalHandles are updated in PostGarbageCollectonProcessing
// GlobalHandles are updated in PostGarbageCollectionProcessing
size_t promoted = heap_->new_space()->Size() + heap_->new_lo_space()->Size();
heap_->IncrementYoungSurvivorsCounter(promoted);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment