Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 1bf1a3351e42ba00c27f4277072b9c86e8891d23..1af307b3919a4c9261088c143ab67634195f18dd 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -3019,6 +3019,14 @@ void BytecodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
UNREACHABLE(); |
} |
+void BytecodeGenerator::VisitImportCallExpression(ImportCallExpression* expr) { |
+ RegisterList args = register_allocator()->NewRegisterList(2); |
+ VisitForRegisterValue(expr->argument(), args[1]); |
+ builder() |
+ ->MoveRegister(Register::function_closure(), args[0]) |
+ .CallRuntime(Runtime::kDynamicImportCall, args); |
+} |
+ |
void BytecodeGenerator::VisitGetIterator(GetIterator* expr) { |
FeedbackSlot load_slot = expr->IteratorPropertyFeedbackSlot(); |
FeedbackSlot call_slot = expr->IteratorCallFeedbackSlot(); |