OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/ic/call-optimization.h" | 7 #include "src/ic/call-optimization.h" |
8 #include "src/ic/handler-compiler.h" | 8 #include "src/ic/handler-compiler.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // Bail out if the receiver has a named interceptor or requires access checks. | 135 // Bail out if the receiver has a named interceptor or requires access checks. |
136 Register map = scratch1; | 136 Register map = scratch1; |
137 __ LoadP(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | 137 __ LoadP(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
138 __ lbz(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); | 138 __ lbz(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); |
139 __ andi(r0, scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); | 139 __ andi(r0, scratch0, Operand(kInterceptorOrAccessCheckNeededMask)); |
140 __ bne(miss_label, cr0); | 140 __ bne(miss_label, cr0); |
141 | 141 |
142 // Check that receiver is a JSObject. | 142 // Check that receiver is a JSObject. |
143 __ lbz(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 143 __ lbz(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
144 __ cmpi(scratch0, Operand(FIRST_SPEC_OBJECT_TYPE)); | 144 __ cmpi(scratch0, Operand(FIRST_JS_RECEIVER_TYPE)); |
145 __ blt(miss_label); | 145 __ blt(miss_label); |
146 | 146 |
147 // Load properties array. | 147 // Load properties array. |
148 Register properties = scratch0; | 148 Register properties = scratch0; |
149 __ LoadP(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); | 149 __ LoadP(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); |
150 // Check that the properties array is a dictionary. | 150 // Check that the properties array is a dictionary. |
151 __ LoadP(map, FieldMemOperand(properties, HeapObject::kMapOffset)); | 151 __ LoadP(map, FieldMemOperand(properties, HeapObject::kMapOffset)); |
152 Register tmp = properties; | 152 Register tmp = properties; |
153 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); | 153 __ LoadRoot(tmp, Heap::kHashTableMapRootIndex); |
154 __ cmp(map, tmp); | 154 __ cmp(map, tmp); |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 // Return the generated code. | 788 // Return the generated code. |
789 return GetCode(kind(), Code::NORMAL, name); | 789 return GetCode(kind(), Code::NORMAL, name); |
790 } | 790 } |
791 | 791 |
792 | 792 |
793 #undef __ | 793 #undef __ |
794 } // namespace internal | 794 } // namespace internal |
795 } // namespace v8 | 795 } // namespace v8 |
796 | 796 |
797 #endif // V8_TARGET_ARCH_ARM | 797 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |