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

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

Issue 2719953002: Add Int32x4 Wasm Simd Binops, compare ops, select (Closed)
Patch Set: Rebase Created 3 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
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/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 4073 matching lines...) Expand 10 before | Expand all | Expand 10 after
4084 os << "Compilation failed: " << graph_construction_result_ << std::endl; 4084 os << "Compilation failed: " << graph_construction_result_ << std::endl;
4085 } 4085 }
4086 return nullptr; 4086 return nullptr;
4087 } 4087 }
4088 4088
4089 if (machine->Is32()) { 4089 if (machine->Is32()) {
4090 Int64Lowering(graph, machine, common, jsgraph_->zone(), func_body_.sig) 4090 Int64Lowering(graph, machine, common, jsgraph_->zone(), func_body_.sig)
4091 .LowerGraph(); 4091 .LowerGraph();
4092 } 4092 }
4093 4093
4094 if (builder.has_simd() && !CpuFeatures::SupportsSimd128()) { 4094 if (builder.has_simd() && !CpuFeatures::SupportsWasmSimd128()) {
4095 SimdScalarLowering(jsgraph_, func_body_.sig).LowerGraph(); 4095 SimdScalarLowering(jsgraph_, func_body_.sig).LowerGraph();
4096 } 4096 }
4097 4097
4098 if (func_index_ >= FLAG_trace_wasm_ast_start && 4098 if (func_index_ >= FLAG_trace_wasm_ast_start &&
4099 func_index_ < FLAG_trace_wasm_ast_end) { 4099 func_index_ < FLAG_trace_wasm_ast_end) {
4100 PrintRawWasmCode(isolate_->allocator(), func_body_, module_env_->module); 4100 PrintRawWasmCode(isolate_->allocator(), func_body_, module_env_->module);
4101 } 4101 }
4102 if (FLAG_trace_wasm_decode_time) { 4102 if (FLAG_trace_wasm_decode_time) {
4103 *decode_ms = decode_timer.Elapsed().InMillisecondsF(); 4103 *decode_ms = decode_timer.Elapsed().InMillisecondsF();
4104 } 4104 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
4250 wasm::ErrorThrower* thrower, Isolate* isolate, 4250 wasm::ErrorThrower* thrower, Isolate* isolate,
4251 wasm::ModuleBytesEnv* module_env, const wasm::WasmFunction* function) { 4251 wasm::ModuleBytesEnv* module_env, const wasm::WasmFunction* function) {
4252 WasmCompilationUnit unit(isolate, module_env, function); 4252 WasmCompilationUnit unit(isolate, module_env, function);
4253 unit.ExecuteCompilation(); 4253 unit.ExecuteCompilation();
4254 return unit.FinishCompilation(thrower); 4254 return unit.FinishCompilation(thrower);
4255 } 4255 }
4256 4256
4257 } // namespace compiler 4257 } // namespace compiler
4258 } // namespace internal 4258 } // namespace internal
4259 } // namespace v8 4259 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698