From fc766889a9bd686e3d97f5537e673005ad79ca6a Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Tue, 20 Mar 2018 15:21:14 +0100 Subject: [PATCH] [wasm] Avoid allocating SharedFunctionInfo for logging. R=herhut@chromium.org Change-Id: I6fd915a66cd4993a8934e09575464cce2a17d404 Reviewed-on: https://chromium-review.googlesource.com/970475 Reviewed-by: Clemens Hammacher Commit-Queue: Michael Starzinger Cr-Commit-Position: refs/heads/master@{#52110} --- src/compiler/wasm-compiler.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc index 931d5d0109..5dae79c2c0 100644 --- a/src/compiler/wasm-compiler.cc +++ b/src/compiler/wasm-compiler.cc @@ -4619,12 +4619,7 @@ void RecordFunctionCompilation(CodeEventListener::LogEventsAndTags tag, va_end(arguments); Handle name_str = isolate->factory()->NewStringFromAsciiChecked(buffer.start()); - Handle script_str = - isolate->factory()->NewStringFromAsciiChecked("(wasm)"); - Handle shared = - isolate->factory()->NewSharedFunctionInfo(name_str, code, false); - PROFILE(isolate, CodeCreateEvent(tag, AbstractCode::cast(*code), *shared, - *script_str, 0, 0)); + PROFILE(isolate, CodeCreateEvent(tag, AbstractCode::cast(*code), *name_str)); } } // namespace