OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void Optimize(JSFunction* function, const char* reason); | 68 void Optimize(JSFunction* function, const char* reason); |
69 | 69 |
70 void ClearSampleBuffer(); | 70 void ClearSampleBuffer(); |
71 | 71 |
72 void ClearSampleBufferNewSpaceEntries(); | 72 void ClearSampleBufferNewSpaceEntries(); |
73 | 73 |
74 int LookupSample(JSFunction* function); | 74 int LookupSample(JSFunction* function); |
75 | 75 |
76 void AddSample(JSFunction* function, int weight); | 76 void AddSample(JSFunction* function, int weight); |
77 | 77 |
| 78 bool CodeSizeOKForOSR(Code* shared_code); |
| 79 |
78 Isolate* isolate_; | 80 Isolate* isolate_; |
79 | 81 |
80 int sampler_threshold_; | 82 int sampler_threshold_; |
81 int sampler_threshold_size_factor_; | 83 int sampler_threshold_size_factor_; |
82 int sampler_ticks_until_threshold_adjustment_; | 84 int sampler_ticks_until_threshold_adjustment_; |
83 | 85 |
84 Object* sampler_window_[kSamplerWindowSize]; | 86 Object* sampler_window_[kSamplerWindowSize]; |
85 int sampler_window_position_; | 87 int sampler_window_position_; |
86 int sampler_window_weight_[kSamplerWindowSize]; | 88 int sampler_window_weight_[kSamplerWindowSize]; |
87 | 89 |
88 bool any_ic_changed_; | 90 bool any_ic_changed_; |
89 bool code_generated_; | 91 bool code_generated_; |
90 }; | 92 }; |
91 | 93 |
92 } } // namespace v8::internal | 94 } } // namespace v8::internal |
93 | 95 |
94 #endif // V8_RUNTIME_PROFILER_H_ | 96 #endif // V8_RUNTIME_PROFILER_H_ |
OLD | NEW |