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

Side by Side Diff: src/wasm/encoder.cc

Issue 1778383003: wasm: fix --trace_wasm_decoder flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months 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 | « no previous file | no next file » | 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 #include "src/signature.h" 5 #include "src/signature.h"
6 6
7 #include "src/handles.h" 7 #include "src/handles.h"
8 #include "src/v8.h" 8 #include "src/v8.h"
9 #include "src/zone-containers.h" 9 #include "src/zone-containers.h"
10 10
11 #include "src/wasm/ast-decoder.h" 11 #include "src/wasm/ast-decoder.h"
12 #include "src/wasm/encoder.h" 12 #include "src/wasm/encoder.h"
13 #include "src/wasm/wasm-macro-gen.h" 13 #include "src/wasm/wasm-macro-gen.h"
14 #include "src/wasm/wasm-module.h" 14 #include "src/wasm/wasm-module.h"
15 #include "src/wasm/wasm-opcodes.h" 15 #include "src/wasm/wasm-opcodes.h"
16 16
17 #include "src/v8memory.h" 17 #include "src/v8memory.h"
18 18
19 #if DEBUG 19 #if DEBUG
20 #define TRACE(...) \ 20 #define TRACE(...) \
21 do { \ 21 do { \
22 if (FLAG_trace_wasm_decoder) PrintF(__VA_ARGS__); \ 22 if (FLAG_trace_wasm_encoder) PrintF(__VA_ARGS__); \
23 } while (false) 23 } while (false)
24 #else 24 #else
25 #define TRACE(...) 25 #define TRACE(...)
26 #endif 26 #endif
27 27
28 namespace v8 { 28 namespace v8 {
29 namespace internal { 29 namespace internal {
30 namespace wasm { 30 namespace wasm {
31 31
32 /*TODO: add error cases for adding too many locals, too many functions and bad 32 /*TODO: add error cases for adding too many locals, too many functions and bad
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 next = next | 0x80; 730 next = next | 0x80;
731 } 731 }
732 output.push_back(next); 732 output.push_back(next);
733 shift += 7; 733 shift += 7;
734 } while ((next & 0x80) != 0); 734 } while ((next & 0x80) != 0);
735 return output; 735 return output;
736 } 736 }
737 } // namespace wasm 737 } // namespace wasm
738 } // namespace internal 738 } // namespace internal
739 } // namespace v8 739 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698