| Index: src/full-codegen/x87/full-codegen-x87.cc
|
| diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc
|
| index 0e0db313d945dcb79384b89b94288992e7248a2b..0fb0a8fb2d21d9076cacd9e66e6d56b20524fc66 100644
|
| --- a/src/full-codegen/x87/full-codegen-x87.cc
|
| +++ b/src/full-codegen/x87/full-codegen-x87.cc
|
| @@ -713,7 +713,7 @@ void FullCodeGenerator::PrepareForBailoutBeforeSplit(Expression* expr,
|
| void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) {
|
| // The variable in the declaration always resides in the current 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.
|
| __ mov(ebx, FieldOperand(esi, HeapObject::kMapOffset));
|
| __ cmp(ebx, isolate()->factory()->with_context_map());
|
| @@ -2346,7 +2346,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op,
|
| // mode.
|
| DCHECK(var->IsStackAllocated() || var->IsContextSlot());
|
| MemOperand location = VarOperand(var, ecx);
|
| - 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.
|
| __ mov(edx, location);
|
| __ cmp(edx, isolate()->factory()->the_hole_value());
|
|
|