| Index: src/full-codegen/ppc/full-codegen-ppc.cc
|
| diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| index 32ddafb12d3b0c29723697f98138f97f08fa37f8..253f7647f4fa0de7997e2c4d31b4108dac94b253 100644
|
| --- a/src/full-codegen/ppc/full-codegen-ppc.cc
|
| +++ b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| @@ -736,7 +736,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.
|
| __ LoadP(r4, FieldMemOperand(cp, HeapObject::kMapOffset));
|
| __ CompareRoot(r4, Heap::kWithContextMapRootIndex);
|
| @@ -2456,7 +2456,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| // mode.
|
| DCHECK((var->IsStackAllocated() || var->IsContextSlot()));
|
| MemOperand location = VarOperand(var, r4);
|
| - 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.
|
| __ LoadP(r5, location);
|
| __ CompareRoot(r5, Heap::kTheHoleValueRootIndex);
|
|
|