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

Unified Diff: src/compiler/typer.cc

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: Convert GetSuperConstructor to a new interpreter bytecode Created 4 years, 1 month 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/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index ff5c3a10ce676a0f9fb32d0bffcadd8f817d5014..c9db5fd99744fddd87ca85541777c341246814df 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1209,6 +1209,10 @@ Type* Typer::Visitor::TypeJSHasProperty(Node* node) { return Type::Boolean(); }
Type* Typer::Visitor::TypeJSInstanceOf(Node* node) { return Type::Boolean(); }
+Type* Typer::Visitor::TypeJSGetSuperConstructor(Node* node) {
+ return Type::Function();
Benedikt Meurer 2016/11/23 04:51:00 This is probably not correct, as this can return a
+}
+
// JS context operators.

Powered by Google App Engine
This is Rietveld 408576698