Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 27d34b4415353156250c348fbdbf76117c438714..c48317a49542430446740bfef0c05d86d34e1987 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -270,6 +270,8 @@ static Handle<Code> DoGenerateCode(Stub* stub) { |
} |
CodeStubGraphBuilder<Stub> builder(isolate, stub); |
LChunk* chunk = OptimizeGraph(builder.CreateGraph()); |
+ // TODO(yangguo) remove this once the code serializer handles code stubs. |
+ if (FLAG_serialize_toplevel) chunk->info()->PrepareForSerializing(); |
Handle<Code> code = chunk->Codegen(); |
if (FLAG_profile_hydrogen_code_stub_compilation) { |
OFStream os(stdout); |