Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index b830fb8fe0872a553a18c3d5cef29a1286a73b08..302db0ed8dc16ef07f8e5d1f432491e77ebc6ce8 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -772,7 +772,7 @@ void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) { |
// The variable in the declaration always resides in the current function |
// context. |
DCHECK_EQ(0, scope()->ContextChainLength(variable->scope())); |
- if (generate_debug_code_) { |
+ if (FLAG_debug_code) { |
// Check that we're not inside a with or catch context. |
__ ldr(r1, FieldMemOperand(cp, HeapObject::kMapOffset)); |
__ CompareRoot(r1, Heap::kWithContextMapRootIndex); |
@@ -2458,7 +2458,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op, |
// mode. |
DCHECK((var->IsStackAllocated() || var->IsContextSlot())); |
MemOperand location = VarOperand(var, r1); |
- if (generate_debug_code_ && var->mode() == LET && op == Token::INIT) { |
+ if (FLAG_debug_code && var->mode() == LET && op == Token::INIT) { |
// Check for an uninitialized let binding. |
__ ldr(r2, location); |
__ CompareRoot(r2, Heap::kTheHoleValueRootIndex); |