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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 779433003: MIPS: Fix ambiguous double constant loading after adding checked load/store operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3819 matching lines...) Expand 10 before | Expand all | Expand 10 after
3830 DoubleRegister input = ToDoubleRegister(instr->value()); 3830 DoubleRegister input = ToDoubleRegister(instr->value());
3831 DoubleRegister result = ToDoubleRegister(instr->result()); 3831 DoubleRegister result = ToDoubleRegister(instr->result());
3832 DoubleRegister temp = ToDoubleRegister(instr->temp()); 3832 DoubleRegister temp = ToDoubleRegister(instr->temp());
3833 3833
3834 DCHECK(!input.is(result)); 3834 DCHECK(!input.is(result));
3835 3835
3836 // Note that according to ECMA-262 15.8.2.13: 3836 // Note that according to ECMA-262 15.8.2.13:
3837 // Math.pow(-Infinity, 0.5) == Infinity 3837 // Math.pow(-Infinity, 0.5) == Infinity
3838 // Math.sqrt(-Infinity) == NaN 3838 // Math.sqrt(-Infinity) == NaN
3839 Label done; 3839 Label done;
3840 __ Move(temp, -V8_INFINITY); 3840 __ Move(temp, static_cast<double>(-V8_INFINITY));
3841 __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input); 3841 __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input);
3842 // Set up Infinity in the delay slot. 3842 // Set up Infinity in the delay slot.
3843 // result is overwritten if the branch is not taken. 3843 // result is overwritten if the branch is not taken.
3844 __ neg_d(result, temp); 3844 __ neg_d(result, temp);
3845 3845
3846 // Add +0 to convert -0 to +0. 3846 // Add +0 to convert -0 to +0.
3847 __ add_d(result, input, kDoubleRegZero); 3847 __ add_d(result, input, kDoubleRegZero);
3848 __ sqrt_d(result, result); 3848 __ sqrt_d(result, result);
3849 __ bind(&done); 3849 __ bind(&done);
3850 } 3850 }
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after
5927 __ li(at, scope_info); 5927 __ li(at, scope_info);
5928 __ Push(at, ToRegister(instr->function())); 5928 __ Push(at, ToRegister(instr->function()));
5929 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5929 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5930 RecordSafepoint(Safepoint::kNoLazyDeopt); 5930 RecordSafepoint(Safepoint::kNoLazyDeopt);
5931 } 5931 }
5932 5932
5933 5933
5934 #undef __ 5934 #undef __
5935 5935
5936 } } // namespace v8::internal 5936 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698