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 "src/isolate-inl.h" | 7 #include "src/isolate-inl.h" |
8 | 8 |
9 #include "src/base/platform/elapsed-timer.h" | 9 #include "src/base/platform/elapsed-timer.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2560 if (!code.is_null()) { | 2560 if (!code.is_null()) { |
2561 RecordFunctionCompilation(Logger::FUNCTION_TAG, &info, "WASM_function", | 2561 RecordFunctionCompilation(Logger::FUNCTION_TAG, &info, "WASM_function", |
2562 function.func_index, | 2562 function.func_index, |
2563 module_env->module->GetName( | 2563 module_env->module->GetName( |
2564 function.name_offset, function.name_length)); | 2564 function.name_offset, function.name_length)); |
2565 } | 2565 } |
2566 | 2566 |
2567 if (FLAG_trace_wasm_decode_time) { | 2567 if (FLAG_trace_wasm_decode_time) { |
2568 double compile_ms = compile_timer.Elapsed().InMillisecondsF(); | 2568 double compile_ms = compile_timer.Elapsed().InMillisecondsF(); |
2569 PrintF( | 2569 PrintF( |
2570 "wasm-compile ok: %d bytes, %0.3f ms decode, %0.3f ms compile\n", | 2570 "wasm-compile ok: %d bytes, %0.3f ms decode, %d nodes, %0.3f ms " |
| 2571 "compile\n", |
2571 static_cast<int>(function.code_end_offset - function.code_start_offset), | 2572 static_cast<int>(function.code_end_offset - function.code_start_offset), |
2572 decode_ms, compile_ms); | 2573 decode_ms, static_cast<int>(graph.NodeCount()), compile_ms); |
2573 } | 2574 } |
2574 return code; | 2575 return code; |
2575 } | 2576 } |
2576 | 2577 |
2577 | 2578 |
2578 } // namespace compiler | 2579 } // namespace compiler |
2579 } // namespace internal | 2580 } // namespace internal |
2580 } // namespace v8 | 2581 } // namespace v8 |
OLD | NEW |