Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Unified Diff: src/hydrogen.cc

Issue 423083004: Fix handling of potential string additions in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-3476.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index fe8e134d97308dd6aac417806e9317725b48cde9..e85e16a6386b28f93ff661421cd8786ed8eb2608 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -10240,7 +10240,9 @@ HValue* HGraphBuilder::BuildBinaryOperation(
bool maybe_string_add = op == Token::ADD &&
(left_type->Maybe(Type::String()) ||
- right_type->Maybe(Type::String()));
+ left_type->Maybe(Type::Receiver()) ||
+ right_type->Maybe(Type::String()) ||
+ right_type->Maybe(Type::Receiver()));
if (left_type->Is(Type::None())) {
Add<HDeoptimize>("Insufficient type feedback for LHS of binary operation",
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-3476.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698