Index: src/frames.cc |
=================================================================== |
--- src/frames.cc (revision 3132) |
+++ src/frames.cc (working copy) |
@@ -394,13 +394,7 @@ |
Code* ExitFrame::code() const { |
- const int offset = ExitFrameConstants::kCodeOffset; |
- Object* code = Memory::Object_at(fp() + offset); |
- if (code->IsSmi()) { |
- return Heap::c_entry_debug_break_code(); |
- } else { |
- return Code::cast(code); |
- } |
+ return Heap::c_entry_code(); |
} |
@@ -418,6 +412,11 @@ |
} |
+Code* ExitDebugFrame::code() const { |
+ return Heap::c_entry_debug_break_code(); |
+} |
+ |
+ |
Address StandardFrame::GetExpressionAddress(int n) const { |
const int offset = StandardFrameConstants::kExpressionsOffset; |
return fp() + offset - n * kPointerSize; |