Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deps/v8/include/v8-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define V8_MAJOR_VERSION 14
#define V8_MINOR_VERSION 3
#define V8_BUILD_NUMBER 127
#define V8_PATCH_LEVEL 16
#define V8_PATCH_LEVEL 17

// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
Expand Down
6 changes: 3 additions & 3 deletions deps/v8/src/maglev/arm64/maglev-ir-arm64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void Int32Multiply::GenerateCode(MaglevAssembler* masm,
__ Smull(out, left, right);

// Making sure that the 32-bit output is zero-extended.
__ Move(out.W(), out.W());
__ Mov(out.W(), out.W());
}

void Int32MultiplyOverflownBits::SetValueLocationConstraints() {
Expand Down Expand Up @@ -468,7 +468,7 @@ void Int32MultiplyWithOverflow::GenerateCode(MaglevAssembler* masm,

// Making sure that the 32-bit output is zero-extended (and moving it to the
// right register if {out_alias_input} is true).
__ Move(out, res.W());
__ Mov(out, res.W());
}

void Int32DivideWithOverflow::SetValueLocationConstraints() {
Expand Down Expand Up @@ -536,7 +536,7 @@ void Int32DivideWithOverflow::GenerateCode(MaglevAssembler* masm,
__ CompareAndBranch(temp, Immediate(0), ne,
__ GetDeoptLabel(this, DeoptimizeReason::kNotInt32));

__ Move(out, res);
__ Mov(out, res);
}

void Int32ModulusWithOverflow::SetValueLocationConstraints() {
Expand Down
22 changes: 22 additions & 0 deletions deps/v8/test/mjsunit/maglev/regress-466786677.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2025 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Flags: --allow-natives-syntax

function trigger(cond) {
let o = {};
let mul = (cond ? 1 : 0x80000000) | 0;
print(mul);
let idx = (mul * 2) | 0;
print(idx);
o[0] = 1.1;
if (cond) o[1] = 2.2;
return o[idx];
}

%PrepareFunctionForOptimization(trigger);
trigger(true);
trigger(false);
%OptimizeMaglevOnNextCall(trigger);
trigger(false);
Loading