OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 7729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7740 inline BailoutReason disable_optimization_reason(); | 7740 inline BailoutReason disable_optimization_reason(); |
7741 | 7741 |
7742 // Lookup the bailout ID and DCHECK that it exists in the non-optimized | 7742 // Lookup the bailout ID and DCHECK that it exists in the non-optimized |
7743 // code, returns whether it asserted (i.e., always true if assertions are | 7743 // code, returns whether it asserted (i.e., always true if assertions are |
7744 // disabled). | 7744 // disabled). |
7745 bool VerifyBailoutId(BailoutId id); | 7745 bool VerifyBailoutId(BailoutId id); |
7746 | 7746 |
7747 // [source code]: Source code for the function. | 7747 // [source code]: Source code for the function. |
7748 bool HasSourceCode() const; | 7748 bool HasSourceCode() const; |
7749 Handle<Object> GetSourceCode(); | 7749 Handle<Object> GetSourceCode(); |
| 7750 Handle<Object> GetSourceCodeHarmony(); |
7750 | 7751 |
7751 // Number of times the function was optimized. | 7752 // Number of times the function was optimized. |
7752 inline int opt_count(); | 7753 inline int opt_count(); |
7753 inline void set_opt_count(int opt_count); | 7754 inline void set_opt_count(int opt_count); |
7754 | 7755 |
7755 // Number of times the function was deoptimized. | 7756 // Number of times the function was deoptimized. |
7756 inline void set_deopt_count(int value); | 7757 inline void set_deopt_count(int value); |
7757 inline int deopt_count(); | 7758 inline int deopt_count(); |
7758 inline void increment_deopt_count(); | 7759 inline void increment_deopt_count(); |
7759 | 7760 |
(...skipping 4171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11931 } | 11932 } |
11932 return value; | 11933 return value; |
11933 } | 11934 } |
11934 }; | 11935 }; |
11935 | 11936 |
11936 | 11937 |
11937 } // NOLINT, false-positive due to second-order macros. | 11938 } // NOLINT, false-positive due to second-order macros. |
11938 } // NOLINT, false-positive due to second-order macros. | 11939 } // NOLINT, false-positive due to second-order macros. |
11939 | 11940 |
11940 #endif // V8_OBJECTS_H_ | 11941 #endif // V8_OBJECTS_H_ |
OLD | NEW |