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