Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 42b2b18ad10db4fe5fe286a027837855a76b4464..ad6e20cc5a73c8f6958a3e2b492c7fcdf910211f 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -16,6 +16,7 @@ |
#include "src/log.h" |
#include "src/objects.h" |
#include "src/setup-isolate.h" |
+#include "src/visitors.h" |
namespace v8 { |
namespace internal { |
@@ -109,14 +110,14 @@ size_t Interpreter::GetDispatchTableIndex(Bytecode bytecode, |
return 0; |
} |
-void Interpreter::IterateDispatchTable(ObjectVisitor* v) { |
+void Interpreter::IterateDispatchTable(RootVisitor* v) { |
for (int i = 0; i < kDispatchTableSize; i++) { |
Address code_entry = dispatch_table_[i]; |
Object* code = code_entry == nullptr |
? nullptr |
: Code::GetCodeFromTargetAddress(code_entry); |
Object* old_code = code; |
- v->VisitPointer(&code); |
+ v->VisitRootPointer(Root::kDispatchTable, &code); |
if (code != old_code) { |
dispatch_table_[i] = reinterpret_cast<Code*>(code)->entry(); |
} |