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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
989 // Use a scratch register here to have only one reloc info when unfolding | 989 // Use a scratch register here to have only one reloc info when unfolding |
990 // the loop. | 990 // the loop. |
991 __ mov(scratch3, factory->the_hole_value()); | 991 __ mov(scratch3, factory->the_hole_value()); |
992 for (int i = 0; i < initial_capacity; i++) { | 992 for (int i = 0; i < initial_capacity; i++) { |
993 __ mov(FieldOperand(scratch1, | 993 __ mov(FieldOperand(scratch1, |
994 FixedArray::kHeaderSize + i * kPointerSize), | 994 FixedArray::kHeaderSize + i * kPointerSize), |
995 scratch3); | 995 scratch3); |
996 } | 996 } |
997 } else { | 997 } else { |
998 Label loop, entry; | 998 Label loop, entry; |
999 __ add(scratch1, Immediate(FixedArray::kHeaderSize - kHeapObjectTag)); | |
Kevin Millikin (Chromium)
2011/10/27 10:35:54
On ia32, there's usually no need to untag like thi
| |
999 __ jmp(&entry); | 1000 __ jmp(&entry); |
1000 __ bind(&loop); | 1001 __ bind(&loop); |
1001 __ mov(Operand(scratch1, 0), factory->the_hole_value()); | 1002 __ mov(Operand(scratch1, 0), factory->the_hole_value()); |
1002 __ add(scratch1, Immediate(kPointerSize)); | 1003 __ add(scratch1, Immediate(kPointerSize)); |
1003 __ bind(&entry); | 1004 __ bind(&entry); |
1004 __ cmp(scratch1, scratch2); | 1005 __ cmp(scratch1, scratch2); |
1005 __ j(below, &loop); | 1006 __ j(below, &loop); |
1006 } | 1007 } |
1007 } | 1008 } |
1008 | 1009 |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1672 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); | 1673 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); |
1673 generator.Generate(); | 1674 generator.Generate(); |
1674 } | 1675 } |
1675 | 1676 |
1676 | 1677 |
1677 #undef __ | 1678 #undef __ |
1678 } | 1679 } |
1679 } // namespace v8::internal | 1680 } // namespace v8::internal |
1680 | 1681 |
1681 #endif // V8_TARGET_ARCH_IA32 | 1682 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |