| 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 5764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5775 // Tells whether or not this function has been optimized. | 5775 // Tells whether or not this function has been optimized. |
| 5776 inline bool IsOptimized(); | 5776 inline bool IsOptimized(); |
| 5777 | 5777 |
| 5778 // Tells whether or not this function can be optimized. | 5778 // Tells whether or not this function can be optimized. |
| 5779 inline bool IsOptimizable(); | 5779 inline bool IsOptimizable(); |
| 5780 | 5780 |
| 5781 // Mark this function for lazy recompilation. The function will be | 5781 // Mark this function for lazy recompilation. The function will be |
| 5782 // recompiled the next time it is executed. | 5782 // recompiled the next time it is executed. |
| 5783 void MarkForLazyRecompilation(); | 5783 void MarkForLazyRecompilation(); |
| 5784 | 5784 |
| 5785 void RecompileInParallel(); |
| 5786 |
| 5785 // Helpers to compile this function. Returns true on success, false on | 5787 // Helpers to compile this function. Returns true on success, false on |
| 5786 // failure (e.g., stack overflow during compilation). | 5788 // failure (e.g., stack overflow during compilation). |
| 5787 static bool CompileLazy(Handle<JSFunction> function, | 5789 static bool CompileLazy(Handle<JSFunction> function, |
| 5788 ClearExceptionFlag flag); | 5790 ClearExceptionFlag flag); |
| 5789 static bool CompileOptimized(Handle<JSFunction> function, | 5791 static bool CompileOptimized(Handle<JSFunction> function, |
| 5790 int osr_ast_id, | 5792 int osr_ast_id, |
| 5791 ClearExceptionFlag flag); | 5793 ClearExceptionFlag flag); |
| 5792 | 5794 |
| 5793 // Tells whether or not the function is already marked for lazy | 5795 // Tells whether or not the function is already marked for lazy |
| 5794 // recompilation. | 5796 // recompilation. |
| (...skipping 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8647 } else { | 8649 } else { |
| 8648 value &= ~(1 << bit_position); | 8650 value &= ~(1 << bit_position); |
| 8649 } | 8651 } |
| 8650 return value; | 8652 return value; |
| 8651 } | 8653 } |
| 8652 }; | 8654 }; |
| 8653 | 8655 |
| 8654 } } // namespace v8::internal | 8656 } } // namespace v8::internal |
| 8655 | 8657 |
| 8656 #endif // V8_OBJECTS_H_ | 8658 #endif // V8_OBJECTS_H_ |
| OLD | NEW |