Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 80013e4b8ebef4dc30e9c3814b2562fc86d9a190..d1ee80e54a56a7e838387a7674c5cef3fc141681 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -958,38 +958,6 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
} |
-void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { |
- Variable* variable = declaration->proxy()->var(); |
- ModuleDescriptor* descriptor = declaration->module()->descriptor(); |
- DCHECK(variable->location() == Variable::CONTEXT); |
- DCHECK(descriptor->IsFrozen()); |
- |
- Comment cmnt(masm_, "[ ModuleDeclaration"); |
- EmitDebugCheckDeclarationContext(variable); |
- |
- // Load instance object. |
- __ LoadContext(x1, scope_->ContextChainLength(scope_->ScriptScope())); |
- __ Ldr(x1, ContextMemOperand(x1, descriptor->Index())); |
- __ Ldr(x1, ContextMemOperand(x1, Context::EXTENSION_INDEX)); |
- |
- // Assign it. |
- __ Str(x1, ContextMemOperand(cp, variable->index())); |
- // We know that we have written a module, which is not a smi. |
- __ RecordWriteContextSlot(cp, |
- Context::SlotOffset(variable->index()), |
- x1, |
- x3, |
- kLRHasBeenSaved, |
- kDontSaveFPRegs, |
- EMIT_REMEMBERED_SET, |
- OMIT_SMI_CHECK); |
- PrepareForBailoutForId(declaration->proxy()->id(), NO_REGISTERS); |
- |
- // Traverse info body. |
- Visit(declaration->module()); |
-} |
- |
- |
void FullCodeGenerator::VisitImportDeclaration(ImportDeclaration* declaration) { |
VariableProxy* proxy = declaration->proxy(); |
Variable* variable = proxy->var(); |