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

Side by Side Diff: src/frames.cc

Issue 6321012: Version 3.0.9... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 11 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/flag-definitions.h ('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 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
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 // Skip saved double registers.
557 if (safepoint_entry.has_doubles()) { 558 if (safepoint_entry.has_doubles()) {
558 parameters_base += DoubleRegister::kNumAllocatableRegisters * 559 parameters_base += DoubleRegister::kNumAllocatableRegisters *
559 kDoubleSize / kPointerSize; 560 kDoubleSize / kPointerSize;
560 } 561 }
561 562
562 // Visit the registers that contain pointers if any. 563 // Visit the registers that contain pointers if any.
563 if (safepoint_entry.HasRegisters()) { 564 if (safepoint_entry.HasRegisters()) {
564 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { 565 for (int i = kNumSafepointRegisters - 1; i >=0; i--) {
565 if (safepoint_entry.HasRegisterAt(i)) { 566 if (safepoint_entry.HasRegisterAt(i)) {
566 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); 567 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i);
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 ZoneList<StackFrame*> list(10); 1223 ZoneList<StackFrame*> list(10);
1223 for (StackFrameIterator it; !it.done(); it.Advance()) { 1224 for (StackFrameIterator it; !it.done(); it.Advance()) {
1224 StackFrame* frame = AllocateFrameCopy(it.frame()); 1225 StackFrame* frame = AllocateFrameCopy(it.frame());
1225 list.Add(frame); 1226 list.Add(frame);
1226 } 1227 }
1227 return list.ToVector(); 1228 return list.ToVector();
1228 } 1229 }
1229 1230
1230 1231
1231 } } // namespace v8::internal 1232 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698