[stubs] Fix invalid IntPtrMul in DivideStub.
R=jarin@chromium.org BUG=v8:5268 Review-Url: https://codereview.chromium.org/2375863002 Cr-Commit-Position: refs/heads/master@{#39805}
This commit is contained in:
parent
06eef6e6d8
commit
50f18b8332
@ -1845,7 +1845,7 @@ compiler::Node* DivideStub::Generate(CodeStubAssembler* assembler,
|
||||
Node* untagged_result =
|
||||
assembler->Int32Div(untagged_dividend, untagged_divisor);
|
||||
Node* truncated =
|
||||
assembler->IntPtrMul(untagged_result, untagged_divisor);
|
||||
assembler->Int32Mul(untagged_result, untagged_divisor);
|
||||
// Do floating point division if the remainder is not 0.
|
||||
assembler->GotoIf(
|
||||
assembler->Word32NotEqual(untagged_dividend, truncated), &bailout);
|
||||
@ -2048,7 +2048,7 @@ compiler::Node* DivideWithFeedbackStub::Generate(
|
||||
|
||||
Node* untagged_result =
|
||||
assembler->Int32Div(untagged_dividend, untagged_divisor);
|
||||
Node* truncated = assembler->IntPtrMul(untagged_result, untagged_divisor);
|
||||
Node* truncated = assembler->Int32Mul(untagged_result, untagged_divisor);
|
||||
// Do floating point division if the remainder is not 0.
|
||||
assembler->GotoIf(assembler->Word32NotEqual(untagged_dividend, truncated),
|
||||
&bailout);
|
||||
|
Loading…
Reference in New Issue
Block a user