Index: vm/unit_test.cc |
=================================================================== |
--- vm/unit_test.cc (revision 6302) |
+++ vm/unit_test.cc (working copy) |
@@ -9,6 +9,7 @@ |
#include "vm/assembler.h" |
#include "vm/ast_printer.h" |
#include "vm/code_generator.h" |
+#include "vm/code_index_table.h" |
#include "vm/compiler.h" |
#include "vm/dart_api_impl.h" |
#include "vm/disassembler.h" |
@@ -173,6 +174,9 @@ |
OS::Print("}\n"); |
} |
function_.SetCode(code); |
+ CodeIndexTable* code_index_table = isolate->code_index_table(); |
+ ASSERT(code_index_table != NULL); |
+ code_index_table->AddCode(code); |
retval = true; |
} else { |
retval = false; |