Index: src/lithium.cc |
diff --git a/src/lithium.cc b/src/lithium.cc |
index 7d992a1eb88fdf9a82b5ea0bcf2f13229c36d6db..d57a2dd4acd9f89f27c4b3241a4f519f021173d1 100644 |
--- a/src/lithium.cc |
+++ b/src/lithium.cc |
@@ -463,8 +463,8 @@ Handle<Code> LChunk::Codegen() { |
LOG_CODE_EVENT(info()->isolate(), |
CodeStartLinePosInfoRecordEvent( |
assembler.positions_recorder())); |
- // TODO(yangguo) remove this once the code serializer handles code stubs. |
- if (info()->will_serialize()) assembler.enable_serializer(); |
+ // Code serializer only takes unoptimized code. |
+ DCHECK(!info()->will_serialize()); |
LCodeGen generator(this, &assembler, info()); |
MarkEmptyBlocks(); |