| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 not_unique, hi); | 321 not_unique, hi); |
| 322 STATIC_ASSERT(LAST_UNIQUE_NAME_TYPE == FIRST_NONSTRING_TYPE); | 322 STATIC_ASSERT(LAST_UNIQUE_NAME_TYPE == FIRST_NONSTRING_TYPE); |
| 323 __ B(eq, &unique); | 323 __ B(eq, &unique); |
| 324 | 324 |
| 325 // Is the string an array index with cached numeric value? | 325 // Is the string an array index with cached numeric value? |
| 326 __ Ldr(hash_scratch.W(), FieldMemOperand(key, Name::kHashFieldOffset)); | 326 __ Ldr(hash_scratch.W(), FieldMemOperand(key, Name::kHashFieldOffset)); |
| 327 __ TestAndBranchIfAllClear(hash_scratch, | 327 __ TestAndBranchIfAllClear(hash_scratch, |
| 328 Name::kContainsCachedArrayIndexMask, | 328 Name::kContainsCachedArrayIndexMask, |
| 329 index_string); | 329 index_string); |
| 330 | 330 |
| 331 // Is the string internalized? | 331 // Is the string internalized? We know it's a string, so a single bit test is |
| 332 // enough. |
| 332 __ Ldrb(hash_scratch, FieldMemOperand(map_scratch, Map::kInstanceTypeOffset)); | 333 __ Ldrb(hash_scratch, FieldMemOperand(map_scratch, Map::kInstanceTypeOffset)); |
| 333 STATIC_ASSERT(kInternalizedTag != 0); | 334 STATIC_ASSERT(kInternalizedTag != 0); |
| 334 __ TestAndBranchIfAllClear(hash_scratch, kIsInternalizedMask, | 335 __ TestAndBranchIfAllClear(hash_scratch, kIsInternalizedMask, |
| 335 not_unique); | 336 not_unique); |
| 336 | 337 |
| 337 __ Bind(&unique); | 338 __ Bind(&unique); |
| 338 // Fall through if the key is a unique name. | 339 // Fall through if the key is a unique name. |
| 339 } | 340 } |
| 340 | 341 |
| 341 | 342 |
| (...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1850 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
| 1850 // This is JumpIfSmi(smi_reg, branch_imm). | 1851 // This is JumpIfSmi(smi_reg, branch_imm). |
| 1851 patcher.tbz(smi_reg, 0, branch_imm); | 1852 patcher.tbz(smi_reg, 0, branch_imm); |
| 1852 } | 1853 } |
| 1853 } | 1854 } |
| 1854 | 1855 |
| 1855 | 1856 |
| 1856 } } // namespace v8::internal | 1857 } } // namespace v8::internal |
| 1857 | 1858 |
| 1858 #endif // V8_TARGET_ARCH_A64 | 1859 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |