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

Side by Side Diff: src/ast/prettyprinter.cc

Issue 1517243002: [es6] Remove the %DefaultConstructorCallSuper intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@GetSuperConstructor
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/linkage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/ast/prettyprinter.h" 5 #include "src/ast/prettyprinter.h"
6 6
7 #include <stdarg.h> 7 #include <stdarg.h>
8 8
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 341 }
342 found_ = true; 342 found_ = true;
343 } 343 }
344 Find(node->expression(), was_found); 344 Find(node->expression(), was_found);
345 FindArguments(node->arguments()); 345 FindArguments(node->arguments());
346 if (was_found) done_ = true; 346 if (was_found) done_ = true;
347 } 347 }
348 348
349 349
350 void CallPrinter::VisitCallRuntime(CallRuntime* node) { 350 void CallPrinter::VisitCallRuntime(CallRuntime* node) {
351 if (!node->is_jsruntime() &&
352 node->function() ==
353 Runtime::FunctionForId(Runtime::kInlineDefaultConstructorCallSuper)) {
354 found_ = true;
355 Print("super");
356 done_ = true;
357 return;
358 }
359 FindArguments(node->arguments()); 351 FindArguments(node->arguments());
360 } 352 }
361 353
362 354
363 void CallPrinter::VisitUnaryOperation(UnaryOperation* node) { 355 void CallPrinter::VisitUnaryOperation(UnaryOperation* node) {
364 Token::Value op = node->op(); 356 Token::Value op = node->op();
365 bool needsSpace = 357 bool needsSpace =
366 op == Token::DELETE || op == Token::TYPEOF || op == Token::VOID; 358 op == Token::DELETE || op == Token::TYPEOF || op == Token::VOID;
367 Print("(%s%s", Token::String(op), needsSpace ? " " : ""); 359 Print("(%s%s", Token::String(op), needsSpace ? " " : "");
368 Find(node->expression(), true); 360 Find(node->expression(), true);
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 void AstPrinter::VisitRewritableAssignmentExpression( 1689 void AstPrinter::VisitRewritableAssignmentExpression(
1698 RewritableAssignmentExpression* node) { 1690 RewritableAssignmentExpression* node) {
1699 Visit(node->expression()); 1691 Visit(node->expression());
1700 } 1692 }
1701 1693
1702 1694
1703 #endif // DEBUG 1695 #endif // DEBUG
1704 1696
1705 } // namespace internal 1697 } // namespace internal
1706 } // namespace v8 1698 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698