OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4906 Label next, start; | 4906 Label next, start; |
4907 Register empty_fixed_array_value = r8; | 4907 Register empty_fixed_array_value = r8; |
4908 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); | 4908 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); |
4909 movq(rcx, rax); | 4909 movq(rcx, rax); |
4910 | 4910 |
4911 // Check if the enum length field is properly initialized, indicating that | 4911 // Check if the enum length field is properly initialized, indicating that |
4912 // there is an enum cache. | 4912 // there is an enum cache. |
4913 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset)); | 4913 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset)); |
4914 | 4914 |
4915 EnumLength(rdx, rbx); | 4915 EnumLength(rdx, rbx); |
4916 Cmp(rdx, Smi::FromInt(Map::kInvalidEnumCache)); | 4916 Cmp(rdx, Smi::FromInt(kInvalidEnumCacheSentinel)); |
4917 j(equal, call_runtime); | 4917 j(equal, call_runtime); |
4918 | 4918 |
4919 jmp(&start); | 4919 jmp(&start); |
4920 | 4920 |
4921 bind(&next); | 4921 bind(&next); |
4922 | 4922 |
4923 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset)); | 4923 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset)); |
4924 | 4924 |
4925 // For all objects but the receiver, check that the cache is empty. | 4925 // For all objects but the receiver, check that the cache is empty. |
4926 EnumLength(rdx, rbx); | 4926 EnumLength(rdx, rbx); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4983 j(equal, found); | 4983 j(equal, found); |
4984 movq(current, FieldOperand(current, Map::kPrototypeOffset)); | 4984 movq(current, FieldOperand(current, Map::kPrototypeOffset)); |
4985 CompareRoot(current, Heap::kNullValueRootIndex); | 4985 CompareRoot(current, Heap::kNullValueRootIndex); |
4986 j(not_equal, &loop_again); | 4986 j(not_equal, &loop_again); |
4987 } | 4987 } |
4988 | 4988 |
4989 | 4989 |
4990 } } // namespace v8::internal | 4990 } } // namespace v8::internal |
4991 | 4991 |
4992 #endif // V8_TARGET_ARCH_X64 | 4992 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |