| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Bail out if the receiver has a named interceptor or requires access checks. | 119 // Bail out if the receiver has a named interceptor or requires access checks. |
| 120 Register map = scratch1; | 120 Register map = scratch1; |
| 121 __ lw(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | 121 __ lw(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
| 122 __ lbu(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); | 122 __ lbu(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); |
| 123 __ And(at, scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); | 123 __ And(at, scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); |
| 124 __ Branch(miss_label, ne, at, Operand(zero_reg)); | 124 __ Branch(miss_label, ne, at, Operand(zero_reg)); |
| 125 | 125 |
| 126 | 126 |
| 127 // Check that receiver is a JSObject. | 127 // Check that receiver is a JSObject. |
| 128 __ lbu(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 128 __ lbu(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
| 129 __ Branch(miss_label, lt, scratch0, Operand(FIRST_JS_OBJECT_TYPE)); | 129 __ Branch(miss_label, lt, scratch0, Operand(FIRST_SPEC_OBJECT_TYPE)); |
| 130 | 130 |
| 131 // Load properties array. | 131 // Load properties array. |
| 132 Register properties = scratch0; | 132 Register properties = scratch0; |
| 133 __ lw(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); | 133 __ lw(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); |
| 134 // Check that the properties array is a dictionary. | 134 // Check that the properties array is a dictionary. |
| 135 __ lw(map, FieldMemOperand(properties, HeapObject::kMapOffset)); | 135 __ lw(map, FieldMemOperand(properties, HeapObject::kMapOffset)); |
| 136 Register tmp = properties; | 136 Register tmp = properties; |
| 137 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); | 137 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); |
| 138 __ Branch(miss_label, ne, map, Operand(tmp)); | 138 __ Branch(miss_label, ne, map, Operand(tmp)); |
| 139 | 139 |
| (...skipping 4128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); | 4268 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); |
| 4269 __ Jump(ic, RelocInfo::CODE_TARGET); | 4269 __ Jump(ic, RelocInfo::CODE_TARGET); |
| 4270 } | 4270 } |
| 4271 | 4271 |
| 4272 | 4272 |
| 4273 #undef __ | 4273 #undef __ |
| 4274 | 4274 |
| 4275 } } // namespace v8::internal | 4275 } } // namespace v8::internal |
| 4276 | 4276 |
| 4277 #endif // V8_TARGET_ARCH_MIPS | 4277 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |