Chromium Code Reviews

Unified Diff: src/prettyprinter.cc

Issue 1467473002: Install ConstructNonConstructable as construct stub for non-constructables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/preparser.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/prettyprinter.cc
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
index f50d5904d0a50ce0ed49c4de9c7121f8d03b7e0d..be241162dd73f99a15b5598ef1d3627b1f7fd9e7 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -321,6 +321,13 @@ void CallPrinter::VisitCallNew(CallNew* node) {
void CallPrinter::VisitCallRuntime(CallRuntime* node) {
+ if (node->function() ==
+ Runtime::FunctionForId(Runtime::kInlineDefaultConstructorCallSuper)) {
+ found_ = true;
+ Print("super");
+ done_ = true;
+ return;
+ }
FindArguments(node->arguments());
}
@@ -380,7 +387,9 @@ void CallPrinter::VisitThisFunction(ThisFunction* node) {}
void CallPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {}
-void CallPrinter::VisitSuperCallReference(SuperCallReference* node) {}
+void CallPrinter::VisitSuperCallReference(SuperCallReference* node) {
+ Print("super");
+}
void CallPrinter::FindStatements(ZoneList<Statement*>* statements) {
« no previous file with comments | « src/preparser.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine