Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index d6c3428998679d0cab8c23fc9f0b8af358457dbb..36a7eed1f98a92044d7a79795b4e7b2ba12fc4ea 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -345,15 +345,6 @@ void FullCodeGenerator::Generate() { |
} else { |
PrepareForBailoutForId(BailoutId::FunctionEntry(), NO_REGISTERS); |
{ Comment cmnt(masm_, "[ Declarations"); |
- // For named function expressions, declare the function name as a |
- // constant. |
- if (scope()->is_function_scope() && scope()->function() != NULL) { |
- VariableDeclaration* function = scope()->function(); |
- DCHECK(function->proxy()->var()->mode() == CONST || |
- function->proxy()->var()->mode() == CONST_LEGACY); |
- DCHECK(!function->proxy()->var()->IsUnallocatedOrGlobalSlot()); |
- VisitVariableDeclaration(function); |
- } |
VisitDeclarations(scope()->declarations()); |
} |