OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 | 642 |
643 // Visit the parameters that may be on top of the saved registers. | 643 // Visit the parameters that may be on top of the saved registers. |
644 if (safepoint_entry.argument_count() > 0) { | 644 if (safepoint_entry.argument_count() > 0) { |
645 v->VisitPointers(parameters_base, | 645 v->VisitPointers(parameters_base, |
646 parameters_base + safepoint_entry.argument_count()); | 646 parameters_base + safepoint_entry.argument_count()); |
647 parameters_base += safepoint_entry.argument_count(); | 647 parameters_base += safepoint_entry.argument_count(); |
648 } | 648 } |
649 | 649 |
650 // Skip saved double registers. | 650 // Skip saved double registers. |
651 if (safepoint_entry.has_doubles()) { | 651 if (safepoint_entry.has_doubles()) { |
652 parameters_base += DoubleRegister::kNumAllocatableRegisters * | 652 // Nbr of doubles not known at snapshot time. |
| 653 ASSERT(!Serializer::enabled()); |
| 654 parameters_base += DoubleRegister::NumAllocatableRegisters() * |
653 kDoubleSize / kPointerSize; | 655 kDoubleSize / kPointerSize; |
654 } | 656 } |
655 | 657 |
656 // Visit the registers that contain pointers if any. | 658 // Visit the registers that contain pointers if any. |
657 if (safepoint_entry.HasRegisters()) { | 659 if (safepoint_entry.HasRegisters()) { |
658 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { | 660 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { |
659 if (safepoint_entry.HasRegisterAt(i)) { | 661 if (safepoint_entry.HasRegisterAt(i)) { |
660 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); | 662 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); |
661 v->VisitPointer(parameters_base + reg_stack_index); | 663 v->VisitPointer(parameters_base + reg_stack_index); |
662 } | 664 } |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 ZoneList<StackFrame*> list(10, zone); | 1443 ZoneList<StackFrame*> list(10, zone); |
1442 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1444 for (StackFrameIterator it; !it.done(); it.Advance()) { |
1443 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1445 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1444 list.Add(frame, zone); | 1446 list.Add(frame, zone); |
1445 } | 1447 } |
1446 return list.ToVector(); | 1448 return list.ToVector(); |
1447 } | 1449 } |
1448 | 1450 |
1449 | 1451 |
1450 } } // namespace v8::internal | 1452 } } // namespace v8::internal |
OLD | NEW |