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

Side by Side Diff: src/parser.h

Issue 643603002: Simplify Scope and ScopePtr conversions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased before landing 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/preparser.h » ('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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 class ParserTraits { 345 class ParserTraits {
346 public: 346 public:
347 struct Type { 347 struct Type {
348 // TODO(marja): To be removed. The Traits object should contain all the data 348 // TODO(marja): To be removed. The Traits object should contain all the data
349 // it needs. 349 // it needs.
350 typedef v8::internal::Parser* Parser; 350 typedef v8::internal::Parser* Parser;
351 351
352 // Used by FunctionState and BlockState. 352 // Used by FunctionState and BlockState.
353 typedef v8::internal::Scope Scope; 353 typedef v8::internal::Scope Scope;
354 typedef v8::internal::Scope* ScopePtr; 354 typedef v8::internal::Scope* ScopePtr;
355 inline static Scope* ptr_to_scope(ScopePtr scope) { return scope; }
356
355 typedef Variable GeneratorVariable; 357 typedef Variable GeneratorVariable;
356 typedef v8::internal::Zone Zone; 358 typedef v8::internal::Zone Zone;
357 359
358 typedef v8::internal::AstProperties AstProperties; 360 typedef v8::internal::AstProperties AstProperties;
359 typedef Vector<VariableProxy*> ParameterIdentifierVector; 361 typedef Vector<VariableProxy*> ParameterIdentifierVector;
360 362
361 // Return types for traversing functions. 363 // Return types for traversing functions.
362 typedef const AstRawString* Identifier; 364 typedef const AstRawString* Identifier;
363 typedef v8::internal::Expression* Expression; 365 typedef v8::internal::Expression* Expression;
364 typedef Yield* YieldExpression; 366 typedef Yield* YieldExpression;
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 private: 919 private:
918 static const int kLiteralTypeSlot = 0; 920 static const int kLiteralTypeSlot = 0;
919 static const int kElementsSlot = 1; 921 static const int kElementsSlot = 1;
920 922
921 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 923 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
922 }; 924 };
923 925
924 } } // namespace v8::internal 926 } } // namespace v8::internal
925 927
926 #endif // V8_PARSER_H_ 928 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698