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

Side by Side Diff: src/asmjs/asm-typer.h

Issue 2523703002: [asmjs] Avoid truncation of error messages (Closed)
Patch Set: 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/asmjs/asm-js.cc ('k') | src/asmjs/asm-typer.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 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
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_
OLDNEW
« no previous file with comments | « src/asmjs/asm-js.cc ('k') | src/asmjs/asm-typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698