OLD | NEW |
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_TYPING_ASM_H_ | 5 #ifndef V8_TYPING_ASM_H_ |
6 #define V8_TYPING_ASM_H_ | 6 #define V8_TYPING_ASM_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast/ast-type-bounds.h" | 9 #include "src/ast/ast-type-bounds.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 ZoneHashMap local_variable_type_; | 114 ZoneHashMap local_variable_type_; |
115 | 115 |
116 bool in_function_; // In module function? | 116 bool in_function_; // In module function? |
117 bool building_function_tables_; | 117 bool building_function_tables_; |
118 bool visiting_exports_; | 118 bool visiting_exports_; |
119 | 119 |
120 TypeCache const& cache_; | 120 TypeCache const& cache_; |
121 | 121 |
122 AstTypeBounds bounds_; | 122 AstTypeBounds bounds_; |
123 | 123 |
124 static const int kErrorMessageLimit = 100; | 124 static const int kErrorMessageLimit = 150; |
125 char error_message_[kErrorMessageLimit]; | 125 char error_message_[kErrorMessageLimit]; |
126 | 126 |
127 static const int kMaxUncombinedAdditiveSteps = 1 << 20; | 127 static const int kMaxUncombinedAdditiveSteps = 1 << 20; |
128 static const int kMaxUncombinedMultiplicativeSteps = 1; | 128 static const int kMaxUncombinedMultiplicativeSteps = 1; |
129 | 129 |
130 void InitializeStdlib(); | 130 void InitializeStdlib(); |
131 void InitializeStdlibSIMD(); | 131 void InitializeStdlibSIMD(); |
132 | 132 |
133 void VisitDeclarations(ZoneList<Declaration*>* d) override; | 133 void VisitDeclarations(ZoneList<Declaration*>* d) override; |
134 void VisitStatements(ZoneList<Statement*>* s) override; | 134 void VisitStatements(ZoneList<Statement*>* s) override; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 #define DECLARE_VISIT(type) void Visit##type(type* node) override; | 179 #define DECLARE_VISIT(type) void Visit##type(type* node) override; |
180 AST_NODE_LIST(DECLARE_VISIT) | 180 AST_NODE_LIST(DECLARE_VISIT) |
181 #undef DECLARE_VISIT | 181 #undef DECLARE_VISIT |
182 | 182 |
183 DISALLOW_COPY_AND_ASSIGN(AsmTyper); | 183 DISALLOW_COPY_AND_ASSIGN(AsmTyper); |
184 }; | 184 }; |
185 } // namespace internal | 185 } // namespace internal |
186 } // namespace v8 | 186 } // namespace v8 |
187 | 187 |
188 #endif // V8_TYPING_ASM_H_ | 188 #endif // V8_TYPING_ASM_H_ |
OLD | NEW |