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

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

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 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 | « src/compiler/code-generator.cc ('k') | src/crankshaft/lithium.cc » ('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/platform.h" 9 #include "src/base/platform/platform.h"
10 10
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 isolate->cpu_profiler()->is_profiling()) { 1975 isolate->cpu_profiler()->is_profiling()) {
1976 ScopedVector<char> buffer(128); 1976 ScopedVector<char> buffer(128);
1977 SNPrintF(buffer, "%s#%d:%s", message, index, func_name); 1977 SNPrintF(buffer, "%s#%d:%s", message, index, func_name);
1978 Handle<String> name_str = 1978 Handle<String> name_str =
1979 isolate->factory()->NewStringFromAsciiChecked(buffer.start()); 1979 isolate->factory()->NewStringFromAsciiChecked(buffer.start());
1980 Handle<String> script_str = 1980 Handle<String> script_str =
1981 isolate->factory()->NewStringFromAsciiChecked("(WASM)"); 1981 isolate->factory()->NewStringFromAsciiChecked("(WASM)");
1982 Handle<Code> code = info->code(); 1982 Handle<Code> code = info->code();
1983 Handle<SharedFunctionInfo> shared = 1983 Handle<SharedFunctionInfo> shared =
1984 isolate->factory()->NewSharedFunctionInfo(name_str, code, false); 1984 isolate->factory()->NewSharedFunctionInfo(name_str, code, false);
1985 PROFILE(isolate, 1985 PROFILE(isolate, CodeCreateEvent(tag, AbstractCode::cast(*code), *shared,
1986 CodeCreateEvent(tag, *code, *shared, info, *script_str, 0, 0)); 1986 info, *script_str, 0, 0));
1987 } 1987 }
1988 } 1988 }
1989 1989
1990 Handle<JSFunction> CompileJSToWasmWrapper( 1990 Handle<JSFunction> CompileJSToWasmWrapper(
1991 Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name, 1991 Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name,
1992 Handle<Code> wasm_code, Handle<JSObject> module_object, uint32_t index) { 1992 Handle<Code> wasm_code, Handle<JSObject> module_object, uint32_t index) {
1993 wasm::WasmFunction* func = &module->module->functions->at(index); 1993 wasm::WasmFunction* func = &module->module->functions->at(index);
1994 1994
1995 //---------------------------------------------------------------------------- 1995 //----------------------------------------------------------------------------
1996 // Create the JSFunction object. 1996 // Create the JSFunction object.
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 module_env->module->GetName(function.name_offset)); 2247 module_env->module->GetName(function.name_offset));
2248 } 2248 }
2249 2249
2250 return code; 2250 return code;
2251 } 2251 }
2252 2252
2253 2253
2254 } // namespace compiler 2254 } // namespace compiler
2255 } // namespace internal 2255 } // namespace internal
2256 } // namespace v8 2256 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/crankshaft/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698