OLD | NEW |
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/prettyprinter.h" | 5 #include "src/prettyprinter.h" |
6 | 6 |
7 #include <stdarg.h> | 7 #include <stdarg.h> |
8 | 8 |
9 #include "src/ast-value-factory.h" | 9 #include "src/ast-value-factory.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 void CallPrinter::VisitCallNew(CallNew* node) { | 318 void CallPrinter::VisitCallNew(CallNew* node) { |
319 bool was_found = !found_ && node->position() == position_; | 319 bool was_found = !found_ && node->position() == position_; |
320 if (was_found) found_ = true; | 320 if (was_found) found_ = true; |
321 Find(node->expression(), was_found); | 321 Find(node->expression(), was_found); |
322 FindArguments(node->arguments()); | 322 FindArguments(node->arguments()); |
323 if (was_found) done_ = true; | 323 if (was_found) done_ = true; |
324 } | 324 } |
325 | 325 |
326 | 326 |
327 void CallPrinter::VisitCallRuntime(CallRuntime* node) { | 327 void CallPrinter::VisitCallRuntime(CallRuntime* node) { |
328 if (node->function() == | 328 if (!node->is_jsruntime() && |
329 Runtime::FunctionForId(Runtime::kInlineDefaultConstructorCallSuper)) { | 329 node->function() == |
| 330 Runtime::FunctionForId(Runtime::kInlineDefaultConstructorCallSuper)) { |
330 found_ = true; | 331 found_ = true; |
331 Print("super"); | 332 Print("super"); |
332 done_ = true; | 333 done_ = true; |
333 return; | 334 return; |
334 } | 335 } |
335 FindArguments(node->arguments()); | 336 FindArguments(node->arguments()); |
336 } | 337 } |
337 | 338 |
338 | 339 |
339 void CallPrinter::VisitUnaryOperation(UnaryOperation* node) { | 340 void CallPrinter::VisitUnaryOperation(UnaryOperation* node) { |
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 | 1656 |
1656 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { | 1657 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { |
1657 IndentedScope indent(this, "SUPER-CALL-REFERENCE", node->position()); | 1658 IndentedScope indent(this, "SUPER-CALL-REFERENCE", node->position()); |
1658 } | 1659 } |
1659 | 1660 |
1660 | 1661 |
1661 #endif // DEBUG | 1662 #endif // DEBUG |
1662 | 1663 |
1663 } // namespace internal | 1664 } // namespace internal |
1664 } // namespace v8 | 1665 } // namespace v8 |
OLD | NEW |