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

Unified Diff: src/prettyprinter.cc

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 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/pattern-rewriter.cc ('k') | src/prologue.js » ('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 bf28cc6378749a94217a0949bd04da43a01fc11b..c5ac881be298805f18baa9bc40f498492b327e2f 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -800,8 +800,7 @@ void PrettyPrinter::VisitCallNew(CallNew* node) {
void PrettyPrinter::VisitCallRuntime(CallRuntime* node) {
- Print("%%");
- PrintLiteral(node->name(), false);
+ Print("%%%s\n", node->debug_name());
PrintArguments(node->arguments());
}
@@ -1533,9 +1532,8 @@ void AstPrinter::VisitCallNew(CallNew* node) {
void AstPrinter::VisitCallRuntime(CallRuntime* node) {
EmbeddedVector<char, 128> buf;
- FormatICSlotNode(&buf, node, "CALL RUNTIME", node->CallRuntimeFeedbackSlot());
IndentedScope indent(this, buf.start());
- PrintLiteralIndented("NAME", node->name(), false);
+ Print("NAME %s\n", node->debug_name());
PrintArguments(node->arguments());
}
« no previous file with comments | « src/pattern-rewriter.cc ('k') | src/prologue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698