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

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: Set optimize_in_parallel to false by default. 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
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698