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

Side by Side Diff: src/mips64/macro-assembler-mips64.cc

Issue 1057763002: MIPS: Fix another bug in mozilla regress-396684.js (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/mips/macro-assembler-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. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 3146 matching lines...) Expand 10 before | Expand all | Expand 10 after
3157 } 3157 }
3158 jalr(at); 3158 jalr(at);
3159 3159
3160 // Emit a nop in the branch delay slot if required. 3160 // Emit a nop in the branch delay slot if required.
3161 if (bdslot == PROTECT) 3161 if (bdslot == PROTECT)
3162 nop(); 3162 nop();
3163 } 3163 }
3164 3164
3165 3165
3166 void MacroAssembler::DropAndRet(int drop) { 3166 void MacroAssembler::DropAndRet(int drop) {
3167 DCHECK(is_int16(drop * kPointerSize));
3167 Ret(USE_DELAY_SLOT); 3168 Ret(USE_DELAY_SLOT);
3168 daddiu(sp, sp, drop * kPointerSize); 3169 daddiu(sp, sp, drop * kPointerSize);
3169 } 3170 }
3170 3171
3171 void MacroAssembler::DropAndRet(int drop, 3172 void MacroAssembler::DropAndRet(int drop,
3172 Condition cond, 3173 Condition cond,
3173 Register r1, 3174 Register r1,
3174 const Operand& r2) { 3175 const Operand& r2) {
3175 // Both Drop and Ret need to be conditional. 3176 // Both Drop and Ret need to be conditional.
3176 Label skip; 3177 Label skip;
(...skipping 17 matching lines...) Expand all
3194 if (count <= 0) { 3195 if (count <= 0) {
3195 return; 3196 return;
3196 } 3197 }
3197 3198
3198 Label skip; 3199 Label skip;
3199 3200
3200 if (cond != al) { 3201 if (cond != al) {
3201 Branch(&skip, NegateCondition(cond), reg, op); 3202 Branch(&skip, NegateCondition(cond), reg, op);
3202 } 3203 }
3203 3204
3204 daddiu(sp, sp, count * kPointerSize); 3205 Daddu(sp, sp, Operand(count * kPointerSize));
3205 3206
3206 if (cond != al) { 3207 if (cond != al) {
3207 bind(&skip); 3208 bind(&skip);
3208 } 3209 }
3209 } 3210 }
3210 3211
3211 3212
3212 3213
3213 void MacroAssembler::Swap(Register reg1, 3214 void MacroAssembler::Swap(Register reg1,
3214 Register reg2, 3215 Register reg2,
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after
6130 } 6131 }
6131 if (mag.shift > 0) sra(result, result, mag.shift); 6132 if (mag.shift > 0) sra(result, result, mag.shift);
6132 srl(at, dividend, 31); 6133 srl(at, dividend, 31);
6133 Addu(result, result, Operand(at)); 6134 Addu(result, result, Operand(at));
6134 } 6135 }
6135 6136
6136 6137
6137 } } // namespace v8::internal 6138 } } // namespace v8::internal
6138 6139
6139 #endif // V8_TARGET_ARCH_MIPS64 6140 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« 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