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

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

Issue 2514663002: [simd] Disable Simd Scalar lowering for x64, enable tests for all other architectures. (Closed)
Patch Set: Bill's review Created 4 years, 1 month 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 | src/x64/assembler-x64-inl.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 3330 matching lines...) Expand 10 before | Expand all | Expand 10 after
3341 os << "Compilation failed: " << graph_construction_result_ << std::endl; 3341 os << "Compilation failed: " << graph_construction_result_ << std::endl;
3342 } 3342 }
3343 return nullptr; 3343 return nullptr;
3344 } 3344 }
3345 3345
3346 if (machine->Is32()) { 3346 if (machine->Is32()) {
3347 Int64Lowering r(graph, machine, common, jsgraph_->zone(), function_->sig); 3347 Int64Lowering r(graph, machine, common, jsgraph_->zone(), function_->sig);
3348 r.LowerGraph(); 3348 r.LowerGraph();
3349 } 3349 }
3350 3350
3351 SimdScalarLowering(graph, machine, common, jsgraph_->zone(), function_->sig) 3351 if (!CpuFeatures::SupportsSimd128()) {
3352 .LowerGraph(); 3352 SimdScalarLowering(graph, machine, common, jsgraph_->zone(), function_->sig)
3353 .LowerGraph();
3354 }
3353 3355
3354 int index = static_cast<int>(function_->func_index); 3356 int index = static_cast<int>(function_->func_index);
3355 3357
3356 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) { 3358 if (index >= FLAG_trace_wasm_ast_start && index < FLAG_trace_wasm_ast_end) {
3357 OFStream os(stdout); 3359 OFStream os(stdout);
3358 PrintAst(isolate_->allocator(), body, os, nullptr); 3360 PrintAst(isolate_->allocator(), body, os, nullptr);
3359 } 3361 }
3360 if (FLAG_trace_wasm_decode_time) { 3362 if (FLAG_trace_wasm_decode_time) {
3361 *decode_ms = decode_timer.Elapsed().InMillisecondsF(); 3363 *decode_ms = decode_timer.Elapsed().InMillisecondsF();
3362 } 3364 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3489 function_->code_start_offset), 3491 function_->code_start_offset),
3490 compile_ms); 3492 compile_ms);
3491 } 3493 }
3492 3494
3493 return code; 3495 return code;
3494 } 3496 }
3495 3497
3496 } // namespace compiler 3498 } // namespace compiler
3497 } // namespace internal 3499 } // namespace internal
3498 } // namespace v8 3500 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698