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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1923893002: [counters] Annotate v8 with more runtime call counters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing few more things Created 4 years, 7 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 10 matching lines...) Expand all
21 #include "src/tracing/trace-event.h" 21 #include "src/tracing/trace-event.h"
22 22
23 namespace v8 { 23 namespace v8 {
24 namespace internal { 24 namespace internal {
25 25
26 #define __ ACCESS_MASM(masm()) 26 #define __ ACCESS_MASM(masm())
27 27
28 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 28 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
29 Isolate* isolate = info->isolate(); 29 Isolate* isolate = info->isolate();
30 30
31 RuntimeCallStats* stats = isolate->counters()->runtime_call_stats();
32 RuntimeCallTimerScope runtimeTimer(isolate, &stats->CompileFullCode);
31 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); 33 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
32 TRACE_EVENT0("v8", "V8.CompileFullCode"); 34 TRACE_EVENT0("v8", "V8.CompileFullCode");
33 35
34 Handle<Script> script = info->script(); 36 Handle<Script> script = info->script();
35 if (!script->IsUndefined() && !script->source()->IsUndefined()) { 37 if (!script->IsUndefined() && !script->source()->IsUndefined()) {
36 int len = String::cast(script->source())->length(); 38 int len = String::cast(script->source())->length();
37 isolate->counters()->total_full_codegen_source_size()->Increment(len); 39 isolate->counters()->total_full_codegen_source_size()->Increment(len);
38 } 40 }
39 CodeGenerator::MakeCodePrologue(info, "full"); 41 CodeGenerator::MakeCodePrologue(info, "full");
40 const int kInitialBufferSize = 4 * KB; 42 const int kInitialBufferSize = 4 * KB;
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 return var->scope()->is_nonlinear() || 1937 return var->scope()->is_nonlinear() ||
1936 var->initializer_position() >= proxy->position(); 1938 var->initializer_position() >= proxy->position();
1937 } 1939 }
1938 1940
1939 1941
1940 #undef __ 1942 #undef __
1941 1943
1942 1944
1943 } // namespace internal 1945 } // namespace internal
1944 } // namespace v8 1946 } // namespace v8
OLDNEW
« src/api.cc ('K') | « src/flag-definitions.h ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698