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

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

Issue 2301743002: [Tracing] Re-add trace-events used by metrics accidentally removed. (Closed)
Patch Set: Created 4 years, 3 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/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/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 // static 51 // static
52 bool FullCodeGenerator::MakeCode(CompilationInfo* info, uintptr_t stack_limit) { 52 bool FullCodeGenerator::MakeCode(CompilationInfo* info, uintptr_t stack_limit) {
53 Isolate* isolate = info->isolate(); 53 Isolate* isolate = info->isolate();
54 54
55 DCHECK(!FLAG_minimal); 55 DCHECK(!FLAG_minimal);
56 RuntimeCallTimerScope runtimeTimer(isolate, 56 RuntimeCallTimerScope runtimeTimer(isolate,
57 &RuntimeCallStats::CompileFullCode); 57 &RuntimeCallStats::CompileFullCode);
58 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); 58 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
59 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileFullCode");
59 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( 60 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED(
60 isolate, &tracing::TraceEventStatsTable::CompileFullCode); 61 isolate, &tracing::TraceEventStatsTable::CompileFullCode);
61 62
62 Handle<Script> script = info->script(); 63 Handle<Script> script = info->script();
63 if (!script->IsUndefined(isolate) && 64 if (!script->IsUndefined(isolate) &&
64 !script->source()->IsUndefined(isolate)) { 65 !script->source()->IsUndefined(isolate)) {
65 int len = String::cast(script->source())->length(); 66 int len = String::cast(script->source())->length();
66 isolate->counters()->total_full_codegen_source_size()->Increment(len); 67 isolate->counters()->total_full_codegen_source_size()->Increment(len);
67 } 68 }
68 CodeGenerator::MakeCodePrologue(info, "full"); 69 CodeGenerator::MakeCodePrologue(info, "full");
(...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 return var->scope()->is_nonlinear() || 1965 return var->scope()->is_nonlinear() ||
1965 var->initializer_position() >= proxy->position(); 1966 var->initializer_position() >= proxy->position();
1966 } 1967 }
1967 1968
1968 1969
1969 #undef __ 1970 #undef __
1970 1971
1971 1972
1972 } // namespace internal 1973 } // namespace internal
1973 } // namespace v8 1974 } // namespace v8
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698