Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: src/code-stubs.cc

Issue 2375863002: [stubs] Fix invalid IntPtrMul in DivideStub. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index b4562f41b8feabffa9a444244539f14f3e516007..d05fe0f2587a3f8c65cfc102427e0999504a8489 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698