Chromium Code Reviews| Index: src/hydrogen-instructions.cc |
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
| index 206ab7e2accf5e496b6cd814eb1071c511cb21e7..100af0a0d18439d83c43951276ad8d33c52c4ec4 100644 |
| --- a/src/hydrogen-instructions.cc |
| +++ b/src/hydrogen-instructions.cc |
| @@ -1316,6 +1316,20 @@ HValue* HWrapReceiver::Canonicalize() { |
| } |
| +HValue* HTypeofIsAndBranch::Canonicalize() { |
| + if (value()->representation().IsSpecialization()) { |
| + AllowHandleDereference allow_deref; |
|
Jakob Kummerow
2013/11/05 14:42:49
No way!
If you absolutely need this information d
Weiliang
2013/11/07 11:53:30
Done.
|
| + if (type_literal()->Equals(isolate()->heap()->number_string())) { |
| + state_ = kAlwaysTrue; |
| + } else { |
| + state_ = kAlwaysFalse; |
| + } |
| + } |
| + |
| + return this; |
| +} |
| + |
| + |
| void HTypeof::PrintDataTo(StringStream* stream) { |
| value()->PrintNameTo(stream); |
| } |