Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: src/frames.cc

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 // Visit the parameters that may be on top of the saved registers. 656 // Visit the parameters that may be on top of the saved registers.
657 if (safepoint_entry.argument_count() > 0) { 657 if (safepoint_entry.argument_count() > 0) {
658 v->VisitPointers(parameters_base, 658 v->VisitPointers(parameters_base,
659 parameters_base + safepoint_entry.argument_count()); 659 parameters_base + safepoint_entry.argument_count());
660 parameters_base += safepoint_entry.argument_count(); 660 parameters_base += safepoint_entry.argument_count();
661 } 661 }
662 662
663 // Skip saved double registers. 663 // Skip saved double registers.
664 if (safepoint_entry.has_doubles()) { 664 if (safepoint_entry.has_doubles()) {
665 // Number of doubles not known at snapshot time. 665 // Number of doubles not known at snapshot time.
666 ASSERT(!Serializer::enabled()); 666 ASSERT(!Serializer::enabled(isolate()));
667 parameters_base += DoubleRegister::NumAllocatableRegisters() * 667 parameters_base += DoubleRegister::NumAllocatableRegisters() *
668 kDoubleSize / kPointerSize; 668 kDoubleSize / kPointerSize;
669 } 669 }
670 670
671 // Visit the registers that contain pointers if any. 671 // Visit the registers that contain pointers if any.
672 if (safepoint_entry.HasRegisters()) { 672 if (safepoint_entry.HasRegisters()) {
673 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { 673 for (int i = kNumSafepointRegisters - 1; i >=0; i--) {
674 if (safepoint_entry.HasRegisterAt(i)) { 674 if (safepoint_entry.HasRegisterAt(i)) {
675 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); 675 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i);
676 v->VisitPointer(parameters_base + reg_stack_index); 676 v->VisitPointer(parameters_base + reg_stack_index);
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 ZoneList<StackFrame*> list(10, zone); 1639 ZoneList<StackFrame*> list(10, zone);
1640 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { 1640 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) {
1641 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); 1641 StackFrame* frame = AllocateFrameCopy(it.frame(), zone);
1642 list.Add(frame, zone); 1642 list.Add(frame, zone);
1643 } 1643 }
1644 return list.ToVector(); 1644 return list.ToVector();
1645 } 1645 }
1646 1646
1647 1647
1648 } } // namespace v8::internal 1648 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen.cc » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698