| 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 15 matching lines...) Expand all Loading... |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_OBJECTS_H_ | 28 #ifndef V8_OBJECTS_H_ |
| 29 #define V8_OBJECTS_H_ | 29 #define V8_OBJECTS_H_ |
| 30 | 30 |
| 31 #include "allocation.h" | 31 #include "allocation.h" |
| 32 #include "builtins.h" | 32 #include "builtins.h" |
| 33 #include "elements-kind.h" | 33 #include "elements-kind.h" |
| 34 #include "list.h" | 34 #include "list.h" |
| 35 #include "property-details.h" | 35 #include "property-details.h" |
| 36 #include "smart-array-pointer.h" | 36 #include "smart-pointers.h" |
| 37 #include "unicode-inl.h" | 37 #include "unicode-inl.h" |
| 38 #if V8_TARGET_ARCH_ARM | 38 #if V8_TARGET_ARCH_ARM |
| 39 #include "arm/constants-arm.h" | 39 #include "arm/constants-arm.h" |
| 40 #elif V8_TARGET_ARCH_MIPS | 40 #elif V8_TARGET_ARCH_MIPS |
| 41 #include "mips/constants-mips.h" | 41 #include "mips/constants-mips.h" |
| 42 #endif | 42 #endif |
| 43 #include "v8checks.h" | 43 #include "v8checks.h" |
| 44 #include "zone.h" | 44 #include "zone.h" |
| 45 | 45 |
| 46 | 46 |
| (...skipping 5947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5994 | 5994 |
| 5995 // Tells whether or not this function has been optimized. | 5995 // Tells whether or not this function has been optimized. |
| 5996 inline bool IsOptimized(); | 5996 inline bool IsOptimized(); |
| 5997 | 5997 |
| 5998 // Tells whether or not this function can be optimized. | 5998 // Tells whether or not this function can be optimized. |
| 5999 inline bool IsOptimizable(); | 5999 inline bool IsOptimizable(); |
| 6000 | 6000 |
| 6001 // Mark this function for lazy recompilation. The function will be | 6001 // Mark this function for lazy recompilation. The function will be |
| 6002 // recompiled the next time it is executed. | 6002 // recompiled the next time it is executed. |
| 6003 void MarkForLazyRecompilation(); | 6003 void MarkForLazyRecompilation(); |
| 6004 void MarkForParallelRecompilation(); |
| 6004 | 6005 |
| 6005 // Helpers to compile this function. Returns true on success, false on | 6006 // Helpers to compile this function. Returns true on success, false on |
| 6006 // failure (e.g., stack overflow during compilation). | 6007 // failure (e.g., stack overflow during compilation). |
| 6007 static bool EnsureCompiled(Handle<JSFunction> function, | 6008 static bool EnsureCompiled(Handle<JSFunction> function, |
| 6008 ClearExceptionFlag flag); | 6009 ClearExceptionFlag flag); |
| 6009 static bool CompileLazy(Handle<JSFunction> function, | 6010 static bool CompileLazy(Handle<JSFunction> function, |
| 6010 ClearExceptionFlag flag); | 6011 ClearExceptionFlag flag); |
| 6011 static bool CompileOptimized(Handle<JSFunction> function, | 6012 static bool CompileOptimized(Handle<JSFunction> function, |
| 6012 int osr_ast_id, | 6013 int osr_ast_id, |
| 6013 ClearExceptionFlag flag); | 6014 ClearExceptionFlag flag); |
| 6014 | 6015 |
| 6015 // Tells whether or not the function is already marked for lazy | 6016 // Tells whether or not the function is already marked for lazy |
| 6016 // recompilation. | 6017 // recompilation. |
| 6017 inline bool IsMarkedForLazyRecompilation(); | 6018 inline bool IsMarkedForLazyRecompilation(); |
| 6019 inline bool IsMarkedForParallelRecompilation(); |
| 6020 |
| 6021 // Tells whether or not the function is on the parallel |
| 6022 // recompilation queue. |
| 6023 inline bool IsInRecompileQueue(); |
| 6018 | 6024 |
| 6019 // Check whether or not this function is inlineable. | 6025 // Check whether or not this function is inlineable. |
| 6020 bool IsInlineable(); | 6026 bool IsInlineable(); |
| 6021 | 6027 |
| 6022 // [literals_or_bindings]: Fixed array holding either | 6028 // [literals_or_bindings]: Fixed array holding either |
| 6023 // the materialized literals or the bindings of a bound function. | 6029 // the materialized literals or the bindings of a bound function. |
| 6024 // | 6030 // |
| 6025 // If the function contains object, regexp or array literals, the | 6031 // If the function contains object, regexp or array literals, the |
| 6026 // literals array prefix contains the object, regexp, and array | 6032 // literals array prefix contains the object, regexp, and array |
| 6027 // function to be used when creating these literals. This is | 6033 // function to be used when creating these literals. This is |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8896 } else { | 8902 } else { |
| 8897 value &= ~(1 << bit_position); | 8903 value &= ~(1 << bit_position); |
| 8898 } | 8904 } |
| 8899 return value; | 8905 return value; |
| 8900 } | 8906 } |
| 8901 }; | 8907 }; |
| 8902 | 8908 |
| 8903 } } // namespace v8::internal | 8909 } } // namespace v8::internal |
| 8904 | 8910 |
| 8905 #endif // V8_OBJECTS_H_ | 8911 #endif // V8_OBJECTS_H_ |
| OLD | NEW |