[sparkplug] Fix cast in ToNumeric
Fixed: chromium:1178841 Change-Id: Ic91f5930476695bfc1767eac9140b8120935c9e7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2700171 Auto-Submit: Leszek Swirski <leszeks@chromium.org> Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/master@{#72814}
This commit is contained in:
parent
16b0767adc
commit
a009029cac
@ -41,8 +41,8 @@ TF_BUILTIN(ToNumeric_Baseline, CodeStubAssembler) {
|
||||
auto context = [this] { return LoadContextFromBaseline(); };
|
||||
|
||||
TVARIABLE(Smi, var_type_feedback);
|
||||
TNode<Number> result = CAST(ToNumberOrNumeric(
|
||||
context, input, &var_type_feedback, Object::Conversion::kToNumeric));
|
||||
TNode<Numeric> result = ToNumberOrNumeric(context, input, &var_type_feedback,
|
||||
Object::Conversion::kToNumeric);
|
||||
|
||||
auto feedback_vector = LoadFeedbackVectorFromBaseline();
|
||||
UpdateFeedback(var_type_feedback.value(), feedback_vector, slot);
|
||||
|
Loading…
Reference in New Issue
Block a user