Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 6652df27cf313e949cee3a4d8687308600002aaf..10364eb1b5ff5f65f98c178430d672c30e8a3376 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -299,7 +299,8 @@ static void InitCoverageLog(); |
byte* Assembler::spare_buffer_ = NULL; |
Assembler::Assembler(void* buffer, int buffer_size) |
- : positions_recorder_(this) { |
+ : positions_recorder_(this), |
+ emit_debug_code_(FLAG_debug_code) { |
if (buffer == NULL) { |
// Do our own buffer management. |
if (buffer_size <= kMinimalBufferSize) { |
@@ -2761,7 +2762,7 @@ void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { |
Serializer::TooLateToEnableNow(); |
} |
#endif |
- if (!Serializer::enabled() && !FLAG_debug_code) { |
+ if (!Serializer::enabled() && !emit_debug_code()) { |
return; |
} |
} |