Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 6060b3616efe778e4742678675f3669894911d10..762726711b55cdb6e29d1db718ad20e537a2b18a 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -347,15 +347,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()); |
} |