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

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

Issue 1415093006: [Interpreter] Add switch support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_wideidx
Patch Set: Rebased Created 5 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/interpreter/bytecode-array-builder.h ('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.h" 8 #include "src/ast.h"
9 #include "src/interpreter/bytecode-array-builder.h" 9 #include "src/interpreter/bytecode-array-builder.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 13 matching lines...) Expand all
24 AST_NODE_LIST(DECLARE_VISIT) 24 AST_NODE_LIST(DECLARE_VISIT)
25 #undef DECLARE_VISIT 25 #undef DECLARE_VISIT
26 26
27 // Visiting function for declarations list is overridden. 27 // Visiting function for declarations list is overridden.
28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; 28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override;
29 29
30 private: 30 private:
31 class ContextScope; 31 class ContextScope;
32 class ControlScope; 32 class ControlScope;
33 class ControlScopeForIteration; 33 class ControlScopeForIteration;
34 class ControlScopeForSwitch;
34 class ExpressionResultScope; 35 class ExpressionResultScope;
35 class EffectResultScope; 36 class EffectResultScope;
36 class AccumulatorResultScope; 37 class AccumulatorResultScope;
37 class RegisterResultScope; 38 class RegisterResultScope;
38 39
39 void MakeBytecodeBody(); 40 void MakeBytecodeBody();
40 Register NextContextRegister() const; 41 Register NextContextRegister() const;
41 42
42 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 43 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
43 44
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 int binary_expression_depth_; 137 int binary_expression_depth_;
137 ZoneSet<int> binary_expression_hazard_set_; 138 ZoneSet<int> binary_expression_hazard_set_;
138 }; 139 };
139 140
140 } // namespace interpreter 141 } // namespace interpreter
141 } // namespace internal 142 } // namespace internal
142 } // namespace v8 143 } // namespace v8
143 144
144 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 145 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698