Index: vm/code_generator.cc |
=================================================================== |
--- vm/code_generator.cc (revision 6302) |
+++ vm/code_generator.cc (working copy) |
@@ -4,6 +4,7 @@ |
#include "vm/code_generator.h" |
+#include "vm/code_index_table.h" |
#include "vm/code_patcher.h" |
#include "vm/compiler.h" |
#include "vm/dart_api_impl.h" |
@@ -1286,7 +1287,9 @@ |
DartFrameIterator iterator; |
DartFrame* caller_frame = iterator.NextFrame(); |
ASSERT(caller_frame != NULL); |
- const Code& optimized_code = Code::Handle(caller_frame->LookupDartCode()); |
+ CodeIndexTable* ci_table = isolate->code_index_table(); |
+ const Code& optimized_code = |
+ Code::Handle(ci_table->LookupCode(caller_frame->pc())); |
const Function& function = Function::Handle(optimized_code.function()); |
ASSERT(!function.IsNull()); |
const Code& unoptimized_code = Code::Handle(function.unoptimized_code()); |