| 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 7667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7678 inline BailoutReason disable_optimization_reason(); | 7678 inline BailoutReason disable_optimization_reason(); |
| 7679 | 7679 |
| 7680 // Lookup the bailout ID and DCHECK that it exists in the non-optimized | 7680 // Lookup the bailout ID and DCHECK that it exists in the non-optimized |
| 7681 // code, returns whether it asserted (i.e., always true if assertions are | 7681 // code, returns whether it asserted (i.e., always true if assertions are |
| 7682 // disabled). | 7682 // disabled). |
| 7683 bool VerifyBailoutId(BailoutId id); | 7683 bool VerifyBailoutId(BailoutId id); |
| 7684 | 7684 |
| 7685 // [source code]: Source code for the function. | 7685 // [source code]: Source code for the function. |
| 7686 bool HasSourceCode() const; | 7686 bool HasSourceCode() const; |
| 7687 Handle<Object> GetSourceCode(); | 7687 Handle<Object> GetSourceCode(); |
| 7688 Handle<Object> GetSourceCodeHarmony(); |
| 7688 | 7689 |
| 7689 // Number of times the function was optimized. | 7690 // Number of times the function was optimized. |
| 7690 inline int opt_count(); | 7691 inline int opt_count(); |
| 7691 inline void set_opt_count(int opt_count); | 7692 inline void set_opt_count(int opt_count); |
| 7692 | 7693 |
| 7693 // Number of times the function was deoptimized. | 7694 // Number of times the function was deoptimized. |
| 7694 inline void set_deopt_count(int value); | 7695 inline void set_deopt_count(int value); |
| 7695 inline int deopt_count(); | 7696 inline int deopt_count(); |
| 7696 inline void increment_deopt_count(); | 7697 inline void increment_deopt_count(); |
| 7697 | 7698 |
| (...skipping 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11743 } | 11744 } |
| 11744 return value; | 11745 return value; |
| 11745 } | 11746 } |
| 11746 }; | 11747 }; |
| 11747 | 11748 |
| 11748 | 11749 |
| 11749 } // NOLINT, false-positive due to second-order macros. | 11750 } // NOLINT, false-positive due to second-order macros. |
| 11750 } // NOLINT, false-positive due to second-order macros. | 11751 } // NOLINT, false-positive due to second-order macros. |
| 11751 | 11752 |
| 11752 #endif // V8_OBJECTS_H_ | 11753 #endif // V8_OBJECTS_H_ |
| OLD | NEW |