From: bmeurer@chromium.org Date: Thu, 1 Aug 2013 08:27:46 +0000 (+0000) Subject: Fix broken HCheckInstanceType::Canonicalize(). X-Git-Tag: upstream/4.7.83~13100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f8d1624718d4cfc363fb8dd125e3949e2d1174b;p=platform%2Fupstream%2Fv8.git Fix broken HCheckInstanceType::Canonicalize(). R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/21488002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15999 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc index f65f8570f..5f08f67d6 100644 --- a/src/hydrogen-instructions.cc +++ b/src/hydrogen-instructions.cc @@ -1633,11 +1633,13 @@ HValue* HUnaryMathOperation::Canonicalize() { HValue* HCheckInstanceType::Canonicalize() { if (check_ == IS_STRING && value()->type().IsString()) { - return NULL; + return value(); } if (check_ == IS_INTERNALIZED_STRING && value()->IsConstant()) { - if (HConstant::cast(value())->HasInternalizedStringValue()) return NULL; + if (HConstant::cast(value())->HasInternalizedStringValue()) { + return value(); + } } return this; }