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

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

Issue 1707563002: Split the TRACE_EVENTs from the LOG/HistogramTimers/TimerEvents functionality. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/deoptimizer.cc ('k') | src/heap/heap.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.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.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"
11 #include "src/ast/scopes.h" 11 #include "src/ast/scopes.h"
12 #include "src/code-factory.h" 12 #include "src/code-factory.h"
13 #include "src/codegen.h" 13 #include "src/codegen.h"
14 #include "src/compiler.h" 14 #include "src/compiler.h"
15 #include "src/debug/debug.h" 15 #include "src/debug/debug.h"
16 #include "src/debug/liveedit.h" 16 #include "src/debug/liveedit.h"
17 #include "src/isolate-inl.h" 17 #include "src/isolate-inl.h"
18 #include "src/macro-assembler.h" 18 #include "src/macro-assembler.h"
19 #include "src/snapshot/snapshot.h" 19 #include "src/snapshot/snapshot.h"
20 #include "src/tracing/trace-event.h"
20 21
21 namespace v8 { 22 namespace v8 {
22 namespace internal { 23 namespace internal {
23 24
24 #define __ ACCESS_MASM(masm()) 25 #define __ ACCESS_MASM(masm())
25 26
26 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 27 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
27 Isolate* isolate = info->isolate(); 28 Isolate* isolate = info->isolate();
28 29
29 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); 30 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
31 TRACE_EVENT0("v8", "V8.CompileFullCode");
30 32
31 // Ensure that the feedback vector is large enough. 33 // Ensure that the feedback vector is large enough.
32 info->EnsureFeedbackVector(); 34 info->EnsureFeedbackVector();
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");
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1794 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1793 var->initializer_position() >= proxy->position(); 1795 var->initializer_position() >= proxy->position();
1794 } 1796 }
1795 1797
1796 1798
1797 #undef __ 1799 #undef __
1798 1800
1799 1801
1800 } // namespace internal 1802 } // namespace internal
1801 } // namespace v8 1803 } // namespace v8
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698