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

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

Issue 2240463002: [Interpreter] Introduce InterpreterCompilationJob (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@offheap_peekhole
Patch Set: Address comments Created 4 years, 4 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 | « no previous file | src/compiler.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_AST_AST_H_ 5 #ifndef V8_AST_AST_H_
6 #define V8_AST_AST_H_ 6 #define V8_AST_AST_H_
7 7
8 #include "src/ast/ast-value-factory.h" 8 #include "src/ast/ast-value-factory.h"
9 #include "src/ast/modules.h" 9 #include "src/ast/modules.h"
10 #include "src/ast/variables.h" 10 #include "src/ast/variables.h"
(...skipping 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after
2839 }; 2839 };
2840 2840
2841 2841
2842 2842
2843 // ---------------------------------------------------------------------------- 2843 // ----------------------------------------------------------------------------
2844 // Basic visitor 2844 // Basic visitor
2845 // Sub-class should parametrize AstVisitor with itself, e.g.: 2845 // Sub-class should parametrize AstVisitor with itself, e.g.:
2846 // class SpecificVisitor : public AstVisitor<SpecificVisitor> { ... } 2846 // class SpecificVisitor : public AstVisitor<SpecificVisitor> { ... }
2847 2847
2848 template <class Subclass> 2848 template <class Subclass>
2849 class AstVisitor BASE_EMBEDDED { 2849 class AstVisitor {
Michael Starzinger 2016/08/16 12:11:44 nit: Can this be kept BASE_EMBEDDED now that we no
rmcilroy 2016/08/16 12:16:10 Done.
2850 public: 2850 public:
2851 void Visit(AstNode* node) { impl()->Visit(node); } 2851 void Visit(AstNode* node) { impl()->Visit(node); }
2852 2852
2853 void VisitDeclarations(ZoneList<Declaration*>* declarations) { 2853 void VisitDeclarations(ZoneList<Declaration*>* declarations) {
2854 for (int i = 0; i < declarations->length(); i++) { 2854 for (int i = 0; i < declarations->length(); i++) {
2855 Visit(declarations->at(i)); 2855 Visit(declarations->at(i));
2856 } 2856 }
2857 } 2857 }
2858 2858
2859 void VisitStatements(ZoneList<Statement*>* statements) { 2859 void VisitStatements(ZoneList<Statement*>* statements) {
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
3478 : NULL; \ 3478 : NULL; \
3479 } 3479 }
3480 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3480 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3481 #undef DECLARE_NODE_FUNCTIONS 3481 #undef DECLARE_NODE_FUNCTIONS
3482 3482
3483 3483
3484 } // namespace internal 3484 } // namespace internal
3485 } // namespace v8 3485 } // namespace v8
3486 3486
3487 #endif // V8_AST_AST_H_ 3487 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698