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 { ...@@ -579,7 +579,7 @@ double IncrementalMarking::CurrentTimeToMarkingTask() const {
} }
void IncrementalMarking::MarkingComplete(CompletionAction action) { void IncrementalMarking::MarkingComplete(CompletionAction action) {
// Allowed overshoot percantage of incremental marking walltime. // Allowed overshoot percentage of incremental marking walltime.
constexpr double kAllowedOvershoot = 0.1; constexpr double kAllowedOvershoot = 0.1;
// Minimum overshoot in ms. This is used to allow moving away from stack when // Minimum overshoot in ms. This is used to allow moving away from stack when
// marking was fast. // marking was fast.
......
...@@ -717,7 +717,7 @@ bool SemiSpaceNewSpace::AddFreshPage() { ...@@ -717,7 +717,7 @@ bool SemiSpaceNewSpace::AddFreshPage() {
return false; 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. // mutator.
if (FLAG_allocation_buffer_parking && heap()->gc_state() == Heap::NOT_IN_GC && if (FLAG_allocation_buffer_parking && heap()->gc_state() == Heap::NOT_IN_GC &&
remaining_in_page >= kAllocationBufferParkingThreshold) { remaining_in_page >= kAllocationBufferParkingThreshold) {
...@@ -741,7 +741,7 @@ bool SemiSpaceNewSpace::AddParkedAllocationBuffer( ...@@ -741,7 +741,7 @@ bool SemiSpaceNewSpace::AddParkedAllocationBuffer(
if (size_in_bytes + filler_size <= parked_size) { if (size_in_bytes + filler_size <= parked_size) {
parked_allocation_buffers_.erase(it); parked_allocation_buffers_.erase(it);
Page* page = Page::FromAddress(start); 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 maintain the invariant that the last page is the used one.
to_space_.MovePageToTheEnd(page); to_space_.MovePageToTheEnd(page);
UpdateLinearAllocationArea(start); UpdateLinearAllocationArea(start);
......
...@@ -89,7 +89,7 @@ class SemiSpace final : public Space { ...@@ -89,7 +89,7 @@ class SemiSpace final : public Space {
bool AdvancePage() { bool AdvancePage() {
Page* next_page = current_page_->next_page(); 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 // that we need to account for the next page already for this check as we
// could potentially fill the whole page after advancing. // could potentially fill the whole page after advancing.
if (next_page == nullptr || (current_capacity_ == target_capacity_)) { if (next_page == nullptr || (current_capacity_ == target_capacity_)) {
......
...@@ -921,7 +921,7 @@ void ObjectStatsCollectorImpl::RecordVirtualScriptDetails(Script script) { ...@@ -921,7 +921,7 @@ void ObjectStatsCollectorImpl::RecordVirtualScriptDetails(Script script) {
Object raw_source = script.source(); Object raw_source = script.source();
if (raw_source.IsExternalString(cage_base())) { if (raw_source.IsExternalString(cage_base())) {
// The contents of external strings aren't on the heap, so we have to record // 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. // the normal pass.
ExternalString string = ExternalString::cast(raw_source); ExternalString string = ExternalString::cast(raw_source);
Address resource = string.resource_as_address(); Address resource = string.resource_as_address();
......
...@@ -105,7 +105,7 @@ class HeapVisitor : public ObjectVisitorWithCageBases { ...@@ -105,7 +105,7 @@ class HeapVisitor : public ObjectVisitorWithCageBases {
// Guard predicate for visiting the objects map pointer separately. // Guard predicate for visiting the objects map pointer separately.
V8_INLINE bool ShouldVisitMapPointer() { return true; } V8_INLINE bool ShouldVisitMapPointer() { return true; }
// If this predicate returns false, then the heap visitor will fail // 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; } V8_INLINE bool AllowDefaultJSObjectVisit() { return true; }
#define VISIT(TypeName) \ #define VISIT(TypeName) \
......
...@@ -63,7 +63,7 @@ void PromoteYoungGenerationGC::EvacuateYoungGeneration() { ...@@ -63,7 +63,7 @@ void PromoteYoungGenerationGC::EvacuateYoungGeneration() {
// Fix up special trackers. // Fix up special trackers.
heap_->external_string_table_.PromoteYoung(); 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(); size_t promoted = heap_->new_space()->Size() + heap_->new_lo_space()->Size();
heap_->IncrementYoungSurvivorsCounter(promoted); 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