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

Unified Diff: src/preparser.h

Issue 624013005: Classes: Add support for toString (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add type checks Created 6 years, 2 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/runtime/runtime.h » ('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 1def94f9296c728f83dad87a82ef795e2512aaba..ba58c10b9194bd5438f39954fae9d2aaff184cdc 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -1102,7 +1102,7 @@ class PreParserFactory {
PreParserExpression extends,
PreParserExpression constructor,
PreParserExpressionList properties,
- int position) {
+ int start_position, int end_position) {
return PreParserExpression::Default();
}
@@ -1334,12 +1334,10 @@ class PreParserTraits {
return PreParserExpression::Super();
}
- static PreParserExpression ClassExpression(PreParserIdentifier name,
- PreParserExpression extends,
- PreParserExpression constructor,
- PreParserExpressionList properties,
- int position,
- PreParserFactory* factory) {
+ static PreParserExpression ClassExpression(
+ PreParserIdentifier name, PreParserExpression extends,
+ PreParserExpression constructor, PreParserExpressionList properties,
+ int start_position, int end_position, PreParserFactory* factory) {
return PreParserExpression::Default();
}
@@ -2805,10 +2803,12 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParseClassLiteral(
fni_->Leave();
}
}
+
+ int end_pos = peek_position();
Expect(Token::RBRACE, CHECK_OK);
return this->ClassExpression(name, extends, constructor, properties, pos,
- factory());
+ end_pos + 1, factory());
}
« no previous file with comments | « src/parser.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698