OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 7366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7377 | 7377 |
7378 // Tells whether or not this function can be optimized. | 7378 // Tells whether or not this function can be optimized. |
7379 inline bool IsOptimizable(); | 7379 inline bool IsOptimizable(); |
7380 | 7380 |
7381 // Mark this function for lazy recompilation. The function will be | 7381 // Mark this function for lazy recompilation. The function will be |
7382 // recompiled the next time it is executed. | 7382 // recompiled the next time it is executed. |
7383 void MarkForOptimization(); | 7383 void MarkForOptimization(); |
7384 void MarkForConcurrentOptimization(); | 7384 void MarkForConcurrentOptimization(); |
7385 void MarkInOptimizationQueue(); | 7385 void MarkInOptimizationQueue(); |
7386 | 7386 |
7387 static bool CompileOptimized(Handle<JSFunction> function, | |
7388 ClearExceptionFlag flag); | |
7389 | |
7390 // Tells whether or not the function is already marked for lazy | 7387 // Tells whether or not the function is already marked for lazy |
7391 // recompilation. | 7388 // recompilation. |
7392 inline bool IsMarkedForOptimization(); | 7389 inline bool IsMarkedForOptimization(); |
7393 inline bool IsMarkedForConcurrentOptimization(); | 7390 inline bool IsMarkedForConcurrentOptimization(); |
7394 | 7391 |
7395 // Tells whether or not the function is on the concurrent recompilation queue. | 7392 // Tells whether or not the function is on the concurrent recompilation queue. |
7396 inline bool IsInOptimizationQueue(); | 7393 inline bool IsInOptimizationQueue(); |
7397 | 7394 |
7398 // [literals_or_bindings]: Fixed array holding either | 7395 // [literals_or_bindings]: Fixed array holding either |
7399 // the materialized literals or the bindings of a bound function. | 7396 // the materialized literals or the bindings of a bound function. |
(...skipping 3377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10777 } else { | 10774 } else { |
10778 value &= ~(1 << bit_position); | 10775 value &= ~(1 << bit_position); |
10779 } | 10776 } |
10780 return value; | 10777 return value; |
10781 } | 10778 } |
10782 }; | 10779 }; |
10783 | 10780 |
10784 } } // namespace v8::internal | 10781 } } // namespace v8::internal |
10785 | 10782 |
10786 #endif // V8_OBJECTS_H_ | 10783 #endif // V8_OBJECTS_H_ |
OLD | NEW |