Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 50752cf06bd88c62f93d254ab01fcaf90f38a01e..94da774891d40872bfa5302e32a52e760bf41823 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -921,37 +921,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(rax, scope_->ContextChainLength(scope_->ScriptScope())); |
- __ movp(rax, ContextOperand(rax, descriptor->Index())); |
- __ movp(rax, ContextOperand(rax, Context::EXTENSION_INDEX)); |
- |
- // Assign it. |
- __ movp(ContextOperand(rsi, variable->index()), rax); |
- // We know that we have written a module, which is not a smi. |
- __ RecordWriteContextSlot(rsi, |
- Context::SlotOffset(variable->index()), |
- rax, |
- rcx, |
- 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(); |