| OLD | NEW |
| 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 3628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3639 Register separator = a1; | 3639 Register separator = a1; |
| 3640 Register array_length = a2; | 3640 Register array_length = a2; |
| 3641 Register result_pos = no_reg; // Will be a2. | 3641 Register result_pos = no_reg; // Will be a2. |
| 3642 Register string_length = a3; | 3642 Register string_length = a3; |
| 3643 Register string = t0; | 3643 Register string = t0; |
| 3644 Register element = t1; | 3644 Register element = t1; |
| 3645 Register elements_end = t2; | 3645 Register elements_end = t2; |
| 3646 Register scratch1 = t3; | 3646 Register scratch1 = t3; |
| 3647 Register scratch2 = t5; | 3647 Register scratch2 = t5; |
| 3648 Register scratch3 = t4; | 3648 Register scratch3 = t4; |
| 3649 Register scratch4 = v1; | |
| 3650 | 3649 |
| 3651 // Separator operand is on the stack. | 3650 // Separator operand is on the stack. |
| 3652 __ pop(separator); | 3651 __ pop(separator); |
| 3653 | 3652 |
| 3654 // Check that the array is a JSArray. | 3653 // Check that the array is a JSArray. |
| 3655 __ JumpIfSmi(array, &bailout); | 3654 __ JumpIfSmi(array, &bailout); |
| 3656 __ GetObjectType(array, scratch1, scratch2); | 3655 __ GetObjectType(array, scratch1, scratch2); |
| 3657 __ Branch(&bailout, ne, scratch2, Operand(JS_ARRAY_TYPE)); | 3656 __ Branch(&bailout, ne, scratch2, Operand(JS_ARRAY_TYPE)); |
| 3658 | 3657 |
| 3659 // Check that the array has fast elements. | 3658 // Check that the array has fast elements. |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4566 *context_length = 0; | 4565 *context_length = 0; |
| 4567 return previous_; | 4566 return previous_; |
| 4568 } | 4567 } |
| 4569 | 4568 |
| 4570 | 4569 |
| 4571 #undef __ | 4570 #undef __ |
| 4572 | 4571 |
| 4573 } } // namespace v8::internal | 4572 } } // namespace v8::internal |
| 4574 | 4573 |
| 4575 #endif // V8_TARGET_ARCH_MIPS | 4574 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |