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

Unified Diff: src/crankshaft/hydrogen.cc

Issue 2587973002: Revert of [crankshaft] Fix IsClassOfTest helper method (Closed)
Patch Set: Created 4 years 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/ast/prettyprinter.cc ('k') | test/mjsunit/regress/regress-5749.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen.cc
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
index a898c445748b12de21c046178e3377e8411027ab..d17696d351117250eddbe7c84948ea78ca7085bb 100644
--- a/src/crankshaft/hydrogen.cc
+++ b/src/crankshaft/hydrogen.cc
@@ -10924,11 +10924,14 @@
Literal* literal = expr->right()->AsLiteral();
if (literal == NULL) return false;
if (!literal->value()->IsString()) return false;
- if (call->is_jsruntime()) return false;
- if (call->function()->function_id != Runtime::kInlineClassOf) return false;
- DCHECK_EQ(call->arguments()->length(), 1);
+ if (!call->is_jsruntime() &&
+ call->function()->function_id != Runtime::kInlineClassOf) {
+ return false;
+ }
+ DCHECK(call->arguments()->length() == 1);
return true;
}
+
void HOptimizedGraphBuilder::VisitBinaryOperation(BinaryOperation* expr) {
DCHECK(!HasStackOverflow());
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | test/mjsunit/regress/regress-5749.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698