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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 const int kInterceptorOrAccessCheckNeededMask = | 86 const int kInterceptorOrAccessCheckNeededMask = |
87 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded); | 87 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded); |
88 | 88 |
89 // Bail out if the receiver has a named interceptor or requires access checks. | 89 // Bail out if the receiver has a named interceptor or requires access checks. |
90 __ test_b(FieldOperand(scratch0, Map::kBitFieldOffset), | 90 __ test_b(FieldOperand(scratch0, Map::kBitFieldOffset), |
91 kInterceptorOrAccessCheckNeededMask); | 91 kInterceptorOrAccessCheckNeededMask); |
92 __ j(not_zero, miss_label); | 92 __ j(not_zero, miss_label); |
93 | 93 |
94 // Check that receiver is a JSObject. | 94 // Check that receiver is a JSObject. |
95 __ CmpInstanceType(scratch0, FIRST_SPEC_OBJECT_TYPE); | 95 __ CmpInstanceType(scratch0, FIRST_JS_RECEIVER_TYPE); |
96 __ j(below, miss_label); | 96 __ j(below, miss_label); |
97 | 97 |
98 // Load properties array. | 98 // Load properties array. |
99 Register properties = scratch0; | 99 Register properties = scratch0; |
100 __ mov(properties, FieldOperand(receiver, JSObject::kPropertiesOffset)); | 100 __ mov(properties, FieldOperand(receiver, JSObject::kPropertiesOffset)); |
101 | 101 |
102 // Check that the properties array is a dictionary. | 102 // Check that the properties array is a dictionary. |
103 __ cmp(FieldOperand(properties, HeapObject::kMapOffset), | 103 __ cmp(FieldOperand(properties, HeapObject::kMapOffset), |
104 Immediate(masm->isolate()->factory()->hash_table_map())); | 104 Immediate(masm->isolate()->factory()->hash_table_map())); |
105 __ j(not_equal, miss_label); | 105 __ j(not_equal, miss_label); |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 // Return the generated code. | 813 // Return the generated code. |
814 return GetCode(kind(), Code::NORMAL, name); | 814 return GetCode(kind(), Code::NORMAL, name); |
815 } | 815 } |
816 | 816 |
817 | 817 |
818 #undef __ | 818 #undef __ |
819 } // namespace internal | 819 } // namespace internal |
820 } // namespace v8 | 820 } // namespace v8 |
821 | 821 |
822 #endif // V8_TARGET_ARCH_IA32 | 822 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |