Skip to content

Instantly share code, notes, and snippets.

@arturovt
Created November 15, 2018 22:48
Show Gist options
  • Save arturovt/94a5e70f9dba42d77514cdf8dca490a6 to your computer and use it in GitHub Desktop.
Save arturovt/94a5e70f9dba42d77514cdf8dca490a6 to your computer and use it in GitHub Desktop.
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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment