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

Side by Side Diff: src/rewriter.h

Issue 974213002: Extract ParseInfo from CompilationInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/preparse-data.cc ('k') | src/rewriter.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_REWRITER_H_ 5 #ifndef V8_REWRITER_H_
6 #define V8_REWRITER_H_ 6 #define V8_REWRITER_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
11 class CompilationInfo; 11 class ParseInfo;
12 12
13 class Rewriter { 13 class Rewriter {
14 public: 14 public:
15 // Rewrite top-level code (ECMA 262 "programs") so as to conservatively 15 // Rewrite top-level code (ECMA 262 "programs") so as to conservatively
16 // include an assignment of the value of the last statement in the code to 16 // include an assignment of the value of the last statement in the code to
17 // a compiler-generated temporary variable wherever needed. 17 // a compiler-generated temporary variable wherever needed.
18 // 18 //
19 // Assumes code has been parsed and scopes have been analyzed. Mutates the 19 // Assumes code has been parsed and scopes have been analyzed. Mutates the
20 // AST, so the AST should not continue to be used in the case of failure. 20 // AST, so the AST should not continue to be used in the case of failure.
21 static bool Rewrite(CompilationInfo* info); 21 static bool Rewrite(ParseInfo* info);
22 }; 22 };
23 23
24 24
25 } } // namespace v8::internal 25 } } // namespace v8::internal
26 26
27 #endif // V8_REWRITER_H_ 27 #endif // V8_REWRITER_H_
OLDNEW
« no previous file with comments | « src/preparse-data.cc ('k') | src/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698