| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index 344826dc4586dbfc4a72776eb7fe04496884ffac..7c7e690358f68d97c338cc3803c21600d59de5f3 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -765,7 +765,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.
|
| __ lw(a1, FieldMemOperand(cp, HeapObject::kMapOffset));
|
| __ LoadRoot(t0, Heap::kWithContextMapRootIndex);
|
| @@ -2445,7 +2445,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| // mode.
|
| DCHECK((var->IsStackAllocated() || var->IsContextSlot()));
|
| MemOperand location = VarOperand(var, a1);
|
| - 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.
|
| __ lw(a2, location);
|
| __ LoadRoot(t0, Heap::kTheHoleValueRootIndex);
|
|
|