From 0a9425e756e59fb39cf0437376792aabd202321f Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Mon, 14 Oct 2013 08:03:35 +0000 Subject: [PATCH] HIsStringAndBranch does an implicit SMI check if necessary. No need to test for SMI first using HIsSmiAndBranch. R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/27160002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17175 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/code-stubs-hydrogen.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc index c6fcac7..c9529a8 100644 --- a/src/code-stubs-hydrogen.cc +++ b/src/code-stubs-hydrogen.cc @@ -885,8 +885,7 @@ HValue* CodeStubGraphBuilder::BuildCodeInitializedStub() { // critical. if (left_type->Maybe(Type::String())) { IfBuilder left_string(this); - left_string.IfNot(left); - left_string.AndIf(left); + left_string.If(left); left_string.Then(); Push(Add(left, right, STRING_ADD_CHECK_RIGHT)); left_string.Else(); @@ -897,8 +896,7 @@ HValue* CodeStubGraphBuilder::BuildCodeInitializedStub() { result = Pop(); } else { IfBuilder right_string(this); - right_string.IfNot(right); - right_string.AndIf(right); + right_string.If(right); right_string.Then(); Push(Add(left, right, STRING_ADD_CHECK_LEFT)); right_string.Else(); -- 2.7.4