| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 const int kInterceptorOrAccessCheckNeededMask = | 99 const int kInterceptorOrAccessCheckNeededMask = |
| 100 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded); | 100 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded); |
| 101 | 101 |
| 102 // Bail out if the receiver has a named interceptor or requires access checks. | 102 // Bail out if the receiver has a named interceptor or requires access checks. |
| 103 __ testb(FieldOperand(r0, Map::kBitFieldOffset), | 103 __ testb(FieldOperand(r0, Map::kBitFieldOffset), |
| 104 Immediate(kInterceptorOrAccessCheckNeededMask)); | 104 Immediate(kInterceptorOrAccessCheckNeededMask)); |
| 105 __ j(not_zero, miss_label); | 105 __ j(not_zero, miss_label); |
| 106 | 106 |
| 107 // Check that receiver is a JSObject. | 107 // Check that receiver is a JSObject. |
| 108 __ CmpInstanceType(r0, FIRST_JS_OBJECT_TYPE); | 108 __ CmpInstanceType(r0, FIRST_SPEC_OBJECT_TYPE); |
| 109 __ j(below, miss_label); | 109 __ j(below, miss_label); |
| 110 | 110 |
| 111 // Load properties array. | 111 // Load properties array. |
| 112 Register properties = r0; | 112 Register properties = r0; |
| 113 __ movq(properties, FieldOperand(receiver, JSObject::kPropertiesOffset)); | 113 __ movq(properties, FieldOperand(receiver, JSObject::kPropertiesOffset)); |
| 114 | 114 |
| 115 // Check that the properties array is a dictionary. | 115 // Check that the properties array is a dictionary. |
| 116 __ CompareRoot(FieldOperand(properties, HeapObject::kMapOffset), | 116 __ CompareRoot(FieldOperand(properties, HeapObject::kMapOffset), |
| 117 Heap::kHashTableMapRootIndex); | 117 Heap::kHashTableMapRootIndex); |
| 118 __ j(not_equal, miss_label); | 118 __ j(not_equal, miss_label); |
| (...skipping 3511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3630 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); | 3630 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); |
| 3631 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET); | 3631 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET); |
| 3632 } | 3632 } |
| 3633 | 3633 |
| 3634 | 3634 |
| 3635 #undef __ | 3635 #undef __ |
| 3636 | 3636 |
| 3637 } } // namespace v8::internal | 3637 } } // namespace v8::internal |
| 3638 | 3638 |
| 3639 #endif // V8_TARGET_ARCH_X64 | 3639 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |