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 | |
7594 // Mark this function for lazy recompilation. The function will be | 7591 // Mark this function for lazy recompilation. The function will be |
7595 // recompiled the next time it is executed. | 7592 // recompiled the next time it is executed. |
7596 void MarkForOptimization(); | 7593 void MarkForOptimization(); |
7597 void AttemptConcurrentOptimization(); | 7594 void AttemptConcurrentOptimization(); |
7598 | 7595 |
7599 // Tells whether or not the function is already marked for lazy | 7596 // Tells whether or not the function is already marked for lazy |
7600 // recompilation. | 7597 // recompilation. |
7601 inline bool IsMarkedForOptimization(); | 7598 inline bool IsMarkedForOptimization(); |
7602 inline bool IsMarkedForConcurrentOptimization(); | 7599 inline bool IsMarkedForConcurrentOptimization(); |
7603 | 7600 |
(...skipping 3521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11125 } else { | 11122 } else { |
11126 value &= ~(1 << bit_position); | 11123 value &= ~(1 << bit_position); |
11127 } | 11124 } |
11128 return value; | 11125 return value; |
11129 } | 11126 } |
11130 }; | 11127 }; |
11131 | 11128 |
11132 } } // namespace v8::internal | 11129 } } // namespace v8::internal |
11133 | 11130 |
11134 #endif // V8_OBJECTS_H_ | 11131 #endif // V8_OBJECTS_H_ |
OLD | NEW |