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

Unified Diff: runtime/vm/intrinsifier_mips.cc

Issue 1835583002: VM: Use delay slot in two places in MIPS intrinis code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « runtime/vm/intrinsifier_arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier_mips.cc
diff --git a/runtime/vm/intrinsifier_mips.cc b/runtime/vm/intrinsifier_mips.cc
index 154493a7ae1319b623b8c1a2d5ae006626b5f8ca..63b775580e820cbb7154ba6a339f1e1b2d2e3da2 100644
--- a/runtime/vm/intrinsifier_mips.cc
+++ b/runtime/vm/intrinsifier_mips.cc
@@ -1359,8 +1359,9 @@ static void CompareDoubles(Assembler* assembler, RelationOperator rel_op) {
__ Bind(&is_smi);
__ SmiUntag(T0);
__ mtc1(T0, STMP1);
- __ cvtdw(D1, STMP1);
__ b(&double_op);
+ __ delay_slot()->cvtdw(D1, STMP1);
+
__ Bind(&fall_through);
}
@@ -1422,8 +1423,8 @@ static void DoubleArithmeticOperations(Assembler* assembler, Token::Kind kind) {
__ Bind(&is_smi);
__ SmiUntag(T0);
__ mtc1(T0, STMP1);
- __ cvtdw(D1, STMP1);
__ b(&double_op);
+ __ delay_slot()->cvtdw(D1, STMP1);
__ Bind(&fall_through);
}
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698