OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Make sure that there are no register conflicts. | 99 // Make sure that there are no register conflicts. |
100 ASSERT(!scratch.is(receiver)); | 100 ASSERT(!scratch.is(receiver)); |
101 ASSERT(!scratch.is(name)); | 101 ASSERT(!scratch.is(name)); |
102 | 102 |
103 // Check that the receiver isn't a smi. | 103 // Check that the receiver isn't a smi. |
104 __ tst(receiver, Operand(kSmiTagMask)); | 104 __ tst(receiver, Operand(kSmiTagMask)); |
105 __ b(eq, &miss); | 105 __ b(eq, &miss); |
106 | 106 |
107 // Get the map of the receiver and compute the hash. | 107 // Get the map of the receiver and compute the hash. |
108 __ ldr(scratch, FieldMemOperand(name, String::kLengthOffset)); | 108 __ ldr(scratch, FieldMemOperand(name, String::kHashFieldOffset)); |
109 __ ldr(ip, FieldMemOperand(receiver, HeapObject::kMapOffset)); | 109 __ ldr(ip, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
110 __ add(scratch, scratch, Operand(ip)); | 110 __ add(scratch, scratch, Operand(ip)); |
111 __ eor(scratch, scratch, Operand(flags)); | 111 __ eor(scratch, scratch, Operand(flags)); |
112 __ and_(scratch, | 112 __ and_(scratch, |
113 scratch, | 113 scratch, |
114 Operand((kPrimaryTableSize - 1) << kHeapObjectTagSize)); | 114 Operand((kPrimaryTableSize - 1) << kHeapObjectTagSize)); |
115 | 115 |
116 // Probe the primary table. | 116 // Probe the primary table. |
117 ProbeTable(masm, flags, kPrimary, name, scratch); | 117 ProbeTable(masm, flags, kPrimary, name, scratch); |
118 | 118 |
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 1478 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
1479 | 1479 |
1480 // Return the generated code. | 1480 // Return the generated code. |
1481 return GetCode(); | 1481 return GetCode(); |
1482 } | 1482 } |
1483 | 1483 |
1484 | 1484 |
1485 #undef __ | 1485 #undef __ |
1486 | 1486 |
1487 } } // namespace v8::internal | 1487 } } // namespace v8::internal |
OLD | NEW |