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

Unified Diff: runtime/vm/disassembler_ia32.cc

Issue 9475031: Cleaned up usage of Function::code, since it may be misunderstood that it points to the only Code o… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/native_entry_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/disassembler_ia32.cc
===================================================================
--- runtime/vm/disassembler_ia32.cc (revision 4655)
+++ runtime/vm/disassembler_ia32.cc (working copy)
@@ -429,10 +429,10 @@
CodeIndexTable* code_index_table = Isolate::Current()->code_index_table();
if (code_index_table != NULL) {
// Print only if jumping to entry point.
- const Function& function = Function::Handle(
- code_index_table->LookupFunction(addr));
- if (!function.IsNull() &&
- (Code::Handle(function.code()).EntryPoint() == addr)) {
+ 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);
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/native_entry_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698