OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 __ JumpIfNotSmi(rax, &check_string); | 503 __ JumpIfNotSmi(rax, &check_string); |
504 __ bind(&index_smi); | 504 __ bind(&index_smi); |
505 // Now the key is known to be a smi. This place is also jumped to from below | 505 // Now the key is known to be a smi. This place is also jumped to from below |
506 // where a numeric string is converted to a smi. | 506 // where a numeric string is converted to a smi. |
507 | 507 |
508 GenerateKeyedLoadReceiverCheck( | 508 GenerateKeyedLoadReceiverCheck( |
509 masm, rdx, rcx, Map::kHasIndexedInterceptor, &slow); | 509 masm, rdx, rcx, Map::kHasIndexedInterceptor, &slow); |
510 | 510 |
511 // Check the "has fast elements" bit in the receiver's map which is | 511 // Check the "has fast elements" bit in the receiver's map which is |
512 // now in rcx. | 512 // now in rcx. |
513 __ testb(FieldOperand(rcx, Map::kBitField2Offset), | 513 __ CheckFastElements(rcx, &check_number_dictionary); |
514 Immediate(1 << Map::kHasFastElements)); | |
515 __ j(zero, &check_number_dictionary); | |
516 | 514 |
517 GenerateFastArrayLoad(masm, | 515 GenerateFastArrayLoad(masm, |
518 rdx, | 516 rdx, |
519 rax, | 517 rax, |
520 rcx, | 518 rcx, |
521 rbx, | 519 rbx, |
522 rax, | 520 rax, |
523 NULL, | 521 NULL, |
524 &slow); | 522 &slow); |
525 Counters* counters = masm->isolate()->counters(); | 523 Counters* counters = masm->isolate()->counters(); |
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 Condition cc = *jmp_address == Assembler::kJncShortOpcode | 1597 Condition cc = *jmp_address == Assembler::kJncShortOpcode |
1600 ? not_zero | 1598 ? not_zero |
1601 : zero; | 1599 : zero; |
1602 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1600 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1603 } | 1601 } |
1604 | 1602 |
1605 | 1603 |
1606 } } // namespace v8::internal | 1604 } } // namespace v8::internal |
1607 | 1605 |
1608 #endif // V8_TARGET_ARCH_X64 | 1606 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |