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

Side by Side Diff: src/compiler.h

Issue 7033020: When inlining fails, disable optimization of the proper function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 | « no previous file | src/compiler.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void EnableDeoptimizationSupport() { 137 void EnableDeoptimizationSupport() {
138 ASSERT(IsOptimizable()); 138 ASSERT(IsOptimizable());
139 supports_deoptimization_ = true; 139 supports_deoptimization_ = true;
140 } 140 }
141 141
142 // Determine whether or not we can adaptively optimize. 142 // Determine whether or not we can adaptively optimize.
143 bool AllowOptimize() { 143 bool AllowOptimize() {
144 return V8::UseCrankshaft() && !closure_.is_null(); 144 return V8::UseCrankshaft() && !closure_.is_null();
145 } 145 }
146 146
147 // Disable all optimization attempts of this info for the rest of the
148 // current compilation pipeline.
149 void AbortOptimization();
150
147 private: 151 private:
148 Isolate* isolate_; 152 Isolate* isolate_;
149 153
150 // Compilation mode. 154 // Compilation mode.
151 // BASE is generated by the full codegen, optionally prepared for bailouts. 155 // BASE is generated by the full codegen, optionally prepared for bailouts.
152 // OPTIMIZE is optimized code generated by the Hydrogen-based backend. 156 // OPTIMIZE is optimized code generated by the Hydrogen-based backend.
153 // NONOPT is generated by the full codegen or the classic backend 157 // NONOPT is generated by the full codegen or the classic backend
154 // and is not prepared for recompilation/bailouts. These functions 158 // and is not prepared for recompilation/bailouts. These functions
155 // are never recompiled. 159 // are never recompiled.
156 enum Mode { 160 enum Mode {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 isolate->frame_element_constant_list()->Clear(); 301 isolate->frame_element_constant_list()->Clear();
298 isolate->result_constant_list()->Clear(); 302 isolate->result_constant_list()->Clear();
299 } 303 }
300 } 304 }
301 }; 305 };
302 306
303 307
304 } } // namespace v8::internal 308 } } // namespace v8::internal
305 309
306 #endif // V8_COMPILER_H_ 310 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698