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

Unified Diff: src/preparser.h

Issue 159653005: Not for committing. Proof that NaCl stuff is insane. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: moar Created 6 years, 10 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/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index b3f67c9a698a17920f67fd0c0d216ef28ac0bc22..27c988821bb9d3eaf62d9004e3d226505832664a 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -193,13 +193,21 @@ class ParserBase : public Traits {
}
// Report syntax errors.
+ // WTF: changing the signature like this makes it pass
+ //void ReportMessage(const char* message, const Vector<const char*>& args) {
void ReportMessage(const char* message, Vector<const char*> args) {
+ fprintf(stderr, "ParserBase::ReportMessage %s, args len %d\n", message, args.length());
+ // WTF: adding this line makes it pass
+ // fprintf(stderr, "args is at %p\n", reinterpret_cast<void*>(&args));
Scanner::Location source_location = scanner()->location();
Traits::ReportMessageAt(source_location, message, args);
+ fprintf(stderr, "ParserBase::ReportMessage returns\n");
}
void ReportMessageAt(Scanner::Location location, const char* message) {
+ fprintf(stderr, "ParserBase::ReportMessageAt\n");
Traits::ReportMessageAt(location, message, Vector<const char*>::empty());
+ fprintf(stderr, "ParserBase::ReportMessageAt returns\n");
}
void ReportUnexpectedToken(Token::Value token);
« no previous file with comments | « src/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698