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

Side by Side Diff: src/ast/ast-function-literal-id-reindexer.cc

Issue 2622503002: include fixing: api.h shouldn't include objects-inl.h (Closed)
Patch Set: static type check Created 3 years, 11 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/ast/ast-expression-rewriter.cc ('k') | src/ast/ast-literal-reindexer.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/ast/ast-function-literal-id-reindexer.h" 5 #include "src/ast/ast-function-literal-id-reindexer.h"
6 #include "src/objects-inl.h"
6 7
7 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
8 9
9 namespace v8 { 10 namespace v8 {
10 namespace internal { 11 namespace internal {
11 12
12 AstFunctionLiteralIdReindexer::AstFunctionLiteralIdReindexer(size_t stack_limit, 13 AstFunctionLiteralIdReindexer::AstFunctionLiteralIdReindexer(size_t stack_limit,
13 int delta) 14 int delta)
14 : AstTraversalVisitor(stack_limit), delta_(delta) {} 15 : AstTraversalVisitor(stack_limit), delta_(delta) {}
15 16
16 AstFunctionLiteralIdReindexer::~AstFunctionLiteralIdReindexer() {} 17 AstFunctionLiteralIdReindexer::~AstFunctionLiteralIdReindexer() {}
17 18
18 void AstFunctionLiteralIdReindexer::Reindex(Expression* pattern) { 19 void AstFunctionLiteralIdReindexer::Reindex(Expression* pattern) {
19 Visit(pattern); 20 Visit(pattern);
20 } 21 }
21 22
22 void AstFunctionLiteralIdReindexer::VisitFunctionLiteral(FunctionLiteral* lit) { 23 void AstFunctionLiteralIdReindexer::VisitFunctionLiteral(FunctionLiteral* lit) {
23 AstTraversalVisitor::VisitFunctionLiteral(lit); 24 AstTraversalVisitor::VisitFunctionLiteral(lit);
24 lit->set_function_literal_id(lit->function_literal_id() + delta_); 25 lit->set_function_literal_id(lit->function_literal_id() + delta_);
25 } 26 }
26 27
27 } // namespace internal 28 } // namespace internal
28 } // namespace v8 29 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-expression-rewriter.cc ('k') | src/ast/ast-literal-reindexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698