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

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: Rebased. Feedback. 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
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()); 643 ASSERT(!Serializer::enabled(isolate()));
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
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
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698