| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 2162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2173 } | 2173 } |
| 2174 | 2174 |
| 2175 Label update_ic_data; | 2175 Label update_ic_data; |
| 2176 __ b(&update_ic_data); | 2176 __ b(&update_ic_data); |
| 2177 | 2177 |
| 2178 __ Bind(&found); | 2178 __ Bind(&found); |
| 2179 const intptr_t count_offset = | 2179 const intptr_t count_offset = |
| 2180 ICData::CountIndexFor(kNumArgsTested) * kWordSize; | 2180 ICData::CountIndexFor(kNumArgsTested) * kWordSize; |
| 2181 Label no_overflow; | 2181 Label no_overflow; |
| 2182 __ lw(T1, Address(T6, count_offset)); | 2182 __ lw(T1, Address(T6, count_offset)); |
| 2183 __ AddImmediateDetectOverflow(T1, T1, Smi::RawValue(1), CMPRES, T6); | 2183 __ AddImmediateDetectOverflow(T1, T1, Smi::RawValue(1), CMPRES, T5); |
| 2184 __ bgez(CMPRES, &no_overflow); | 2184 __ bgez(CMPRES, &no_overflow); |
| 2185 __ delay_slot()->sw(T1, Address(T6, count_offset)); |
| 2185 __ LoadImmediate(TMP1, Smi::RawValue(Smi::kMaxValue)); | 2186 __ LoadImmediate(TMP1, Smi::RawValue(Smi::kMaxValue)); |
| 2186 __ sw(TMP1, Address(T6, count_offset)); // If overflow. | 2187 __ sw(TMP1, Address(T6, count_offset)); // If overflow. |
| 2187 __ Bind(&no_overflow); | 2188 __ Bind(&no_overflow); |
| 2188 | 2189 |
| 2189 Label compute_result; | 2190 Label compute_result; |
| 2190 __ Bind(&compute_result); | 2191 __ Bind(&compute_result); |
| 2191 __ LoadObject(T4, Bool::True()); | 2192 __ LoadObject(T4, Bool::True()); |
| 2192 __ LoadObject(T5, Bool::False()); | 2193 __ LoadObject(T5, Bool::False()); |
| 2193 __ subu(CMPRES, A0, A1); | 2194 __ subu(CMPRES, A0, A1); |
| 2194 __ movz(V0, T4, CMPRES); | 2195 __ movz(V0, T4, CMPRES); |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 __ lw(left, Address(SP, 1 * kWordSize)); | 2394 __ lw(left, Address(SP, 1 * kWordSize)); |
| 2394 __ lw(temp2, Address(SP, 2 * kWordSize)); | 2395 __ lw(temp2, Address(SP, 2 * kWordSize)); |
| 2395 __ lw(temp1, Address(SP, 3 * kWordSize)); | 2396 __ lw(temp1, Address(SP, 3 * kWordSize)); |
| 2396 __ Ret(); | 2397 __ Ret(); |
| 2397 __ delay_slot()->addiu(SP, SP, Immediate(4 * kWordSize)); | 2398 __ delay_slot()->addiu(SP, SP, Immediate(4 * kWordSize)); |
| 2398 } | 2399 } |
| 2399 | 2400 |
| 2400 } // namespace dart | 2401 } // namespace dart |
| 2401 | 2402 |
| 2402 #endif // defined TARGET_ARCH_MIPS | 2403 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |