| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |