Reviewers: mvstanton,

Description:
Properly propagate serialization flag when compiling hydrogen code stubs.

[email protected]

Please review this at https://codereview.chromium.org/416123002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+2, -0 lines):
  M src/lithium.cc


Index: src/lithium.cc
diff --git a/src/lithium.cc b/src/lithium.cc
index 47d68dab354488c48cde1a8e0fe777a3f4e40d9e..61b7e6702c4dd5fb930e02e7e4cdde338bea94d7 100644
--- a/src/lithium.cc
+++ b/src/lithium.cc
@@ -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();


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to