| OLD | NEW |
| 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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 4258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4269 __ Mul(scratch3, scratch2, array_length, scratch1); | 4269 __ Mul(scratch3, scratch2, array_length, scratch1); |
| 4270 // Check for smi overflow. No overflow if higher 33 bits of 64-bit result are | 4270 // Check for smi overflow. No overflow if higher 33 bits of 64-bit result are |
| 4271 // zero. | 4271 // zero. |
| 4272 __ Branch(&bailout, ne, scratch3, Operand(zero_reg)); | 4272 __ Branch(&bailout, ne, scratch3, Operand(zero_reg)); |
| 4273 __ And(scratch3, scratch2, Operand(0x80000000)); | 4273 __ And(scratch3, scratch2, Operand(0x80000000)); |
| 4274 __ Branch(&bailout, ne, scratch3, Operand(zero_reg)); | 4274 __ Branch(&bailout, ne, scratch3, Operand(zero_reg)); |
| 4275 __ AdduAndCheckForOverflow(string_length, string_length, scratch2, scratch3); | 4275 __ AdduAndCheckForOverflow(string_length, string_length, scratch2, scratch3); |
| 4276 __ BranchOnOverflow(&bailout, scratch3); | 4276 __ BranchOnOverflow(&bailout, scratch3); |
| 4277 __ SmiUntag(string_length); | 4277 __ SmiUntag(string_length); |
| 4278 | 4278 |
| 4279 // Bailout for large object allocations. |
| 4280 __ Branch(&bailout, gt, string_length, |
| 4281 Operand(Page::kMaxRegularHeapObjectSize)); |
| 4282 |
| 4279 // Get first element in the array to free up the elements register to be used | 4283 // Get first element in the array to free up the elements register to be used |
| 4280 // for the result. | 4284 // for the result. |
| 4281 __ Addu(element, | 4285 __ Addu(element, |
| 4282 elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); | 4286 elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
| 4283 result = elements; // End of live range for elements. | 4287 result = elements; // End of live range for elements. |
| 4284 elements = no_reg; | 4288 elements = no_reg; |
| 4285 // Live values in registers: | 4289 // Live values in registers: |
| 4286 // element: First array element | 4290 // element: First array element |
| 4287 // separator: Separator string | 4291 // separator: Separator string |
| 4288 // string_length: Length of result string (not smi) | 4292 // string_length: Length of result string (not smi) |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5256 reinterpret_cast<uint32_t>( | 5260 reinterpret_cast<uint32_t>( |
| 5257 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5261 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5258 return OSR_AFTER_STACK_CHECK; | 5262 return OSR_AFTER_STACK_CHECK; |
| 5259 } | 5263 } |
| 5260 | 5264 |
| 5261 | 5265 |
| 5262 } // namespace internal | 5266 } // namespace internal |
| 5263 } // namespace v8 | 5267 } // namespace v8 |
| 5264 | 5268 |
| 5265 #endif // V8_TARGET_ARCH_MIPS | 5269 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |