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 5577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5588 // |done| label if a property with the given name is found leaving the | 5588 // |done| label if a property with the given name is found leaving the |
5589 // index into the dictionary in |r1|. Jump to the |miss| label | 5589 // index into the dictionary in |r1|. Jump to the |miss| label |
5590 // otherwise. | 5590 // otherwise. |
5591 void StringDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm, | 5591 void StringDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm, |
5592 Label* miss, | 5592 Label* miss, |
5593 Label* done, | 5593 Label* done, |
5594 Register elements, | 5594 Register elements, |
5595 Register name, | 5595 Register name, |
5596 Register r0, | 5596 Register r0, |
5597 Register r1) { | 5597 Register r1) { |
| 5598 ASSERT(!elements.is(r0)); |
| 5599 ASSERT(!elements.is(r1)); |
| 5600 ASSERT(!name.is(r0)); |
| 5601 ASSERT(!name.is(r1)); |
| 5602 |
5598 // Assert that name contains a string. | 5603 // Assert that name contains a string. |
5599 if (FLAG_debug_code) __ AbortIfNotString(name); | 5604 if (FLAG_debug_code) __ AbortIfNotString(name); |
5600 | 5605 |
5601 __ SmiToInteger32(r0, FieldOperand(elements, kCapacityOffset)); | 5606 __ SmiToInteger32(r0, FieldOperand(elements, kCapacityOffset)); |
5602 __ decl(r0); | 5607 __ decl(r0); |
5603 | 5608 |
5604 for (int i = 0; i < kInlinedProbes; i++) { | 5609 for (int i = 0; i < kInlinedProbes; i++) { |
5605 // Compute the masked index: (hash + i + i * i) & mask. | 5610 // Compute the masked index: (hash + i + i * i) & mask. |
5606 __ movl(r1, FieldOperand(name, String::kHashFieldOffset)); | 5611 __ movl(r1, FieldOperand(name, String::kHashFieldOffset)); |
5607 __ shrl(r1, Immediate(String::kHashShift)); | 5612 __ shrl(r1, Immediate(String::kHashShift)); |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6003 __ bind(&need_incremental); | 6008 __ bind(&need_incremental); |
6004 | 6009 |
6005 // Fall through when we need to inform the incremental marker. | 6010 // Fall through when we need to inform the incremental marker. |
6006 } | 6011 } |
6007 | 6012 |
6008 #undef __ | 6013 #undef __ |
6009 | 6014 |
6010 } } // namespace v8::internal | 6015 } } // namespace v8::internal |
6011 | 6016 |
6012 #endif // V8_TARGET_ARCH_X64 | 6017 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |