Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 103ca139f523a7f2becd3a066ab570b157f19fd8..5e823479c0dd8d859b2546d285031e86c9dd4416 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -124,7 +124,8 @@ AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) |
enabled_cpu_features_(0), |
emit_debug_code_(FLAG_debug_code), |
predictable_code_size_(false), |
- serializer_enabled_(Serializer::enabled(isolate)) { |
+ // We may use the assembler without an isolate. |
+ serializer_enabled_(isolate && isolate->serializer_enabled()) { |
if (FLAG_mask_constants_with_cookie && isolate != NULL) { |
jit_cookie_ = isolate->random_number_generator()->NextInt(); |
} |