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 5493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5504 __ GetObjectType(t0, t0, t1); | 5504 __ GetObjectType(t0, t0, t1); |
5505 __ Assert(eq, kUnexpectedInitialMapForArrayFunction, | 5505 __ Assert(eq, kUnexpectedInitialMapForArrayFunction, |
5506 t1, Operand(MAP_TYPE)); | 5506 t1, Operand(MAP_TYPE)); |
5507 | 5507 |
5508 // We should either have undefined in a2 or a valid fixed array. | 5508 // We should either have undefined in a2 or a valid fixed array. |
5509 Label okay_here; | 5509 Label okay_here; |
5510 Handle<Map> fixed_array_map = masm->isolate()->factory()->fixed_array_map(); | 5510 Handle<Map> fixed_array_map = masm->isolate()->factory()->fixed_array_map(); |
5511 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); | 5511 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
5512 __ Branch(&okay_here, eq, a2, Operand(at)); | 5512 __ Branch(&okay_here, eq, a2, Operand(at)); |
5513 __ lw(t0, FieldMemOperand(a2, 0)); | 5513 __ lw(t0, FieldMemOperand(a2, 0)); |
5514 __ Assert(eq, kExpectedFixedArrayInRegisterR2, | 5514 __ Assert(eq, kExpectedFixedArrayInRegisterA2, |
5515 t0, Operand(fixed_array_map)); | 5515 t0, Operand(fixed_array_map)); |
5516 | 5516 |
5517 // a3 should be a smi if we don't have undefined in a2 | 5517 // a3 should be a smi if we don't have undefined in a2 |
5518 __ AssertSmi(a3); | 5518 __ AssertSmi(a3); |
5519 | 5519 |
5520 __ bind(&okay_here); | 5520 __ bind(&okay_here); |
5521 } | 5521 } |
5522 | 5522 |
5523 Label no_info; | 5523 Label no_info; |
5524 // Get the elements kind and case on that. | 5524 // Get the elements kind and case on that. |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5755 MemOperand(fp, 6 * kPointerSize), | 5755 MemOperand(fp, 6 * kPointerSize), |
5756 NULL); | 5756 NULL); |
5757 } | 5757 } |
5758 | 5758 |
5759 | 5759 |
5760 #undef __ | 5760 #undef __ |
5761 | 5761 |
5762 } } // namespace v8::internal | 5762 } } // namespace v8::internal |
5763 | 5763 |
5764 #endif // V8_TARGET_ARCH_MIPS | 5764 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |