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

Unified Diff: vm/disassembler_ia32.cc

Issue 9791048: - Wire the stack frame iterator to use stack maps for traversing objects if there are stack maps in… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/debugger.cc ('k') | vm/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/disassembler_ia32.cc
===================================================================
--- vm/disassembler_ia32.cc (revision 6294)
+++ vm/disassembler_ia32.cc (working copy)
@@ -11,6 +11,7 @@
#include "vm/code_index_table.h"
#include "vm/heap.h"
#include "vm/os.h"
+#include "vm/stack_frame.h"
#include "vm/stub_code.h"
namespace dart {
@@ -426,18 +427,15 @@
Print(name_of_stub);
Print("]");
} else {
- CodeIndexTable* code_index_table = Isolate::Current()->code_index_table();
- if (code_index_table != NULL) {
- // Print only if jumping to entry point.
- const Code& code = Code::Handle(
- code_index_table->LookupCode(addr));
- if (!code.IsNull() && (code.EntryPoint() == addr)) {
- const Function& function = Function::Handle(code.function());
- const char* name_of_function = function.ToFullyQualifiedCString();
- Print(" [");
- Print(name_of_function);
- Print("]");
- }
+ // Print only if jumping to entry point.
+ const Code& code = Code::Handle(
+ StackFrame::LookupCode(Isolate::Current(), addr));
+ if (!code.IsNull() && (code.EntryPoint() == addr)) {
+ const Function& function = Function::Handle(code.function());
+ const char* name_of_function = function.ToFullyQualifiedCString();
+ Print(" [");
+ Print(name_of_function);
+ Print("]");
}
}
}
« no previous file with comments | « vm/debugger.cc ('k') | vm/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698