| 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 547   Object** parameters_limit = &Memory::Object_at( | 547   Object** parameters_limit = &Memory::Object_at( | 
| 548       fp() + JavaScriptFrameConstants::kFunctionOffset - slot_space); | 548       fp() + JavaScriptFrameConstants::kFunctionOffset - slot_space); | 
| 549 | 549 | 
| 550   // Visit the parameters that may be on top of the saved registers. | 550   // Visit the parameters that may be on top of the saved registers. | 
| 551   if (safepoint_entry.argument_count() > 0) { | 551   if (safepoint_entry.argument_count() > 0) { | 
| 552     v->VisitPointers(parameters_base, | 552     v->VisitPointers(parameters_base, | 
| 553                      parameters_base + safepoint_entry.argument_count()); | 553                      parameters_base + safepoint_entry.argument_count()); | 
| 554     parameters_base += safepoint_entry.argument_count(); | 554     parameters_base += safepoint_entry.argument_count(); | 
| 555   } | 555   } | 
| 556 | 556 | 
|  | 557   if (safepoint_entry.has_doubles()) { | 
|  | 558     parameters_base += DwVfpRegister::kNumAllocatableRegisters * | 
|  | 559         kDoubleSize / kPointerSize; | 
|  | 560   } | 
|  | 561 | 
| 557   // Visit the registers that contain pointers if any. | 562   // Visit the registers that contain pointers if any. | 
| 558   if (safepoint_entry.HasRegisters()) { | 563   if (safepoint_entry.HasRegisters()) { | 
| 559     for (int i = kNumSafepointRegisters - 1; i >=0; i--) { | 564     for (int i = kNumSafepointRegisters - 1; i >=0; i--) { | 
| 560       if (safepoint_entry.HasRegisterAt(i)) { | 565       if (safepoint_entry.HasRegisterAt(i)) { | 
| 561         int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); | 566         int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); | 
| 562         v->VisitPointer(parameters_base + reg_stack_index); | 567         v->VisitPointer(parameters_base + reg_stack_index); | 
| 563       } | 568       } | 
| 564     } | 569     } | 
| 565     // Skip the words containing the register values. | 570     // Skip the words containing the register values. | 
| 566     parameters_base += kNumSafepointRegisters; | 571     parameters_base += kNumSafepointRegisters; | 
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1217   ZoneList<StackFrame*> list(10); | 1222   ZoneList<StackFrame*> list(10); | 
| 1218   for (StackFrameIterator it; !it.done(); it.Advance()) { | 1223   for (StackFrameIterator it; !it.done(); it.Advance()) { | 
| 1219     StackFrame* frame = AllocateFrameCopy(it.frame()); | 1224     StackFrame* frame = AllocateFrameCopy(it.frame()); | 
| 1220     list.Add(frame); | 1225     list.Add(frame); | 
| 1221   } | 1226   } | 
| 1222   return list.ToVector(); | 1227   return list.ToVector(); | 
| 1223 } | 1228 } | 
| 1224 | 1229 | 
| 1225 | 1230 | 
| 1226 } }  // namespace v8::internal | 1231 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|