OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "ast.h" | 7 #include "ast.h" |
8 #include "deoptimizer.h" | 8 #include "deoptimizer.h" |
9 #include "frames-inl.h" | 9 #include "frames-inl.h" |
10 #include "full-codegen.h" | 10 #include "full-codegen.h" |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 // Visit the parameters that may be on top of the saved registers. | 633 // Visit the parameters that may be on top of the saved registers. |
634 if (safepoint_entry.argument_count() > 0) { | 634 if (safepoint_entry.argument_count() > 0) { |
635 v->VisitPointers(parameters_base, | 635 v->VisitPointers(parameters_base, |
636 parameters_base + safepoint_entry.argument_count()); | 636 parameters_base + safepoint_entry.argument_count()); |
637 parameters_base += safepoint_entry.argument_count(); | 637 parameters_base += safepoint_entry.argument_count(); |
638 } | 638 } |
639 | 639 |
640 // Skip saved double registers. | 640 // Skip saved double registers. |
641 if (safepoint_entry.has_doubles()) { | 641 if (safepoint_entry.has_doubles()) { |
642 // Number of doubles not known at snapshot time. | 642 // Number of doubles not known at snapshot time. |
643 ASSERT(!Serializer::enabled(isolate())); | 643 ASSERT(!isolate()->serializer_enabled()); |
644 parameters_base += DoubleRegister::NumAllocatableRegisters() * | 644 parameters_base += DoubleRegister::NumAllocatableRegisters() * |
645 kDoubleSize / kPointerSize; | 645 kDoubleSize / kPointerSize; |
646 } | 646 } |
647 | 647 |
648 // Visit the registers that contain pointers if any. | 648 // Visit the registers that contain pointers if any. |
649 if (safepoint_entry.HasRegisters()) { | 649 if (safepoint_entry.HasRegisters()) { |
650 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { | 650 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { |
651 if (safepoint_entry.HasRegisterAt(i)) { | 651 if (safepoint_entry.HasRegisterAt(i)) { |
652 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); | 652 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); |
653 v->VisitPointer(parameters_base + reg_stack_index); | 653 v->VisitPointer(parameters_base + reg_stack_index); |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 ZoneList<StackFrame*> list(10, zone); | 1616 ZoneList<StackFrame*> list(10, zone); |
1617 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1617 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1618 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1618 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1619 list.Add(frame, zone); | 1619 list.Add(frame, zone); |
1620 } | 1620 } |
1621 return list.ToVector(); | 1621 return list.ToVector(); |
1622 } | 1622 } |
1623 | 1623 |
1624 | 1624 |
1625 } } // namespace v8::internal | 1625 } } // namespace v8::internal |
OLD | NEW |