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

Side by Side Diff: src/prettyprinter.cc

Issue 1049703002: Make compilers agree on source position of thrown errors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix another regression. Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/full-codegen.cc ('k') | test/cctest/test-api.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 <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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698