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 3732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3743 Register separator = a1; | 3743 Register separator = a1; |
3744 Register array_length = a2; | 3744 Register array_length = a2; |
3745 Register result_pos = no_reg; // Will be a2. | 3745 Register result_pos = no_reg; // Will be a2. |
3746 Register string_length = a3; | 3746 Register string_length = a3; |
3747 Register string = t0; | 3747 Register string = t0; |
3748 Register element = t1; | 3748 Register element = t1; |
3749 Register elements_end = t2; | 3749 Register elements_end = t2; |
3750 Register scratch1 = t3; | 3750 Register scratch1 = t3; |
3751 Register scratch2 = t5; | 3751 Register scratch2 = t5; |
3752 Register scratch3 = t4; | 3752 Register scratch3 = t4; |
3753 Register scratch4 = v1; | |
3754 | 3753 |
3755 // Separator operand is on the stack. | 3754 // Separator operand is on the stack. |
3756 __ pop(separator); | 3755 __ pop(separator); |
3757 | 3756 |
3758 // Check that the array is a JSArray. | 3757 // Check that the array is a JSArray. |
3759 __ JumpIfSmi(array, &bailout); | 3758 __ JumpIfSmi(array, &bailout); |
3760 __ GetObjectType(array, scratch1, scratch2); | 3759 __ GetObjectType(array, scratch1, scratch2); |
3761 __ Branch(&bailout, ne, scratch2, Operand(JS_ARRAY_TYPE)); | 3760 __ Branch(&bailout, ne, scratch2, Operand(JS_ARRAY_TYPE)); |
3762 | 3761 |
3763 // Check that the array has fast elements. | 3762 // Check that the array has fast elements. |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4671 *context_length = 0; | 4670 *context_length = 0; |
4672 return previous_; | 4671 return previous_; |
4673 } | 4672 } |
4674 | 4673 |
4675 | 4674 |
4676 #undef __ | 4675 #undef __ |
4677 | 4676 |
4678 } } // namespace v8::internal | 4677 } } // namespace v8::internal |
4679 | 4678 |
4680 #endif // V8_TARGET_ARCH_MIPS | 4679 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |