Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index cb9ffba8c913a47d6d7ac09e664ceb1e4de4dd5e..3b60fb59fa230537268533c6813d4c7cbe0575ae 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -617,7 +617,7 @@ bool StandardFrame::IsExpressionInsideHandler(int n) const { |
} |
-void CompiledFrame::Iterate(ObjectVisitor* v) const { |
+void OptimizedFrame::Iterate(ObjectVisitor* v) const { |
#ifdef DEBUG |
// Make sure that optimized frames do not contain any stack handlers. |
StackHandlerIterator it(this, top_handler()); |
@@ -649,7 +649,7 @@ void CompiledFrame::Iterate(ObjectVisitor* v) const { |
// Skip saved double registers. |
if (safepoint_entry.has_doubles()) { |
- parameters_base += DoubleRegister::NumAllocatableRegisters() * |
+ parameters_base += DoubleRegister::kNumAllocatableRegisters * |
kDoubleSize / kPointerSize; |
} |
@@ -681,24 +681,14 @@ void CompiledFrame::Iterate(ObjectVisitor* v) const { |
} |
} |
- // Visit the return address in the callee and incoming arguments. |
- IteratePc(v, pc_address(), code); |
-} |
- |
- |
-void StubFrame::Iterate(ObjectVisitor* v) const { |
- CompiledFrame::Iterate(v); |
-} |
- |
- |
-void OptimizedFrame::Iterate(ObjectVisitor* v) const { |
- CompiledFrame::Iterate(v); |
- |
// Visit the context and the function. |
Object** fixed_base = &Memory::Object_at( |
fp() + JavaScriptFrameConstants::kFunctionOffset); |
Object** fixed_limit = &Memory::Object_at(fp()); |
v->VisitPointers(fixed_base, fixed_limit); |
+ |
+ // Visit the return address in the callee and incoming arguments. |
+ IteratePc(v, pc_address(), code); |
} |