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

Side by Side Diff: src/ast.h

Issue 150103004: Unify paren handling in (Pre)Parser::ParseExpressionOrLabelledStatement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ast.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 // True iff the expression is a string literal. 345 // True iff the expression is a string literal.
346 bool IsStringLiteral(); 346 bool IsStringLiteral();
347 347
348 // True iff the expression is the null literal. 348 // True iff the expression is the null literal.
349 bool IsNullLiteral(); 349 bool IsNullLiteral();
350 350
351 // True if we can prove that the expression is the undefined literal. 351 // True if we can prove that the expression is the undefined literal.
352 bool IsUndefinedLiteral(Isolate* isolate); 352 bool IsUndefinedLiteral(Isolate* isolate);
353 353
354 bool IsIdentifier();
355
356 bool IsIdentifierNamed(String* name);
357
354 // Expression type bounds 358 // Expression type bounds
355 Bounds bounds() { return bounds_; } 359 Bounds bounds() { return bounds_; }
356 void set_bounds(Bounds bounds) { bounds_ = bounds; } 360 void set_bounds(Bounds bounds) { bounds_ = bounds; }
357 361
358 // Type feedback information for assignments and properties. 362 // Type feedback information for assignments and properties.
359 virtual bool IsMonomorphic() { 363 virtual bool IsMonomorphic() {
360 UNREACHABLE(); 364 UNREACHABLE();
361 return false; 365 return false;
362 } 366 }
363 virtual SmallMapList* GetReceiverTypes() { 367 virtual SmallMapList* GetReceiverTypes() {
(...skipping 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after
3296 3300
3297 private: 3301 private:
3298 Zone* zone_; 3302 Zone* zone_;
3299 Visitor visitor_; 3303 Visitor visitor_;
3300 }; 3304 };
3301 3305
3302 3306
3303 } } // namespace v8::internal 3307 } } // namespace v8::internal
3304 3308
3305 #endif // V8_AST_H_ 3309 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698