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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Bail out if the receiver has a named interceptor or requires access checks. | 53 // Bail out if the receiver has a named interceptor or requires access checks. |
54 Register map = scratch1; | 54 Register map = scratch1; |
55 __ Ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); | 55 __ Ldr(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
56 __ Ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); | 56 __ Ldrb(scratch0, FieldMemOperand(map, Map::kBitFieldOffset)); |
57 __ Tst(scratch0, kInterceptorOrAccessCheckNeededMask); | 57 __ Tst(scratch0, kInterceptorOrAccessCheckNeededMask); |
58 __ B(ne, miss_label); | 58 __ B(ne, miss_label); |
59 | 59 |
60 // Check that receiver is a JSObject. | 60 // Check that receiver is a JSObject. |
61 __ Ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 61 __ Ldrb(scratch0, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
62 __ Cmp(scratch0, FIRST_SPEC_OBJECT_TYPE); | 62 __ Cmp(scratch0, FIRST_JS_RECEIVER_TYPE); |
63 __ B(lt, miss_label); | 63 __ B(lt, miss_label); |
64 | 64 |
65 // Load properties array. | 65 // Load properties array. |
66 Register properties = scratch0; | 66 Register properties = scratch0; |
67 __ Ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); | 67 __ Ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); |
68 // Check that the properties array is a dictionary. | 68 // Check that the properties array is a dictionary. |
69 __ Ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset)); | 69 __ Ldr(map, FieldMemOperand(properties, HeapObject::kMapOffset)); |
70 __ JumpIfNotRoot(map, Heap::kHashTableMapRootIndex, miss_label); | 70 __ JumpIfNotRoot(map, Heap::kHashTableMapRootIndex, miss_label); |
71 | 71 |
72 NameDictionaryLookupStub::GenerateNegativeLookup( | 72 NameDictionaryLookupStub::GenerateNegativeLookup( |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 // Return the generated code. | 802 // Return the generated code. |
803 return GetCode(kind(), Code::FAST, name); | 803 return GetCode(kind(), Code::FAST, name); |
804 } | 804 } |
805 | 805 |
806 | 806 |
807 #undef __ | 807 #undef __ |
808 } // namespace internal | 808 } // namespace internal |
809 } // namespace v8 | 809 } // namespace v8 |
810 | 810 |
811 #endif // V8_TARGET_ARCH_IA32 | 811 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |