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 3780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3791 Register empty_fixed_array_value = r6; | 3791 Register empty_fixed_array_value = r6; |
3792 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); | 3792 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); |
3793 Label next, start; | 3793 Label next, start; |
3794 mov(r2, r0); | 3794 mov(r2, r0); |
3795 | 3795 |
3796 // Check if the enum length field is properly initialized, indicating that | 3796 // Check if the enum length field is properly initialized, indicating that |
3797 // there is an enum cache. | 3797 // there is an enum cache. |
3798 ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); | 3798 ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); |
3799 | 3799 |
3800 EnumLength(r3, r1); | 3800 EnumLength(r3, r1); |
3801 cmp(r3, Operand(Smi::FromInt(Map::kInvalidEnumCache))); | 3801 cmp(r3, Operand(Smi::FromInt(kInvalidEnumCacheSentinel))); |
3802 b(eq, call_runtime); | 3802 b(eq, call_runtime); |
3803 | 3803 |
3804 jmp(&start); | 3804 jmp(&start); |
3805 | 3805 |
3806 bind(&next); | 3806 bind(&next); |
3807 ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); | 3807 ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); |
3808 | 3808 |
3809 // For all objects but the receiver, check that the cache is empty. | 3809 // For all objects but the receiver, check that the cache is empty. |
3810 EnumLength(r3, r1); | 3810 EnumLength(r3, r1); |
3811 cmp(r3, Operand(Smi::FromInt(0))); | 3811 cmp(r3, Operand(Smi::FromInt(0))); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3960 void CodePatcher::EmitCondition(Condition cond) { | 3960 void CodePatcher::EmitCondition(Condition cond) { |
3961 Instr instr = Assembler::instr_at(masm_.pc_); | 3961 Instr instr = Assembler::instr_at(masm_.pc_); |
3962 instr = (instr & ~kCondMask) | cond; | 3962 instr = (instr & ~kCondMask) | cond; |
3963 masm_.emit(instr); | 3963 masm_.emit(instr); |
3964 } | 3964 } |
3965 | 3965 |
3966 | 3966 |
3967 } } // namespace v8::internal | 3967 } } // namespace v8::internal |
3968 | 3968 |
3969 #endif // V8_TARGET_ARCH_ARM | 3969 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |