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

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

Issue 2666903002: [wasm] Do float constant folding if the origin is not wasm (Closed)
Patch Set: Allow signalling NaNs by default Created 3 years, 10 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 | « src/compiler/pipeline.cc ('k') | src/wasm/wasm-module.h » ('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 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 3942 matching lines...) Expand 10 before | Expand all | Expand 10 after
3953 pipeline_timer.Start(); 3953 pipeline_timer.Start();
3954 } 3954 }
3955 3955
3956 // Run the compiler pipeline to generate machine code. 3956 // Run the compiler pipeline to generate machine code.
3957 CallDescriptor* descriptor = wasm::ModuleEnv::GetWasmCallDescriptor( 3957 CallDescriptor* descriptor = wasm::ModuleEnv::GetWasmCallDescriptor(
3958 &compilation_zone_, function_->sig); 3958 &compilation_zone_, function_->sig);
3959 if (jsgraph_->machine()->Is32()) { 3959 if (jsgraph_->machine()->Is32()) {
3960 descriptor = module_env_->module_env.GetI32WasmCallDescriptor( 3960 descriptor = module_env_->module_env.GetI32WasmCallDescriptor(
3961 &compilation_zone_, descriptor); 3961 &compilation_zone_, descriptor);
3962 } 3962 }
3963 job_.reset(Pipeline::NewWasmCompilationJob(&info_, jsgraph_, descriptor, 3963 job_.reset(Pipeline::NewWasmCompilationJob(
3964 source_positions, 3964 &info_, jsgraph_, descriptor, source_positions, &protected_instructions_,
3965 &protected_instructions_)); 3965 module_env_->module_env.module->origin != wasm::kWasmOrigin));
3966 ok_ = job_->ExecuteJob() == CompilationJob::SUCCEEDED; 3966 ok_ = job_->ExecuteJob() == CompilationJob::SUCCEEDED;
3967 // TODO(bradnelson): Improve histogram handling of size_t. 3967 // TODO(bradnelson): Improve histogram handling of size_t.
3968 // TODO(ahaas): The counters are not thread-safe at the moment. 3968 // TODO(ahaas): The counters are not thread-safe at the moment.
3969 // isolate_->counters()->wasm_compile_function_peak_memory_bytes() 3969 // isolate_->counters()->wasm_compile_function_peak_memory_bytes()
3970 // ->AddSample( 3970 // ->AddSample(
3971 // static_cast<int>(jsgraph->graph()->zone()->allocation_size())); 3971 // static_cast<int>(jsgraph->graph()->zone()->allocation_size()));
3972 3972
3973 if (FLAG_trace_wasm_decode_time) { 3973 if (FLAG_trace_wasm_decode_time) {
3974 double pipeline_ms = pipeline_timer.Elapsed().InMillisecondsF(); 3974 double pipeline_ms = pipeline_timer.Elapsed().InMillisecondsF();
3975 PrintF( 3975 PrintF(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
4019 function_->code_start_offset), 4019 function_->code_start_offset),
4020 compile_ms); 4020 compile_ms);
4021 } 4021 }
4022 4022
4023 return code; 4023 return code;
4024 } 4024 }
4025 4025
4026 } // namespace compiler 4026 } // namespace compiler
4027 } // namespace internal 4027 } // namespace internal
4028 } // namespace v8 4028 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/wasm/wasm-module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698