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

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

Issue 17030008: Inhibit OSR for big functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/runtime-profiler.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 // 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
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_
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698