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

Side by Side Diff: src/runtime-profiler.cc

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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/rewriter.cc ('k') | src/runtime/runtime-internal.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/runtime-profiler.h" 5 #include "src/runtime-profiler.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/ast/scopeinfo.h"
8 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
9 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 11 #include "src/code-stubs.h"
11 #include "src/compilation-cache.h" 12 #include "src/compilation-cache.h"
12 #include "src/execution.h" 13 #include "src/execution.h"
13 #include "src/frames-inl.h" 14 #include "src/frames-inl.h"
14 #include "src/full-codegen/full-codegen.h" 15 #include "src/full-codegen/full-codegen.h"
15 #include "src/global-handles.h" 16 #include "src/global-handles.h"
16 #include "src/scopeinfo.h"
17 17
18 namespace v8 { 18 namespace v8 {
19 namespace internal { 19 namespace internal {
20 20
21 21
22 // Number of times a function has to be seen on the stack before it is 22 // Number of times a function has to be seen on the stack before it is
23 // optimized. 23 // optimized.
24 static const int kProfilerTicksBeforeOptimization = 2; 24 static const int kProfilerTicksBeforeOptimization = 2;
25 // If the function optimization was disabled due to high deoptimization count, 25 // If the function optimization was disabled due to high deoptimization count,
26 // but the function is hot and has been seen on the stack this number of times, 26 // but the function is hot and has been seen on the stack this number of times,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } else { 255 } else {
256 shared_code->set_profiler_ticks(ticks + 1); 256 shared_code->set_profiler_ticks(ticks + 1);
257 } 257 }
258 } 258 }
259 any_ic_changed_ = false; 259 any_ic_changed_ = false;
260 } 260 }
261 261
262 262
263 } // namespace internal 263 } // namespace internal
264 } // namespace v8 264 } // namespace v8
OLDNEW
« no previous file with comments | « src/rewriter.cc ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698