OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 | 824 |
825 Register reg = FrontendHeader(object_reg, name, &miss); | 825 Register reg = FrontendHeader(object_reg, name, &miss); |
826 // FrontendHeader can return its result into scratch1() so do not | 826 // FrontendHeader can return its result into scratch1() so do not |
827 // use it. | 827 // use it. |
828 Register scratch2 = this->scratch2(); | 828 Register scratch2 = this->scratch2(); |
829 Register scratch3 = this->scratch3(); | 829 Register scratch3 = this->scratch3(); |
830 Register dictionary = this->scratch4(); | 830 Register dictionary = this->scratch4(); |
831 ASSERT(!AreAliased(reg, scratch2, scratch3, dictionary)); | 831 ASSERT(!AreAliased(reg, scratch2, scratch3, dictionary)); |
832 | 832 |
833 if (!holder()->HasFastProperties()) { | 833 if (!holder()->HasFastProperties()) { |
834 ASSERT(holder()->IsGlobalObject()); | 834 ASSERT(!holder()->IsGlobalObject()); |
835 // Load the properties dictionary. | 835 // Load the properties dictionary. |
836 __ Ldr(dictionary, FieldMemOperand(reg, JSObject::kPropertiesOffset)); | 836 __ Ldr(dictionary, FieldMemOperand(reg, JSObject::kPropertiesOffset)); |
837 | 837 |
838 // Probe the dictionary. | 838 // Probe the dictionary. |
839 Label probe_done; | 839 Label probe_done; |
840 NameDictionaryLookupStub::GeneratePositiveLookup(masm(), | 840 NameDictionaryLookupStub::GeneratePositiveLookup(masm(), |
841 &miss, | 841 &miss, |
842 &probe_done, | 842 &probe_done, |
843 dictionary, | 843 dictionary, |
844 this->name(), | 844 this->name(), |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 | 1346 |
1347 // Miss case, call the runtime. | 1347 // Miss case, call the runtime. |
1348 __ Bind(&miss); | 1348 __ Bind(&miss); |
1349 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1349 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1350 } | 1350 } |
1351 | 1351 |
1352 | 1352 |
1353 } } // namespace v8::internal | 1353 } } // namespace v8::internal |
1354 | 1354 |
1355 #endif // V8_TARGET_ARCH_ARM64 | 1355 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |