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

Side by Side Diff: src/frames.cc

Issue 6597029: [Isolates] Merge r 6300:6500 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 10 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 Object** parameters_limit = &Memory::Object_at( 555 Object** parameters_limit = &Memory::Object_at(
556 fp() + JavaScriptFrameConstants::kFunctionOffset - slot_space); 556 fp() + JavaScriptFrameConstants::kFunctionOffset - slot_space);
557 557
558 // Visit the parameters that may be on top of the saved registers. 558 // Visit the parameters that may be on top of the saved registers.
559 if (safepoint_entry.argument_count() > 0) { 559 if (safepoint_entry.argument_count() > 0) {
560 v->VisitPointers(parameters_base, 560 v->VisitPointers(parameters_base,
561 parameters_base + safepoint_entry.argument_count()); 561 parameters_base + safepoint_entry.argument_count());
562 parameters_base += safepoint_entry.argument_count(); 562 parameters_base += safepoint_entry.argument_count();
563 } 563 }
564 564
565 // Skip saved double registers.
566 if (safepoint_entry.has_doubles()) {
567 parameters_base += DoubleRegister::kNumAllocatableRegisters *
568 kDoubleSize / kPointerSize;
569 }
570
565 // Visit the registers that contain pointers if any. 571 // Visit the registers that contain pointers if any.
566 if (safepoint_entry.HasRegisters()) { 572 if (safepoint_entry.HasRegisters()) {
567 for (int i = kNumSafepointRegisters - 1; i >=0; i--) { 573 for (int i = kNumSafepointRegisters - 1; i >=0; i--) {
568 if (safepoint_entry.HasRegisterAt(i)) { 574 if (safepoint_entry.HasRegisterAt(i)) {
569 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i); 575 int reg_stack_index = MacroAssembler::SafepointRegisterStackIndex(i);
570 v->VisitPointer(parameters_base + reg_stack_index); 576 v->VisitPointer(parameters_base + reg_stack_index);
571 } 577 }
572 } 578 }
573 // Skip the words containing the register values. 579 // Skip the words containing the register values.
574 parameters_base += kNumSafepointRegisters; 580 parameters_base += kNumSafepointRegisters;
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 ZoneList<StackFrame*> list(10); 1238 ZoneList<StackFrame*> list(10);
1233 for (StackFrameIterator it; !it.done(); it.Advance()) { 1239 for (StackFrameIterator it; !it.done(); it.Advance()) {
1234 StackFrame* frame = AllocateFrameCopy(it.frame()); 1240 StackFrame* frame = AllocateFrameCopy(it.frame());
1235 list.Add(frame); 1241 list.Add(frame);
1236 } 1242 }
1237 return list.ToVector(); 1243 return list.ToVector();
1238 } 1244 }
1239 1245
1240 1246
1241 } } // namespace v8::internal 1247 } } // 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