Revision: 18704
Author:   [email protected]
Date:     Tue Jan 21 10:35:20 2014 UTC
Log:      Fix invalid type assumption in GenerateNumberToString().

We don't have any type feedback in %_NumberToString(), so it's
a bug to assume Type::Number here.

[email protected]

Review URL: https://codereview.chromium.org/143893002
http://code.google.com/p/v8/source/detail?r=18704

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Mon Jan 20 09:48:05 2014 UTC
+++ /branches/bleeding_edge/src/hydrogen.cc     Tue Jan 21 10:35:20 2014 UTC
@@ -10277,7 +10277,7 @@
   ASSERT_EQ(1, call->arguments()->length());
   CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
   HValue* number = Pop();
-  HValue* result = BuildNumberToString(number, Type::Number(isolate()));
+  HValue* result = BuildNumberToString(number, Type::Any(isolate()));
   return ast_context()->ReturnValue(result);
 }

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