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 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 7472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7483 // Get the abstract code associated with the function, which will either be | 7483 // Get the abstract code associated with the function, which will either be |
7484 // a Code object or a BytecodeArray. | 7484 // a Code object or a BytecodeArray. |
7485 inline AbstractCode* abstract_code(); | 7485 inline AbstractCode* abstract_code(); |
7486 | 7486 |
7487 // Tells whether this function inlines the given shared function info. | 7487 // Tells whether this function inlines the given shared function info. |
7488 bool Inlines(SharedFunctionInfo* candidate); | 7488 bool Inlines(SharedFunctionInfo* candidate); |
7489 | 7489 |
7490 // Tells whether or not this function has been optimized. | 7490 // Tells whether or not this function has been optimized. |
7491 inline bool IsOptimized(); | 7491 inline bool IsOptimized(); |
7492 | 7492 |
7493 // Mark this function for lazy recompilation. The function will be | 7493 // Mark this function for lazy recompilation. The function will be recompiled |
7494 // recompiled the next time it is executed. | 7494 // the next time it is executed. |
| 7495 void MarkForBaseline(); |
7495 void MarkForOptimization(); | 7496 void MarkForOptimization(); |
7496 void AttemptConcurrentOptimization(); | 7497 void AttemptConcurrentOptimization(); |
7497 | 7498 |
7498 // Tells whether or not the function is already marked for lazy | 7499 // Tells whether or not the function is already marked for lazy recompilation. |
7499 // recompilation. | 7500 inline bool IsMarkedForBaseline(); |
7500 inline bool IsMarkedForOptimization(); | 7501 inline bool IsMarkedForOptimization(); |
7501 inline bool IsMarkedForConcurrentOptimization(); | 7502 inline bool IsMarkedForConcurrentOptimization(); |
7502 | 7503 |
7503 // Tells whether or not the function is on the concurrent recompilation queue. | 7504 // Tells whether or not the function is on the concurrent recompilation queue. |
7504 inline bool IsInOptimizationQueue(); | 7505 inline bool IsInOptimizationQueue(); |
7505 | 7506 |
7506 // Completes inobject slack tracking on initial map if it is active. | 7507 // Completes inobject slack tracking on initial map if it is active. |
7507 inline void CompleteInobjectSlackTrackingIfActive(); | 7508 inline void CompleteInobjectSlackTrackingIfActive(); |
7508 | 7509 |
7509 // [literals]: Fixed array holding the materialized literals. | 7510 // [literals]: Fixed array holding the materialized literals. |
(...skipping 3287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10797 } | 10798 } |
10798 return value; | 10799 return value; |
10799 } | 10800 } |
10800 }; | 10801 }; |
10801 | 10802 |
10802 | 10803 |
10803 } // NOLINT, false-positive due to second-order macros. | 10804 } // NOLINT, false-positive due to second-order macros. |
10804 } // NOLINT, false-positive due to second-order macros. | 10805 } // NOLINT, false-positive due to second-order macros. |
10805 | 10806 |
10806 #endif // V8_OBJECTS_H_ | 10807 #endif // V8_OBJECTS_H_ |
OLD | NEW |