| 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 | |
| 80 Isolate* isolate_; | 78 Isolate* isolate_; |
| 81 | 79 |
| 82 int sampler_threshold_; | 80 int sampler_threshold_; |
| 83 int sampler_threshold_size_factor_; | 81 int sampler_threshold_size_factor_; |
| 84 int sampler_ticks_until_threshold_adjustment_; | 82 int sampler_ticks_until_threshold_adjustment_; |
| 85 | 83 |
| 86 Object* sampler_window_[kSamplerWindowSize]; | 84 Object* sampler_window_[kSamplerWindowSize]; |
| 87 int sampler_window_position_; | 85 int sampler_window_position_; |
| 88 int sampler_window_weight_[kSamplerWindowSize]; | 86 int sampler_window_weight_[kSamplerWindowSize]; |
| 89 | 87 |
| 90 bool any_ic_changed_; | 88 bool any_ic_changed_; |
| 91 bool code_generated_; | 89 bool code_generated_; |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } } // namespace v8::internal | 92 } } // namespace v8::internal |
| 95 | 93 |
| 96 #endif // V8_RUNTIME_PROFILER_H_ | 94 #endif // V8_RUNTIME_PROFILER_H_ |
| OLD | NEW |