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

Unified Diff: src/hydrogen-instructions.cc

Issue 310593004: Revert "Handle HCheckInstanceType and HIsStringAndBranch in check elimination." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | « src/hydrogen-instructions.h ('k') | src/unique.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.cc
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
index e7ef516fbc9f86708b5dd353e1ccda0919536ea8..6303cd13c7a583d13e906651c7cb81e39698c49d 100644
--- a/src/hydrogen-instructions.cc
+++ b/src/hydrogen-instructions.cc
@@ -3256,27 +3256,11 @@ bool HIsObjectAndBranch::KnownSuccessorBlock(HBasicBlock** block) {
bool HIsStringAndBranch::KnownSuccessorBlock(HBasicBlock** block) {
- if (known_successor_index() != kNoKnownSuccessorIndex) {
- *block = SuccessorAt(known_successor_index());
- return true;
- }
if (FLAG_fold_constants && value()->IsConstant()) {
*block = HConstant::cast(value())->HasStringValue()
? FirstSuccessor() : SecondSuccessor();
return true;
}
- if (value()->type().IsString()) {
- *block = FirstSuccessor();
- return true;
- }
- if (value()->type().IsSmi() ||
- value()->type().IsNull() ||
- value()->type().IsBoolean() ||
- value()->type().IsUndefined() ||
- value()->type().IsJSObject()) {
- *block = SecondSuccessor();
- return true;
- }
*block = NULL;
return false;
}
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/unique.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698