OLD | NEW |
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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/runtime-profiler.h" | 7 #include "src/runtime-profiler.h" |
8 | 8 |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 #include "src/base/platform/platform.h" |
10 #include "src/bootstrapper.h" | 11 #include "src/bootstrapper.h" |
11 #include "src/code-stubs.h" | 12 #include "src/code-stubs.h" |
12 #include "src/compilation-cache.h" | 13 #include "src/compilation-cache.h" |
13 #include "src/execution.h" | 14 #include "src/execution.h" |
14 #include "src/full-codegen.h" | 15 #include "src/full-codegen.h" |
15 #include "src/global-handles.h" | 16 #include "src/global-handles.h" |
16 #include "src/isolate-inl.h" | 17 #include "src/isolate-inl.h" |
17 #include "src/mark-compact.h" | 18 #include "src/mark-compact.h" |
18 #include "src/platform.h" | |
19 #include "src/scopeinfo.h" | 19 #include "src/scopeinfo.h" |
20 | 20 |
21 namespace v8 { | 21 namespace v8 { |
22 namespace internal { | 22 namespace internal { |
23 | 23 |
24 | 24 |
25 // Number of times a function has to be seen on the stack before it is | 25 // Number of times a function has to be seen on the stack before it is |
26 // optimized. | 26 // optimized. |
27 static const int kProfilerTicksBeforeOptimization = 2; | 27 static const int kProfilerTicksBeforeOptimization = 2; |
28 // If the function optimization was disabled due to high deoptimization count, | 28 // If the function optimization was disabled due to high deoptimization count, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 Optimize(function, "small function"); | 251 Optimize(function, "small function"); |
252 } else { | 252 } else { |
253 shared_code->set_profiler_ticks(ticks + 1); | 253 shared_code->set_profiler_ticks(ticks + 1); |
254 } | 254 } |
255 } | 255 } |
256 any_ic_changed_ = false; | 256 any_ic_changed_ = false; |
257 } | 257 } |
258 | 258 |
259 | 259 |
260 } } // namespace v8::internal | 260 } } // namespace v8::internal |
OLD | NEW |