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

Side by Side Diff: src/interpreter/bytecode-generator.h

Issue 2457393003: Thread decls-list through Declaration (Closed)
Patch Set: rebase Created 4 years, 1 month 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/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.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 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_INTERPRETER_BYTECODE_GENERATOR_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_
6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-builder.h" 9 #include "src/interpreter/bytecode-array-builder.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 14 matching lines...) Expand all
25 explicit BytecodeGenerator(CompilationInfo* info); 25 explicit BytecodeGenerator(CompilationInfo* info);
26 26
27 void GenerateBytecode(uintptr_t stack_limit); 27 void GenerateBytecode(uintptr_t stack_limit);
28 Handle<BytecodeArray> FinalizeBytecode(Isolate* isolate); 28 Handle<BytecodeArray> FinalizeBytecode(Isolate* isolate);
29 29
30 #define DECLARE_VISIT(type) void Visit##type(type* node); 30 #define DECLARE_VISIT(type) void Visit##type(type* node);
31 AST_NODE_LIST(DECLARE_VISIT) 31 AST_NODE_LIST(DECLARE_VISIT)
32 #undef DECLARE_VISIT 32 #undef DECLARE_VISIT
33 33
34 // Visiting function for declarations list and statements are overridden. 34 // Visiting function for declarations list and statements are overridden.
35 void VisitDeclarations(ZoneList<Declaration*>* declarations); 35 void VisitDeclarations(Declaration::List* declarations);
36 void VisitStatements(ZoneList<Statement*>* statments); 36 void VisitStatements(ZoneList<Statement*>* statments);
37 37
38 private: 38 private:
39 class ContextScope; 39 class ContextScope;
40 class ControlScope; 40 class ControlScope;
41 class ControlScopeForBreakable; 41 class ControlScopeForBreakable;
42 class ControlScopeForIteration; 42 class ControlScopeForIteration;
43 class ControlScopeForTopLevel; 43 class ControlScopeForTopLevel;
44 class ControlScopeForTryCatch; 44 class ControlScopeForTryCatch;
45 class ControlScopeForTryFinally; 45 class ControlScopeForTryFinally;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 Handle<Name> home_object_symbol_; 218 Handle<Name> home_object_symbol_;
219 Handle<Name> prototype_string_; 219 Handle<Name> prototype_string_;
220 Handle<FixedArray> empty_fixed_array_; 220 Handle<FixedArray> empty_fixed_array_;
221 }; 221 };
222 222
223 } // namespace interpreter 223 } // namespace interpreter
224 } // namespace internal 224 } // namespace internal
225 } // namespace v8 225 } // namespace v8
226 226
227 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 227 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698