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/code-stubs-mips.cc

Issue 10446003: MIPS: Fix several bugs that cause crashes in soft-float mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips/simulator-mips.cc » ('j') | 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. 1 // Copyright 2012 the V8 project authors. All rights reserved.
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 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after
3123 __ Cvt_d_uw(double_scratch, double_scratch, single_scratch); 3123 __ Cvt_d_uw(double_scratch, double_scratch, single_scratch);
3124 } 3124 }
3125 3125
3126 // Store the result. 3126 // Store the result.
3127 __ mov(v0, heap_number_result); 3127 __ mov(v0, heap_number_result);
3128 __ sdc1(double_scratch, FieldMemOperand(v0, HeapNumber::kValueOffset)); 3128 __ sdc1(double_scratch, FieldMemOperand(v0, HeapNumber::kValueOffset));
3129 __ Ret(); 3129 __ Ret();
3130 } else { 3130 } else {
3131 // Tail call that writes the int32 in a2 to the heap number in v0, using 3131 // Tail call that writes the int32 in a2 to the heap number in v0, using
3132 // a3 and a0 as scratch. v0 is preserved and returned. 3132 // a3 and a0 as scratch. v0 is preserved and returned.
3133 __ mov(a0, t1); 3133 __ mov(v0, t1);
3134 WriteInt32ToHeapNumberStub stub(a2, v0, a3, a0); 3134 WriteInt32ToHeapNumberStub stub(a2, v0, a3, a0);
3135 __ TailCallStub(&stub); 3135 __ TailCallStub(&stub);
3136 } 3136 }
3137 3137
3138 break; 3138 break;
3139 } 3139 }
3140 3140
3141 default: 3141 default:
3142 UNREACHABLE(); 3142 UNREACHABLE();
3143 } 3143 }
(...skipping 4530 matching lines...) Expand 10 before | Expand all | Expand 10 after
7674 __ Ret(USE_DELAY_SLOT); 7674 __ Ret(USE_DELAY_SLOT);
7675 __ mov(v0, a0); 7675 __ mov(v0, a0);
7676 } 7676 }
7677 7677
7678 7678
7679 #undef __ 7679 #undef __
7680 7680
7681 } } // namespace v8::internal 7681 } } // namespace v8::internal
7682 7682
7683 #endif // V8_TARGET_ARCH_MIPS 7683 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/simulator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698