Reviewers: mvstanton,

Message:
PTAL

Description:
Don't use fast literal if the boilerplate map is still deprecated.

Please review this at https://chromiumcodereview.appspot.com/15660005/

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

Affected files:
  M src/hydrogen.cc


Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 6bb9fe218bc2bbc7be2aa2e9156c01b44e58d8e5..906e8978e2a7e766aba8f69403c8e8664754c7fe 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -6692,6 +6692,8 @@ static bool IsFastLiteral(Handle<JSObject> boilerplate,
                           int* max_properties,
                           int* data_size,
                           int* pointer_size) {
+  if (boilerplate->map()->is_deprecated()) return false;
+
   ASSERT(max_depth >= 0 && *max_properties >= 0);
   if (max_depth == 0) return false;



--
--
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/groups/opt_out.


Reply via email to