| 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 <stdarg.h> | 5 #include <stdarg.h> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.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 bool was_found = !found_ && node->position() == position_; | 318 bool was_found = !found_ && node->position() == position_; |
| 319 if (was_found) found_ = true; | 319 if (was_found) found_ = true; |
| 320 Find(node->expression(), true); | 320 Find(node->expression(), true); |
| 321 if (!was_found) Print("(...)"); | 321 if (!was_found) Print("(...)"); |
| 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::VisitCallNew(CallNew* node) { | 327 void CallPrinter::VisitCallNew(CallNew* node) { |
| 328 bool was_found = !found_ && node->expression()->position() == position_; | 328 bool was_found = !found_ && node->position() == position_; |
| 329 if (was_found) found_ = true; | 329 if (was_found) found_ = true; |
| 330 Find(node->expression(), was_found); | 330 Find(node->expression(), was_found); |
| 331 FindArguments(node->arguments()); | 331 FindArguments(node->arguments()); |
| 332 if (was_found) done_ = true; | 332 if (was_found) done_ = true; |
| 333 } | 333 } |
| 334 | 334 |
| 335 | 335 |
| 336 void CallPrinter::VisitCallRuntime(CallRuntime* node) { | 336 void CallPrinter::VisitCallRuntime(CallRuntime* node) { |
| 337 FindArguments(node->arguments()); | 337 FindArguments(node->arguments()); |
| 338 } | 338 } |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1598 } | 1598 } |
| 1599 | 1599 |
| 1600 | 1600 |
| 1601 void AstPrinter::VisitSuperReference(SuperReference* node) { | 1601 void AstPrinter::VisitSuperReference(SuperReference* node) { |
| 1602 IndentedScope indent(this, "SUPER-REFERENCE"); | 1602 IndentedScope indent(this, "SUPER-REFERENCE"); |
| 1603 } | 1603 } |
| 1604 | 1604 |
| 1605 #endif // DEBUG | 1605 #endif // DEBUG |
| 1606 | 1606 |
| 1607 } } // namespace v8::internal | 1607 } } // namespace v8::internal |
| OLD | NEW |