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

Side by Side Diff: src/objects.h

Issue 668143003: Move BailoutReason and flags computation to post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 years, 1 month 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/log.cc ('k') | src/objects.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 // 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 6877 matching lines...) Expand 10 before | Expand all | Expand 10 after
6888 // deoptimization. 6888 // deoptimization.
6889 inline bool has_deoptimization_support(); 6889 inline bool has_deoptimization_support();
6890 6890
6891 // Enable deoptimization support through recompiled code. 6891 // Enable deoptimization support through recompiled code.
6892 void EnableDeoptimizationSupport(Code* recompiled); 6892 void EnableDeoptimizationSupport(Code* recompiled);
6893 6893
6894 // Disable (further) attempted optimization of all functions sharing this 6894 // Disable (further) attempted optimization of all functions sharing this
6895 // shared function info. 6895 // shared function info.
6896 void DisableOptimization(BailoutReason reason); 6896 void DisableOptimization(BailoutReason reason);
6897 6897
6898 inline BailoutReason DisableOptimizationReason(); 6898 inline BailoutReason disable_optimization_reason();
6899 6899
6900 // Lookup the bailout ID and DCHECK that it exists in the non-optimized 6900 // Lookup the bailout ID and DCHECK that it exists in the non-optimized
6901 // code, returns whether it asserted (i.e., always true if assertions are 6901 // code, returns whether it asserted (i.e., always true if assertions are
6902 // disabled). 6902 // disabled).
6903 bool VerifyBailoutId(BailoutId id); 6903 bool VerifyBailoutId(BailoutId id);
6904 6904
6905 // [source code]: Source code for the function. 6905 // [source code]: Source code for the function.
6906 bool HasSourceCode() const; 6906 bool HasSourceCode() const;
6907 Handle<Object> GetSourceCode(); 6907 Handle<Object> GetSourceCode();
6908 6908
(...skipping 14 matching lines...) Expand all
6923 inline void TryReenableOptimization(); 6923 inline void TryReenableOptimization();
6924 6924
6925 // Stores deopt_count, opt_reenable_tries and ic_age as bit-fields. 6925 // Stores deopt_count, opt_reenable_tries and ic_age as bit-fields.
6926 inline void set_counters(int value); 6926 inline void set_counters(int value);
6927 inline int counters() const; 6927 inline int counters() const;
6928 6928
6929 // Stores opt_count and bailout_reason as bit-fields. 6929 // Stores opt_count and bailout_reason as bit-fields.
6930 inline void set_opt_count_and_bailout_reason(int value); 6930 inline void set_opt_count_and_bailout_reason(int value);
6931 inline int opt_count_and_bailout_reason() const; 6931 inline int opt_count_and_bailout_reason() const;
6932 6932
6933 void set_bailout_reason(BailoutReason reason) { 6933 void set_disable_optimization_reason(BailoutReason reason) {
6934 set_opt_count_and_bailout_reason( 6934 set_opt_count_and_bailout_reason(
6935 DisabledOptimizationReasonBits::update(opt_count_and_bailout_reason(), 6935 DisabledOptimizationReasonBits::update(opt_count_and_bailout_reason(),
6936 reason)); 6936 reason));
6937 } 6937 }
6938 6938
6939 // Check whether or not this function is inlineable. 6939 // Check whether or not this function is inlineable.
6940 bool IsInlineable(); 6940 bool IsInlineable();
6941 6941
6942 // Source size of this function. 6942 // Source size of this function.
6943 int SourceSize(); 6943 int SourceSize();
(...skipping 4023 matching lines...) Expand 10 before | Expand all | Expand 10 after
10967 } else { 10967 } else {
10968 value &= ~(1 << bit_position); 10968 value &= ~(1 << bit_position);
10969 } 10969 }
10970 return value; 10970 return value;
10971 } 10971 }
10972 }; 10972 };
10973 10973
10974 } } // namespace v8::internal 10974 } } // namespace v8::internal
10975 10975
10976 #endif // V8_OBJECTS_H_ 10976 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698