Chromium Code Reviews

Side by Side Diff: src/compiler/wasm-compiler.cc

Issue 2657443003: [wasm] Fix the --wasm_code_fuzzer_gen_test again. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | src/wasm/function-body-decoder.h » ('j') | src/wasm/function-body-decoder.cc » ('J')
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/compiler/wasm-compiler.h" 5 #include "src/compiler/wasm-compiler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/isolate-inl.h" 9 #include "src/isolate-inl.h"
10 10
(...skipping 3701 matching lines...)
3712 3712
3713 if (builder.has_simd() && !CpuFeatures::SupportsSimd128()) { 3713 if (builder.has_simd() && !CpuFeatures::SupportsSimd128()) {
3714 SimdScalarLowering(graph, machine, common, jsgraph_->zone(), function_->sig) 3714 SimdScalarLowering(graph, machine, common, jsgraph_->zone(), function_->sig)
3715 .LowerGraph(); 3715 .LowerGraph();
3716 } 3716 }
3717 3717
3718 int index = static_cast<int>(function_->func_index); 3718 int index = static_cast<int>(function_->func_index);
3719 3719
3720 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) { 3720 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) {
3721 OFStream os(stdout); 3721 OFStream os(stdout);
3722 PrintWasmCode(isolate_->allocator(), body, module_env_->module_env.module, 3722 PrintWasmCode(isolate_->allocator(), body, module_env_->module_env.module);
3723 os, nullptr);
3724 } 3723 }
3725 if (index >= FLAG_trace_wasm_text_start && index < FLAG_trace_wasm_text_end) { 3724 if (index >= FLAG_trace_wasm_text_start && index < FLAG_trace_wasm_text_end) {
3726 OFStream os(stdout); 3725 OFStream os(stdout);
3727 PrintWasmText(module_env_->module_env.module, module_env_->wire_bytes, 3726 PrintWasmText(module_env_->module_env.module, module_env_->wire_bytes,
3728 function_->func_index, os, nullptr); 3727 function_->func_index, os, nullptr);
3729 } 3728 }
3730 if (FLAG_trace_wasm_decode_time) { 3729 if (FLAG_trace_wasm_decode_time) {
3731 *decode_ms = decode_timer.Elapsed().InMillisecondsF(); 3730 *decode_ms = decode_timer.Elapsed().InMillisecondsF();
3732 } 3731 }
3733 return source_position_table; 3732 return source_position_table;
(...skipping 144 matching lines...)
3878 Smi::FromInt(instruction.instr_offset)); 3877 Smi::FromInt(instruction.instr_offset));
3879 fn_protected->set(Code::kTrapDataSize * i + Code::kTrapLandingOffset, 3878 fn_protected->set(Code::kTrapDataSize * i + Code::kTrapLandingOffset,
3880 Smi::FromInt(instruction.landing_offset)); 3879 Smi::FromInt(instruction.landing_offset));
3881 } 3880 }
3882 return fn_protected; 3881 return fn_protected;
3883 } 3882 }
3884 3883
3885 } // namespace compiler 3884 } // namespace compiler
3886 } // namespace internal 3885 } // namespace internal
3887 } // namespace v8 3886 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/wasm/function-body-decoder.h » ('j') | src/wasm/function-body-decoder.cc » ('J')

Powered by Google App Engine