Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index d2c2b96b4610d97818d75979d1c4b341923c6862..2154b6eb4f9477a8413f035942d5e48152242655 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -961,38 +961,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(r1, scope_->ContextChainLength(scope_->ScriptScope())); |
- __ ldr(r1, ContextOperand(r1, descriptor->Index())); |
- __ ldr(r1, ContextOperand(r1, Context::EXTENSION_INDEX)); |
- |
- // Assign it. |
- __ str(r1, ContextOperand(cp, variable->index())); |
- // We know that we have written a module, which is not a smi. |
- __ RecordWriteContextSlot(cp, |
- Context::SlotOffset(variable->index()), |
- r1, |
- r3, |
- kLRHasBeenSaved, |
- kDontSaveFPRegs, |
- EMIT_REMEMBERED_SET, |
- OMIT_SMI_CHECK); |
- PrepareForBailoutForId(declaration->proxy()->id(), NO_REGISTERS); |
- |
- // Traverse into body. |
- Visit(declaration->module()); |
-} |
- |
- |
void FullCodeGenerator::VisitImportDeclaration(ImportDeclaration* declaration) { |
VariableProxy* proxy = declaration->proxy(); |
Variable* variable = proxy->var(); |