mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibJS: Remove unused target
field from Completion
This shrinks Completion by 16 bytes, which has non-trivial impact on performance.
This commit is contained in:
parent
a77c6e15f4
commit
ae11a4de1c
Notes:
sideshowbarker
2024-07-16 20:21:48 +09:00
Author: https://github.com/awesomekling
Commit: ae11a4de1c
Pull-request: https://github.com/SerenityOS/serenity/pull/24276
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/shannonbooth
9 changed files with 23 additions and 26 deletions
|
@ -403,7 +403,7 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayConstructor::from_async)
|
|||
TRY(array->set(vm.names.length, Value(k), Object::ShouldThrowExceptions::Yes));
|
||||
|
||||
// b. Return Completion Record { [[Type]]: return, [[Value]]: A, [[Target]]: empty }.
|
||||
return Completion { Completion::Type::Return, array, {} };
|
||||
return Completion { Completion::Type::Return, array };
|
||||
}
|
||||
|
||||
// 8. Let nextValue be ? IteratorValue(nextResult).
|
||||
|
@ -508,7 +508,7 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayConstructor::from_async)
|
|||
TRY(array->set(vm.names.length, Value(length), Object::ShouldThrowExceptions::Yes));
|
||||
|
||||
// ix. Return Completion Record { [[Type]]: return, [[Value]]: A, [[Target]]: empty }.
|
||||
return Completion { Completion::Type::Return, array, {} };
|
||||
return Completion { Completion::Type::Return, array };
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue