Reviewers: Michael Starzinger,

Description:
More precise result types for contructor calls

[email protected]
BUG=

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

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

Affected files (+1, -1 lines):
  M src/typing.cc


Index: src/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index b62e909f47269e9364b6c6319e8f2f22410fa250..b9d0ba310aa3c683aa9575444c1e20f13b1bc6af 100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -562,7 +562,7 @@ void AstTyper::VisitCallNew(CallNew* expr) {
     RECURSE(Visit(arg));
   }

-  // We don't know anything about the result type.
+  NarrowType(expr, Bounds(Type::None(zone()), Type::Receiver(zone())));
 }




--
--
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