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

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

Issue 2121273002: Move compile and parse trace events to a separate category. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 5 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.cc ('k') | src/interpreter/interpreter.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 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 14 matching lines...) Expand all
25 namespace internal { 25 namespace internal {
26 26
27 #define __ ACCESS_MASM(masm()) 27 #define __ ACCESS_MASM(masm())
28 28
29 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 29 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
30 Isolate* isolate = info->isolate(); 30 Isolate* isolate = info->isolate();
31 31
32 RuntimeCallTimerScope runtimeTimer(isolate, 32 RuntimeCallTimerScope runtimeTimer(isolate,
33 &RuntimeCallStats::CompileFullCode); 33 &RuntimeCallStats::CompileFullCode);
34 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); 34 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
35 TRACE_EVENT0("v8", "V8.CompileFullCode"); 35 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode");
36 36
37 Handle<Script> script = info->script(); 37 Handle<Script> script = info->script();
38 if (!script->IsUndefined(isolate) && 38 if (!script->IsUndefined(isolate) &&
39 !script->source()->IsUndefined(isolate)) { 39 !script->source()->IsUndefined(isolate)) {
40 int len = String::cast(script->source())->length(); 40 int len = String::cast(script->source())->length();
41 isolate->counters()->total_full_codegen_source_size()->Increment(len); 41 isolate->counters()->total_full_codegen_source_size()->Increment(len);
42 } 42 }
43 CodeGenerator::MakeCodePrologue(info, "full"); 43 CodeGenerator::MakeCodePrologue(info, "full");
44 const int kInitialBufferSize = 4 * KB; 44 const int kInitialBufferSize = 4 * KB;
45 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize, 45 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize,
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 return var->scope()->is_nonlinear() || 1967 return var->scope()->is_nonlinear() ||
1968 var->initializer_position() >= proxy->position(); 1968 var->initializer_position() >= proxy->position();
1969 } 1969 }
1970 1970
1971 1971
1972 #undef __ 1972 #undef __
1973 1973
1974 1974
1975 } // namespace internal 1975 } // namespace internal
1976 } // namespace v8 1976 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698