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

Unified Diff: src/prettyprinter.cc

Issue 1480853002: Check for jsruntime before comparing with default super runtime function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | 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 b659b2c8361c6187820d9c3becff75597816a030..bcb8cb3ddeb805cc11da9cdfccbf550b328cdb55 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -325,8 +325,9 @@ void CallPrinter::VisitCallNew(CallNew* node) {
void CallPrinter::VisitCallRuntime(CallRuntime* node) {
- if (node->function() ==
- Runtime::FunctionForId(Runtime::kInlineDefaultConstructorCallSuper)) {
+ if (!node->is_jsruntime() &&
+ node->function() ==
+ Runtime::FunctionForId(Runtime::kInlineDefaultConstructorCallSuper)) {
found_ = true;
Print("super");
done_ = true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698