OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 7458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7469 key.reg()); | 7469 key.reg()); |
7470 | 7470 |
7471 __ JumpIfSmi(receiver.reg(), deferred->entry_label()); | 7471 __ JumpIfSmi(receiver.reg(), deferred->entry_label()); |
7472 | 7472 |
7473 // Check that the receiver has the expected map. | 7473 // Check that the receiver has the expected map. |
7474 // Initially, use an invalid map. The map is patched in the IC | 7474 // Initially, use an invalid map. The map is patched in the IC |
7475 // initialization code. | 7475 // initialization code. |
7476 __ bind(deferred->patch_site()); | 7476 __ bind(deferred->patch_site()); |
7477 // Use masm-> here instead of the double underscore macro since extra | 7477 // Use masm-> here instead of the double underscore macro since extra |
7478 // coverage code can interfere with the patching. Do not use a load | 7478 // coverage code can interfere with the patching. Do not use a load |
7479 // from the root away to load null_value, since the load must be patched | 7479 // from the root array to load null_value, since the load must be patched |
7480 // with the expected receiver map, which is not in the root array. | 7480 // with the expected receiver map, which is not in the root array. |
7481 masm_->movq(kScratchRegister, Factory::null_value(), | 7481 masm_->movq(kScratchRegister, Factory::null_value(), |
7482 RelocInfo::EMBEDDED_OBJECT); | 7482 RelocInfo::EMBEDDED_OBJECT); |
7483 masm_->cmpq(FieldOperand(receiver.reg(), HeapObject::kMapOffset), | 7483 masm_->cmpq(FieldOperand(receiver.reg(), HeapObject::kMapOffset), |
7484 kScratchRegister); | 7484 kScratchRegister); |
7485 deferred->Branch(not_equal); | 7485 deferred->Branch(not_equal); |
7486 | 7486 |
7487 // Check that the key is a non-negative smi. | 7487 // Check that the key is a non-negative smi. |
7488 __ JumpIfNotPositiveSmi(key.reg(), deferred->entry_label()); | 7488 __ JumpIfNotPositiveSmi(key.reg(), deferred->entry_label()); |
7489 | 7489 |
(...skipping 4381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11871 } | 11871 } |
11872 | 11872 |
11873 #endif | 11873 #endif |
11874 | 11874 |
11875 | 11875 |
11876 #undef __ | 11876 #undef __ |
11877 | 11877 |
11878 } } // namespace v8::internal | 11878 } } // namespace v8::internal |
11879 | 11879 |
11880 #endif // V8_TARGET_ARCH_X64 | 11880 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |