| Index: src/ia32/full-codegen-ia32.cc
|
| ===================================================================
|
| --- src/ia32/full-codegen-ia32.cc (revision 12237)
|
| +++ src/ia32/full-codegen-ia32.cc (working copy)
|
| @@ -754,7 +754,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.
|
| __ mov(ebx, FieldOperand(esi, HeapObject::kMapOffset));
|
| __ cmp(ebx, isolate()->factory()->with_context_map());
|
| @@ -2091,7 +2091,7 @@
|
| // in harmony mode.
|
| if (var->IsStackAllocated() || var->IsContextSlot()) {
|
| MemOperand location = VarOperand(var, ecx);
|
| - if (FLAG_debug_code && op == Token::INIT_LET) {
|
| + if (generate_debug_code_ && op == Token::INIT_LET) {
|
| // Check for an uninitialized let binding.
|
| __ mov(edx, location);
|
| __ cmp(edx, isolate()->factory()->the_hole_value());
|
| @@ -2640,7 +2640,7 @@
|
| context()->PrepareTest(&materialize_true, &materialize_false,
|
| &if_true, &if_false, &fall_through);
|
|
|
| - if (FLAG_debug_code) __ AbortIfSmi(eax);
|
| + if (generate_debug_code_) __ AbortIfSmi(eax);
|
|
|
| // Check whether this map has already been checked to be safe for default
|
| // valueOf.
|
| @@ -2865,7 +2865,7 @@
|
| __ mov(eax, Operand(ebx, ArgumentsAdaptorFrameConstants::kLengthOffset));
|
|
|
| __ bind(&exit);
|
| - if (FLAG_debug_code) __ AbortIfNotSmi(eax);
|
| + if (generate_debug_code_) __ AbortIfNotSmi(eax);
|
| context()->Plug(eax);
|
| }
|
|
|
| @@ -3485,7 +3485,7 @@
|
|
|
| VisitForAccumulatorValue(args->at(0));
|
|
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| __ AbortIfNotString(eax);
|
| }
|
|
|
| @@ -3510,7 +3510,7 @@
|
| ASSERT(args->length() == 1);
|
| VisitForAccumulatorValue(args->at(0));
|
|
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| __ AbortIfNotString(eax);
|
| }
|
|
|
| @@ -3586,7 +3586,7 @@
|
| // Loop condition: while (index < length).
|
| // Live loop registers: index, array_length, string,
|
| // scratch, string_length, elements.
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| __ cmp(index, array_length);
|
| __ Assert(less, "No empty arrays here in EmitFastAsciiArrayJoin");
|
| }
|
|
|