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

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

Issue 1789683002: [wasm] Attach loop assignment analysis behind a flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix_length_of_const
Patch Set: Created 4 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
« no previous file with comments | « no previous file | src/flag-definitions.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 "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
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
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698