From 4bae6589483445bd794aab24a2318cfc4c0ad2a7 Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Tue, 21 Jan 2014 10:35:20 +0000 Subject: [PATCH] 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. R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/143893002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18704 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 63b6da7e8b..3fb867bde3 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -10277,7 +10277,7 @@ void HOptimizedGraphBuilder::GenerateNumberToString(CallRuntime* call) { 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); }