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

Side by Side Diff: src/interpreter/interpreter.cc

Issue 2221853002: Revert of [Tracing] Embed V8 runtime call stats into tracing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/ic/ic.cc ('k') | src/isolate.h » ('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/interpreter/interpreter.h" 5 #include "src/interpreter/interpreter.h"
6 6
7 #include <fstream> 7 #include <fstream>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // static 130 // static
131 int Interpreter::InterruptBudget() { 131 int Interpreter::InterruptBudget() {
132 return FLAG_interrupt_budget * kCodeSizeMultiplier; 132 return FLAG_interrupt_budget * kCodeSizeMultiplier;
133 } 133 }
134 134
135 bool Interpreter::MakeBytecode(CompilationInfo* info) { 135 bool Interpreter::MakeBytecode(CompilationInfo* info) {
136 RuntimeCallTimerScope runtimeTimer(info->isolate(), 136 RuntimeCallTimerScope runtimeTimer(info->isolate(),
137 &RuntimeCallStats::CompileIgnition); 137 &RuntimeCallStats::CompileIgnition);
138 TimerEventScope<TimerEventCompileIgnition> timer(info->isolate()); 138 TimerEventScope<TimerEventCompileIgnition> timer(info->isolate());
139 TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_SCOPED( 139 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.compile"), "V8.CompileIgnition");
140 info->isolate(), &tracing::TraceEventStatsTable::CompileIgnition);
141 140
142 if (FLAG_print_bytecode || FLAG_print_ast) { 141 if (FLAG_print_bytecode || FLAG_print_ast) {
143 OFStream os(stdout); 142 OFStream os(stdout);
144 std::unique_ptr<char[]> name = info->GetDebugName(); 143 std::unique_ptr<char[]> name = info->GetDebugName();
145 os << "[generating bytecode for function: " << info->GetDebugName().get() 144 os << "[generating bytecode for function: " << info->GetDebugName().get()
146 << "]" << std::endl 145 << "]" << std::endl
147 << std::flush; 146 << std::flush;
148 } 147 }
149 148
150 #ifdef DEBUG 149 #ifdef DEBUG
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2169 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, 2168 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset,
2170 __ SmiTag(new_state)); 2169 __ SmiTag(new_state));
2171 __ SetAccumulator(old_state); 2170 __ SetAccumulator(old_state);
2172 2171
2173 __ Dispatch(); 2172 __ Dispatch();
2174 } 2173 }
2175 2174
2176 } // namespace interpreter 2175 } // namespace interpreter
2177 } // namespace internal 2176 } // namespace internal
2178 } // namespace v8 2177 } // namespace v8
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698