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

Unified Diff: src/compiler/verifier.cc

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: Fix IsNull call 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
Index: src/compiler/verifier.cc
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
index 03fc62640dc01531d9aef423e0fc8d8533b5d592..ef87fbb5f86fa2af730e0269b6e6e86dac7496a1 100644
--- a/src/compiler/verifier.cc
+++ b/src/compiler/verifier.cc
@@ -635,6 +635,11 @@ void Verifier::Visitor::Check(Node* node) {
// Type is String.
CheckTypeIs(node, Type::String());
break;
+ case IrOpcode::kJSGetSuperConstructor:
+ // Function -> Callable.
+ CheckValueInputIs(node, 0, Type::Function());
+ CheckTypeIs(node, Type::Callable());
+ break;
case IrOpcode::kJSLoadContext:
// Type can be anything.
« no previous file with comments | « src/compiler/typer.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | src/messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698