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

Side by Side Diff: src/parser.h

Issue 703603005: Classes: Fix issue with default constructor crash (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Trying... Created 6 years, 1 month 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 | « src/full-codegen.cc ('k') | 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 AstNodeFactory<AstConstructionVisitor>* factory, 540 AstNodeFactory<AstConstructionVisitor>* factory,
541 int pos = RelocInfo::kNoPosition); 541 int pos = RelocInfo::kNoPosition);
542 Expression* SuperReference(Scope* scope, 542 Expression* SuperReference(Scope* scope,
543 AstNodeFactory<AstConstructionVisitor>* factory, 543 AstNodeFactory<AstConstructionVisitor>* factory,
544 int pos = RelocInfo::kNoPosition); 544 int pos = RelocInfo::kNoPosition);
545 Expression* ClassExpression(const AstRawString* name, Expression* extends, 545 Expression* ClassExpression(const AstRawString* name, Expression* extends,
546 Expression* constructor, 546 Expression* constructor,
547 ZoneList<ObjectLiteral::Property*>* properties, 547 ZoneList<ObjectLiteral::Property*>* properties,
548 int start_position, int end_position, 548 int start_position, int end_position,
549 AstNodeFactory<AstConstructionVisitor>* factory); 549 AstNodeFactory<AstConstructionVisitor>* factory);
550 550 Expression* DefaultConstructor(
551 bool call_super, Scope* scope,
552 AstNodeFactory<AstConstructionVisitor>* factory);
551 Literal* ExpressionFromLiteral( 553 Literal* ExpressionFromLiteral(
552 Token::Value token, int pos, Scanner* scanner, 554 Token::Value token, int pos, Scanner* scanner,
553 AstNodeFactory<AstConstructionVisitor>* factory); 555 AstNodeFactory<AstConstructionVisitor>* factory);
554 Expression* ExpressionFromIdentifier( 556 Expression* ExpressionFromIdentifier(
555 const AstRawString* name, int pos, Scope* scope, 557 const AstRawString* name, int pos, Scope* scope,
556 AstNodeFactory<AstConstructionVisitor>* factory); 558 AstNodeFactory<AstConstructionVisitor>* factory);
557 Expression* ExpressionFromString( 559 Expression* ExpressionFromString(
558 int pos, Scanner* scanner, 560 int pos, Scanner* scanner,
559 AstNodeFactory<AstConstructionVisitor>* factory); 561 AstNodeFactory<AstConstructionVisitor>* factory);
560 Expression* GetIterator(Expression* iterable, 562 Expression* GetIterator(Expression* iterable,
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 private: 920 private:
919 static const int kLiteralTypeSlot = 0; 921 static const int kLiteralTypeSlot = 0;
920 static const int kElementsSlot = 1; 922 static const int kElementsSlot = 1;
921 923
922 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 924 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
923 }; 925 };
924 926
925 } } // namespace v8::internal 927 } } // namespace v8::internal
926 928
927 #endif // V8_PARSER_H_ 929 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698