OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 SRC_ASMJS_ASM_TYPER_H_ | 5 #ifndef SRC_ASMJS_ASM_TYPER_H_ |
6 #define SRC_ASMJS_ASM_TYPER_H_ | 6 #define SRC_ASMJS_ASM_TYPER_H_ |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <string> | 9 #include <string> |
10 #include <unordered_set> | 10 #include <unordered_set> |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 VariableInfo* module_info_; | 339 VariableInfo* module_info_; |
340 Handle<String> module_name_; | 340 Handle<String> module_name_; |
341 | 341 |
342 // 3 Environments | 342 // 3 Environments |
343 ZoneHashMap global_scope_; // 3.1 Global environment | 343 ZoneHashMap global_scope_; // 3.1 Global environment |
344 ZoneHashMap local_scope_; // 3.2 Variable environment | 344 ZoneHashMap local_scope_; // 3.2 Variable environment |
345 | 345 |
346 std::uintptr_t stack_limit_; | 346 std::uintptr_t stack_limit_; |
347 bool stack_overflow_ = false; | 347 bool stack_overflow_ = false; |
348 ZoneMap<AstNode*, AsmType*> node_types_; | 348 ZoneMap<AstNode*, AsmType*> node_types_; |
349 static const int kErrorMessageLimit = 100; | 349 static const int kErrorMessageLimit = 128; |
350 AsmType* fround_type_; | 350 AsmType* fround_type_; |
351 AsmType* ffi_type_; | 351 AsmType* ffi_type_; |
352 char error_message_[kErrorMessageLimit]; | 352 char error_message_[kErrorMessageLimit]; |
353 StdlibSet stdlib_uses_; | 353 StdlibSet stdlib_uses_; |
354 | 354 |
355 DISALLOW_IMPLICIT_CONSTRUCTORS(AsmTyper); | 355 DISALLOW_IMPLICIT_CONSTRUCTORS(AsmTyper); |
356 }; | 356 }; |
357 | 357 |
358 } // namespace wasm | 358 } // namespace wasm |
359 } // namespace internal | 359 } // namespace internal |
360 } // namespace v8 | 360 } // namespace v8 |
361 | 361 |
362 #endif // SRC_ASMJS_ASM_TYPER_H_ | 362 #endif // SRC_ASMJS_ASM_TYPER_H_ |
OLD | NEW |