Revision: 15999
Author: [email protected]
Date: Thu Aug 1 01:27:46 2013
Log: Fix broken HCheckInstanceType::Canonicalize().
[email protected]
Review URL: https://codereview.chromium.org/21488002
http://code.google.com/p/v8/source/detail?r=15999
Modified:
/branches/bleeding_edge/src/hydrogen-instructions.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.cc Thu Aug 1
00:56:36 2013
+++ /branches/bleeding_edge/src/hydrogen-instructions.cc Thu Aug 1
01:27:46 2013
@@ -1633,11 +1633,13 @@
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;
}
--
--
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.