| Index: src/x64/full-codegen-x64.cc
|
| ===================================================================
|
| --- src/x64/full-codegen-x64.cc (revision 12237)
|
| +++ src/x64/full-codegen-x64.cc (working copy)
|
| @@ -759,7 +759,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.
|
| __ movq(rbx, FieldOperand(rsi, HeapObject::kMapOffset));
|
| __ CompareRoot(rbx, Heap::kWithContextMapRootIndex);
|
| @@ -2072,7 +2072,7 @@
|
| // in harmony mode.
|
| if (var->IsStackAllocated() || var->IsContextSlot()) {
|
| MemOperand location = VarOperand(var, rcx);
|
| - if (FLAG_debug_code && op == Token::INIT_LET) {
|
| + if (generate_debug_code_ && op == Token::INIT_LET) {
|
| // Check for an uninitialized let binding.
|
| __ movq(rdx, location);
|
| __ CompareRoot(rdx, Heap::kTheHoleValueRootIndex);
|
| @@ -2612,7 +2612,7 @@
|
| context()->PrepareTest(&materialize_true, &materialize_false,
|
| &if_true, &if_false, &fall_through);
|
|
|
| - if (FLAG_debug_code) __ AbortIfSmi(rax);
|
| + if (generate_debug_code_) __ AbortIfSmi(rax);
|
|
|
| // Check whether this map has already been checked to be safe for default
|
| // valueOf.
|
| @@ -2836,7 +2836,7 @@
|
| __ movq(rax, Operand(rbx, ArgumentsAdaptorFrameConstants::kLengthOffset));
|
|
|
| __ bind(&exit);
|
| - if (FLAG_debug_code) __ AbortIfNotSmi(rax);
|
| + if (generate_debug_code_) __ AbortIfNotSmi(rax);
|
| context()->Plug(rax);
|
| }
|
|
|
| @@ -3480,7 +3480,7 @@
|
| ASSERT(args->length() == 1);
|
| VisitForAccumulatorValue(args->at(0));
|
|
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| __ AbortIfNotString(rax);
|
| }
|
|
|
| @@ -3560,7 +3560,7 @@
|
| // Loop condition: while (index < array_length).
|
| // Live loop registers: index(int32), array_length(int32), string(String*),
|
| // scratch, string_length(int32), elements(FixedArray*).
|
| - if (FLAG_debug_code) {
|
| + if (generate_debug_code_) {
|
| __ cmpq(index, array_length);
|
| __ Assert(below, "No empty arrays here in EmitFastAsciiArrayJoin");
|
| }
|
|
|