Properly propagate serialization flag when compiling hydrogen code stubs.

R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/416123002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22637 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2014-07-28 11:47:10 +00:00
parent ac07895213
commit 82078339b3

View File

@ -438,6 +438,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();
LCodeGen generator(this, &assembler, info());
MarkEmptyBlocks();