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

Unified Diff: src/compiler/verifier.cc

Issue 2647833004: [turbofan] Properly implement %_ClassOf intrinsic. (Closed)
Patch Set: Created 3 years, 11 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/compiler/types.h ('k') | src/interpreter/interpreter-intrinsics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/verifier.cc
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
index 432b702c34c34ae4dfde128ff0d16390a05c6094..88d363c61d70017c050460a280f56bc1d4bd7558 100644
--- a/src/compiler/verifier.cc
+++ b/src/compiler/verifier.cc
@@ -636,9 +636,13 @@ void Verifier::Visitor::Check(Node* node) {
// Type is Boolean.
CheckTypeIs(node, Type::Boolean());
break;
+ case IrOpcode::kJSClassOf:
+ // Type is InternaliedString \/ Null.
+ CheckTypeIs(node, Type::InternalizedStringOrNull());
+ break;
case IrOpcode::kJSTypeOf:
- // Type is String.
- CheckTypeIs(node, Type::String());
+ // Type is InternalizedString.
+ CheckTypeIs(node, Type::InternalizedString());
break;
case IrOpcode::kJSGetSuperConstructor:
// We don't check the input for Type::Function because
« no previous file with comments | « src/compiler/types.h ('k') | src/interpreter/interpreter-intrinsics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698