OLD | NEW |
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 7570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7581 | 7581 |
7582 // Tells whether this function is defined in an extension script. | 7582 // Tells whether this function is defined in an extension script. |
7583 inline bool IsFromExtensionScript(); | 7583 inline bool IsFromExtensionScript(); |
7584 | 7584 |
7585 // Tells whether or not the function needs arguments adaption. | 7585 // Tells whether or not the function needs arguments adaption. |
7586 inline bool NeedsArgumentsAdaption(); | 7586 inline bool NeedsArgumentsAdaption(); |
7587 | 7587 |
7588 // Tells whether or not this function has been optimized. | 7588 // Tells whether or not this function has been optimized. |
7589 inline bool IsOptimized(); | 7589 inline bool IsOptimized(); |
7590 | 7590 |
| 7591 // Tells whether or not this function can be optimized. |
| 7592 inline bool IsOptimizable(); |
| 7593 |
7591 // Mark this function for lazy recompilation. The function will be | 7594 // Mark this function for lazy recompilation. The function will be |
7592 // recompiled the next time it is executed. | 7595 // recompiled the next time it is executed. |
7593 void MarkForOptimization(); | 7596 void MarkForOptimization(); |
7594 void AttemptConcurrentOptimization(); | 7597 void AttemptConcurrentOptimization(); |
7595 | 7598 |
7596 // Tells whether or not the function is already marked for lazy | 7599 // Tells whether or not the function is already marked for lazy |
7597 // recompilation. | 7600 // recompilation. |
7598 inline bool IsMarkedForOptimization(); | 7601 inline bool IsMarkedForOptimization(); |
7599 inline bool IsMarkedForConcurrentOptimization(); | 7602 inline bool IsMarkedForConcurrentOptimization(); |
7600 | 7603 |
(...skipping 3521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11122 } else { | 11125 } else { |
11123 value &= ~(1 << bit_position); | 11126 value &= ~(1 << bit_position); |
11124 } | 11127 } |
11125 return value; | 11128 return value; |
11126 } | 11129 } |
11127 }; | 11130 }; |
11128 | 11131 |
11129 } } // namespace v8::internal | 11132 } } // namespace v8::internal |
11130 | 11133 |
11131 #endif // V8_OBJECTS_H_ | 11134 #endif // V8_OBJECTS_H_ |
OLD | NEW |