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

Side by Side Diff: src/parser.h

Issue 493173003: Fix issue with numeric property names (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/parser.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 #ifndef V8_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // For CachedDataMode 10 #include "src/compiler.h" // For CachedDataMode
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // Non-NULL empty string. 527 // Non-NULL empty string.
528 V8_INLINE const AstRawString* EmptyIdentifierString(); 528 V8_INLINE const AstRawString* EmptyIdentifierString();
529 529
530 // Odd-ball literal creators. 530 // Odd-ball literal creators.
531 Literal* GetLiteralTheHole(int position, 531 Literal* GetLiteralTheHole(int position,
532 AstNodeFactory<AstConstructionVisitor>* factory); 532 AstNodeFactory<AstConstructionVisitor>* factory);
533 533
534 // Producing data during the recursive descent. 534 // Producing data during the recursive descent.
535 const AstRawString* GetSymbol(Scanner* scanner); 535 const AstRawString* GetSymbol(Scanner* scanner);
536 const AstRawString* GetNextSymbol(Scanner* scanner); 536 const AstRawString* GetNextSymbol(Scanner* scanner);
537 const AstRawString* GetNumberAsSymbol(Scanner* scanner);
537 538
538 Expression* ThisExpression(Scope* scope, 539 Expression* ThisExpression(Scope* scope,
539 AstNodeFactory<AstConstructionVisitor>* factory, 540 AstNodeFactory<AstConstructionVisitor>* factory,
540 int pos = RelocInfo::kNoPosition); 541 int pos = RelocInfo::kNoPosition);
541 Expression* SuperReference(Scope* scope, 542 Expression* SuperReference(Scope* scope,
542 AstNodeFactory<AstConstructionVisitor>* factory, 543 AstNodeFactory<AstConstructionVisitor>* factory,
543 int pos = RelocInfo::kNoPosition); 544 int pos = RelocInfo::kNoPosition);
544 Literal* ExpressionFromLiteral( 545 Literal* ExpressionFromLiteral(
545 Token::Value token, int pos, Scanner* scanner, 546 Token::Value token, int pos, Scanner* scanner,
546 AstNodeFactory<AstConstructionVisitor>* factory); 547 AstNodeFactory<AstConstructionVisitor>* factory);
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 private: 891 private:
891 static const int kLiteralTypeSlot = 0; 892 static const int kLiteralTypeSlot = 0;
892 static const int kElementsSlot = 1; 893 static const int kElementsSlot = 1;
893 894
894 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 895 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
895 }; 896 };
896 897
897 } } // namespace v8::internal 898 } } // namespace v8::internal
898 899
899 #endif // V8_PARSER_H_ 900 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698