| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 Object** parameters_limit = &Memory::Object_at( | 555 Object** parameters_limit = &Memory::Object_at( |
| 556 fp() + JavaScriptFrameConstants::kFunctionOffset - slot_space); | 556 fp() + JavaScriptFrameConstants::kFunctionOffset - slot_space); |
| 557 | 557 |
| 558 // Visit the parameters that may be on top of the saved registers. | 558 // Visit the parameters that may be on top of the saved registers. |
| 559 if (safepoint_entry.argument_count() > 0) { | 559 if (safepoint_entry.argument_count() > 0) { |
| 560 v->VisitPointers(parameters_base, | 560 v->VisitPointers(parameters_base, |
| 561 parameters_base + safepoint_entry.argument_count()); | 561 parameters_base + safepoint_entry.argument_count()); |
| 562 parameters_base += safepoint_entry.argument_count(); | 562 parameters_base += safepoint_entry.argument_count(); |
| 563 } | 563 } |
| 564 | 564 |
| 565 // Skip saved double registers. |
| 566 if (safepoint_entry.has_doubles()) { |
| 567 parameters_base += DoubleRegister::kNumAllocatableRegisters * |
| 568 kDoubleSize / kPointerSize; |
| 569 } |
| 570 |
| 565 // Visit the registers that contain pointers if any. | 571 // Visit the registers that contain pointers if any. |
| 566 if (safepoint_entry.HasRegisters()) { | 572 if (safepoint_entry.HasRegisters()) { |
| 567 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { | 573 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { |
| 568 if (safepoint_entry.HasRegisterAt(i)) { | 574 if (safepoint_entry.HasRegisterAt(i)) { |
| 569 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); | 575 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); |
| 570 v->VisitPointer(parameters_base + reg_stack_index); | 576 v->VisitPointer(parameters_base + reg_stack_index); |
| 571 } | 577 } |
| 572 } | 578 } |
| 573 // Skip the words containing the register values. | 579 // Skip the words containing the register values. |
| 574 parameters_base += kNumSafepointRegisters; | 580 parameters_base += kNumSafepointRegisters; |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 ZoneList<StackFrame*> list(10); | 1238 ZoneList<StackFrame*> list(10); |
| 1233 for (StackFrameIterator it; !it.done(); it.Advance()) { | 1239 for (StackFrameIterator it; !it.done(); it.Advance()) { |
| 1234 StackFrame* frame = AllocateFrameCopy(it.frame()); | 1240 StackFrame* frame = AllocateFrameCopy(it.frame()); |
| 1235 list.Add(frame); | 1241 list.Add(frame); |
| 1236 } | 1242 } |
| 1237 return list.ToVector(); | 1243 return list.ToVector(); |
| 1238 } | 1244 } |
| 1239 | 1245 |
| 1240 | 1246 |
| 1241 } } // namespace v8::internal | 1247 } } // namespace v8::internal |
| OLD | NEW |