Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 2903c3d370dd825fd2f864f7d9186fed3d6da891..a70518939aaa5bb5af7a4dc8c57896dcb03fee8e 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -245,7 +245,10 @@ bool CodeGenerator::IsMaterializableFromFrame(Handle<HeapObject> object, |
bool CodeGenerator::IsMaterializableFromRoot( |
Handle<HeapObject> object, Heap::RootListIndex* index_return) { |
- if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { |
+ const CallDescriptor* incoming_descriptor = |
+ linkage()->GetIncomingDescriptor(); |
+ if (incoming_descriptor->IsJSFunctionCall() || |
+ incoming_descriptor->IsInterpreterDispatch()) { |
RootIndexMap map(isolate()); |
int root_index = map.Lookup(*object); |
if (root_index != RootIndexMap::kInvalidRootIndex) { |