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

Unified Diff: src/mips/stub-cache-mips.cc

Issue 7027023: MIPS: port Prevent deopt on double value assignment to typed arrays (Closed)
Patch Set: Created 9 years, 7 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 | « src/mips/macro-assembler-mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/stub-cache-mips.cc
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
index 47428a8324248e0d892e0e3f1c870084a96dae3b..15153f30b2cbe3b53379cf3a5154373fac311e54 100644
--- a/src/mips/stub-cache-mips.cc
+++ b/src/mips/stub-cache-mips.cc
@@ -3934,27 +3934,8 @@ void KeyedStoreStubCompiler::GenerateStoreExternalArray(
__ addu(t8, a3, t8);
__ sdc1(f0, MemOperand(t8, 0));
} else {
- Label done;
-
- // Need to perform float-to-int conversion.
- // Test whether exponent equal to 0x7FF (infinity or NaN).
-
- __ mfc1(t3, f1); // Move exponent word of double to t3 (as raw bits).
- __ li(t1, Operand(0x7FF00000));
- __ And(t3, t3, Operand(t1));
- __ Branch(USE_DELAY_SLOT, &done, eq, t3, Operand(t1));
- __ mov(t3, zero_reg); // In delay slot.
-
- // Not infinity or NaN simply convert to int.
- if (IsElementTypeSigned(array_type)) {
- __ trunc_w_d(f0, f0);
- __ mfc1(t3, f0);
- } else {
- __ Trunc_uw_d(f0, t3);
- }
+ __ EmitECMATruncate(t3, f0, f2, t2, t1, t5);
- // t3: HeapNumber converted to integer
- __ bind(&done);
switch (array_type) {
case kExternalByteArray:
case kExternalUnsignedByteArray:
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698