| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 09290af06aa7023f3da35cb95f735427f4b24834..50e81ab1e9169a6e31bb823f07bd11bdea731e69 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -30,7 +30,6 @@
|
| #include "src/code-stubs.h"
|
| #include "src/factory.h"
|
| #include "src/log-inl.h"
|
| -#include "src/profiler/cpu-profiler.h"
|
|
|
| #include "src/wasm/ast-decoder.h"
|
| #include "src/wasm/wasm-module.h"
|
| @@ -2945,7 +2944,7 @@ void WasmGraphBuilder::SetSourcePosition(Node* node,
|
| source_position_table_->SetSourcePosition(node, pos);
|
| }
|
|
|
| -static void RecordFunctionCompilation(Logger::LogEventsAndTags tag,
|
| +static void RecordFunctionCompilation(CodeEventListener::LogEventsAndTags tag,
|
| CompilationInfo* info,
|
| const char* message, uint32_t index,
|
| wasm::WasmName func_name) {
|
| @@ -3048,7 +3047,7 @@ Handle<JSFunction> CompileJSToWasmWrapper(
|
| }
|
|
|
| RecordFunctionCompilation(
|
| - Logger::FUNCTION_TAG, &info, "js-to-wasm", index,
|
| + CodeEventListener::FUNCTION_TAG, &info, "js-to-wasm", index,
|
| module->module->GetName(func->name_offset, func->name_length));
|
| // Set the JSFunction's machine code.
|
| function->set_code(*code);
|
| @@ -3121,8 +3120,8 @@ Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module,
|
| buffer.Dispose();
|
| }
|
|
|
| - RecordFunctionCompilation(Logger::FUNCTION_TAG, &info, "wasm-to-js", 0,
|
| - module_name);
|
| + RecordFunctionCompilation(CodeEventListener::FUNCTION_TAG, &info,
|
| + "wasm-to-js", 0, module_name);
|
| }
|
| return code;
|
| }
|
| @@ -3286,7 +3285,8 @@ Handle<Code> WasmCompilationUnit::FinishCompilation() {
|
| DCHECK(!code.is_null());
|
|
|
| RecordFunctionCompilation(
|
| - Logger::FUNCTION_TAG, &info_, "WASM_function", function_->func_index,
|
| + CodeEventListener::FUNCTION_TAG, &info_, "WASM_function",
|
| + function_->func_index,
|
| module_env_->module->GetName(function_->name_offset,
|
| function_->name_length));
|
|
|
|
|