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

Side by Side Diff: src/ast/ast-numbering.h

Issue 1877403003: [ast] Annotate some nodes with number of yields. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_AST_AST_NUMBERING_H_ 5 #ifndef V8_AST_AST_NUMBERING_H_
6 #define V8_AST_AST_NUMBERING_H_ 6 #define V8_AST_AST_NUMBERING_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
11 // Forward declarations. 11 // Forward declarations.
12 class FunctionLiteral; 12 class FunctionLiteral;
13 class Isolate; 13 class Isolate;
14 class Zone; 14 class Zone;
15 15
16 namespace AstNumbering { 16 namespace AstNumbering {
17 // Assign type feedback IDs and bailout IDs to an AST node tree. 17 // Assign type feedback IDs and bailout IDs to an AST node tree. For a
18 // 18 // generator function, also annotate the function itself and any loops therein
19 // with the number of contained yields.
19 bool Renumber(Isolate* isolate, Zone* zone, FunctionLiteral* function); 20 bool Renumber(Isolate* isolate, Zone* zone, FunctionLiteral* function);
20 } 21 }
21 22
22 } // namespace internal 23 } // namespace internal
23 } // namespace v8 24 } // namespace v8
24 25
25 #endif // V8_AST_AST_NUMBERING_H_ 26 #endif // V8_AST_AST_NUMBERING_H_
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-numbering.cc » ('j') | src/ast/ast-numbering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698