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

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

Issue 2594973003: [wasm] Rename ast-decoder.* to function-body-decoder.* (Closed)
Patch Set: Created 3 years, 12 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
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 15 matching lines...) Expand all
26 #include "src/compiler/node-matchers.h" 26 #include "src/compiler/node-matchers.h"
27 #include "src/compiler/pipeline.h" 27 #include "src/compiler/pipeline.h"
28 #include "src/compiler/simd-scalar-lowering.h" 28 #include "src/compiler/simd-scalar-lowering.h"
29 #include "src/compiler/zone-stats.h" 29 #include "src/compiler/zone-stats.h"
30 30
31 #include "src/code-factory.h" 31 #include "src/code-factory.h"
32 #include "src/code-stubs.h" 32 #include "src/code-stubs.h"
33 #include "src/factory.h" 33 #include "src/factory.h"
34 #include "src/log-inl.h" 34 #include "src/log-inl.h"
35 35
36 #include "src/wasm/ast-decoder.h" 36 #include "src/wasm/function-body-decoder.h"
37 #include "src/wasm/wasm-limits.h" 37 #include "src/wasm/wasm-limits.h"
38 #include "src/wasm/wasm-module.h" 38 #include "src/wasm/wasm-module.h"
39 #include "src/wasm/wasm-opcodes.h" 39 #include "src/wasm/wasm-opcodes.h"
40 #include "src/wasm/wasm-text.h" 40 #include "src/wasm/wasm-text.h"
41 41
42 // TODO(titzer): pull WASM_64 up to a common header. 42 // TODO(titzer): pull WASM_64 up to a common header.
43 #if !V8_TARGET_ARCH_32_BIT || V8_TARGET_ARCH_X64 43 #if !V8_TARGET_ARCH_32_BIT || V8_TARGET_ARCH_X64
44 #define WASM_64 1 44 #define WASM_64 1
45 #else 45 #else
46 #define WASM_64 0 46 #define WASM_64 0
(...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after
3531 3531
3532 if (builder.has_simd() && !CpuFeatures::SupportsSimd128()) { 3532 if (builder.has_simd() && !CpuFeatures::SupportsSimd128()) {
3533 SimdScalarLowering(graph, machine, common, jsgraph_->zone(), function_->sig) 3533 SimdScalarLowering(graph, machine, common, jsgraph_->zone(), function_->sig)
3534 .LowerGraph(); 3534 .LowerGraph();
3535 } 3535 }
3536 3536
3537 int index = static_cast<int>(function_->func_index); 3537 int index = static_cast<int>(function_->func_index);
3538 3538
3539 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) { 3539 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) {
3540 OFStream os(stdout); 3540 OFStream os(stdout);
3541 PrintAst(isolate_->allocator(), body, os, nullptr); 3541 PrintWasmCode(isolate_->allocator(), body, os, nullptr);
3542 } 3542 }
3543 if (index >= FLAG_trace_wasm_text_start && index < FLAG_trace_wasm_text_end) { 3543 if (index >= FLAG_trace_wasm_text_start && index < FLAG_trace_wasm_text_end) {
3544 OFStream os(stdout); 3544 OFStream os(stdout);
3545 PrintWasmText(module_env_->module, *module_env_, function_->func_index, os, 3545 PrintWasmText(module_env_->module, *module_env_, function_->func_index, os,
3546 nullptr); 3546 nullptr);
3547 } 3547 }
3548 if (FLAG_trace_wasm_decode_time) { 3548 if (FLAG_trace_wasm_decode_time) {
3549 *decode_ms = decode_timer.Elapsed().InMillisecondsF(); 3549 *decode_ms = decode_timer.Elapsed().InMillisecondsF();
3550 } 3550 }
3551 return source_position_table; 3551 return source_position_table;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
3693 Smi::FromInt(instruction.instr_offset)); 3693 Smi::FromInt(instruction.instr_offset));
3694 fn_protected->set(Code::kTrapDataSize * i + Code::kTrapLandingOffset, 3694 fn_protected->set(Code::kTrapDataSize * i + Code::kTrapLandingOffset,
3695 Smi::FromInt(instruction.landing_offset)); 3695 Smi::FromInt(instruction.landing_offset));
3696 } 3696 }
3697 return fn_protected; 3697 return fn_protected;
3698 } 3698 }
3699 3699
3700 } // namespace compiler 3700 } // namespace compiler
3701 } // namespace internal 3701 } // namespace internal
3702 } // namespace v8 3702 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/v8.gyp » ('j') | src/wasm/function-body-decoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698