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

Side by Side Diff: src/parsing/parameter-initializer-rewriter.h

Issue 2302283002: Forking the type system between Crankshaft & Turbofan. (Closed)
Patch Set: Nits. Created 4 years, 3 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/ic/ic-state.cc ('k') | src/type-info.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_PARSING_PARAMETER_EXPRESSION_REWRITER_H_ 5 #ifndef V8_PARSING_PARAMETER_EXPRESSION_REWRITER_H_
6 #define V8_PARSING_PARAMETER_EXPRESSION_REWRITER_H_ 6 #define V8_PARSING_PARAMETER_EXPRESSION_REWRITER_H_
7 7
8 #include "src/types.h" 8 #include "src/ast/ast-types.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 class Expression; 13 class Expression;
14 class Scope; 14 class Scope;
15 15
16 // When an extra declaration scope needs to be inserted to account for 16 // When an extra declaration scope needs to be inserted to account for
17 // a sloppy eval in a default parameter or function body, the expressions 17 // a sloppy eval in a default parameter or function body, the expressions
18 // needs to be in that new inner scope which was added after initial 18 // needs to be in that new inner scope which was added after initial
19 // parsing. 19 // parsing.
20 // 20 //
21 // param_scope is the new inner scope, and its outer_scope() is assumed 21 // param_scope is the new inner scope, and its outer_scope() is assumed
22 // to be the function scope which was used during the initial parse. 22 // to be the function scope which was used during the initial parse.
23 void ReparentParameterExpressionScope(uintptr_t stack_limit, Expression* expr, 23 void ReparentParameterExpressionScope(uintptr_t stack_limit, Expression* expr,
24 Scope* param_scope); 24 Scope* param_scope);
25 25
26 } // namespace internal 26 } // namespace internal
27 } // namespace v8 27 } // namespace v8
28 28
29 #endif // V8_PARSING_PARAMETER_EXPRESSION_REWRITER_H_ 29 #endif // V8_PARSING_PARAMETER_EXPRESSION_REWRITER_H_
OLDNEW
« no previous file with comments | « src/ic/ic-state.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698