Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: src/objects.h

Issue 10417010: Run Crankshaft on a separate thread. (Closed) Base URL: https://chromiumcodereview.appspot.com/10387157
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Compile this function on the separate compiler thread. Asserts
5786 // FLAG_concurrrent_crankshaft
5787 void CompileConcurrently();
5788
5785 // Helpers to compile this function. Returns true on success, false on 5789 // Helpers to compile this function. Returns true on success, false on
5786 // failure (e.g., stack overflow during compilation). 5790 // failure (e.g., stack overflow during compilation).
5787 static bool CompileLazy(Handle<JSFunction> function, 5791 static bool CompileLazy(Handle<JSFunction> function,
5788 ClearExceptionFlag flag); 5792 ClearExceptionFlag flag);
5789 static bool CompileOptimized(Handle<JSFunction> function, 5793 static bool CompileOptimized(Handle<JSFunction> function,
5790 int osr_ast_id, 5794 int osr_ast_id,
5791 ClearExceptionFlag flag); 5795 ClearExceptionFlag flag);
5792 5796
5793 // Tells whether or not the function is already marked for lazy 5797 // Tells whether or not the function is already marked for lazy
5794 // recompilation. 5798 // recompilation.
(...skipping 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after
8647 } else { 8651 } else {
8648 value &= ~(1 << bit_position); 8652 value &= ~(1 << bit_position);
8649 } 8653 }
8650 return value; 8654 return value;
8651 } 8655 }
8652 }; 8656 };
8653 8657
8654 } } // namespace v8::internal 8658 } } // namespace v8::internal
8655 8659
8656 #endif // V8_OBJECTS_H_ 8660 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698