Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index a4fabe2ac1a06fd032d52ad8330a02f3cb99a462..a339d630de98d3355d6e59a567d3571a9058d96e 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -265,11 +265,11 @@ void FullCodeGenerator::Generate(CompilationInfo* info) { |
// For named function expressions, declare the function name as a |
// constant. |
if (scope()->is_function_scope() && scope()->function() != NULL) { |
- int ignored = 0; |
VariableProxy* proxy = scope()->function(); |
ASSERT(proxy->var()->mode() == CONST || |
proxy->var()->mode() == CONST_HARMONY); |
- EmitDeclaration(proxy, proxy->var()->mode(), NULL, &ignored); |
+ ASSERT(proxy->var()->location() != Variable::UNALLOCATED); |
+ EmitDeclaration(proxy, proxy->var()->mode(), NULL); |
} |
VisitDeclarations(scope()->declarations()); |
} |
@@ -706,8 +706,7 @@ void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr, |
void FullCodeGenerator::EmitDeclaration(VariableProxy* proxy, |
VariableMode mode, |
- FunctionLiteral* function, |
- int* global_count) { |
+ FunctionLiteral* function) { |
// If it was not possible to allocate the variable at compile time, we |
// need to "declare" it at runtime to make sure it actually exists in the |
// local context. |
@@ -716,7 +715,7 @@ void FullCodeGenerator::EmitDeclaration(VariableProxy* proxy, |
(mode == CONST || mode == CONST_HARMONY || mode == LET); |
switch (variable->location()) { |
case Variable::UNALLOCATED: |
- ++(*global_count); |
+ ++global_count_; |
break; |
case Variable::PARAMETER: |
@@ -801,9 +800,6 @@ void FullCodeGenerator::EmitDeclaration(VariableProxy* proxy, |
} |
-void FullCodeGenerator::VisitDeclaration(Declaration* decl) { } |
- |
- |
void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
// Call the runtime to declare the globals. |
// The context is the first argument. |