OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // Bail out if the receiver has a named interceptor or requires access checks. | 115 // Bail out if the receiver has a named interceptor or requires access checks. |
116 Register map = scratch1; | 116 Register map = scratch1; |
117 __ ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | 117 __ ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
118 __ ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); | 118 __ ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); |
119 __ tst(scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); | 119 __ tst(scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); |
120 __ b(ne, miss_label); | 120 __ b(ne, miss_label); |
121 | 121 |
122 // Check that receiver is a JSObject. | 122 // Check that receiver is a JSObject. |
123 __ ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 123 __ ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
124 __ cmp(scratch0, Operand(FIRST_JS_OBJECT_TYPE)); | 124 __ cmp(scratch0, Operand(FIRST_SPEC_OBJECT_TYPE)); |
125 __ b(lt, miss_label); | 125 __ b(lt, miss_label); |
126 | 126 |
127 // Load properties array. | 127 // Load properties array. |
128 Register properties = scratch0; | 128 Register properties = scratch0; |
129 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); | 129 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); |
130 // Check that the properties array is a dictionary. | 130 // Check that the properties array is a dictionary. |
131 __ ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset)); | 131 __ ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset)); |
132 Register tmp = properties; | 132 Register tmp = properties; |
133 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); | 133 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); |
134 __ cmp(map, tmp); | 134 __ cmp(map, tmp); |
(...skipping 4074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4209 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); | 4209 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); |
4210 __ Jump(ic, RelocInfo::CODE_TARGET); | 4210 __ Jump(ic, RelocInfo::CODE_TARGET); |
4211 } | 4211 } |
4212 | 4212 |
4213 | 4213 |
4214 #undef __ | 4214 #undef __ |
4215 | 4215 |
4216 } } // namespace v8::internal | 4216 } } // namespace v8::internal |
4217 | 4217 |
4218 #endif // V8_TARGET_ARCH_ARM | 4218 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |