| Index: src/mips/full-codegen-mips.cc
|
| ===================================================================
|
| --- src/mips/full-codegen-mips.cc (revision 12237)
|
| +++ src/mips/full-codegen-mips.cc (working copy)
|
| @@ -791,7 +791,7 @@
|
| // The variable in the declaration always resides in the current function
|
| // context.
|
| ASSERT_EQ(0, scope()->ContextChainLength(variable->scope()));
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| // Check that we're not inside a with or catch context.
|
| __ lw(a1, FieldMemOperand(cp, HeapObject::kMapOffset));
|
| __ LoadRoot(t0, Heap::kWithContextMapRootIndex);
|
| @@ -2164,7 +2164,7 @@
|
| // in harmony mode.
|
| if (var->IsStackAllocated() || var->IsContextSlot()) {
|
| MemOperand location = VarOperand(var, a1);
|
| - if (FLAG_debug_code && op == Token::INIT_LET) {
|
| + if (generate_debug_code_ && op == Token::INIT_LET) {
|
| // Check for an uninitialized let binding.
|
| __ lw(a2, location);
|
| __ LoadRoot(t0, Heap::kTheHoleValueRootIndex);
|
| @@ -2734,7 +2734,7 @@
|
| context()->PrepareTest(&materialize_true, &materialize_false,
|
| &if_true, &if_false, &fall_through);
|
|
|
| - if (FLAG_debug_code) __ AbortIfSmi(v0);
|
| + if (generate_debug_code_) __ AbortIfSmi(v0);
|
|
|
| __ lw(a1, FieldMemOperand(v0, HeapObject::kMapOffset));
|
| __ lbu(t0, FieldMemOperand(a1, Map::kBitField2Offset));
|
| @@ -3609,7 +3609,7 @@
|
| ASSERT(args->length() == 1);
|
| VisitForAccumulatorValue(args->at(0));
|
|
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| __ AbortIfNotString(v0);
|
| }
|
|
|
| @@ -3685,7 +3685,7 @@
|
| // string_length: Accumulated sum of string lengths (smi).
|
| // element: Current array element.
|
| // elements_end: Array end.
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| __ Assert(gt, "No empty arrays here in EmitFastAsciiArrayJoin",
|
| array_length, Operand(zero_reg));
|
| }
|
|
|