| 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 5935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5982 | 5982 |
| 5983 // Tells whether or not this function has been optimized. | 5983 // Tells whether or not this function has been optimized. |
| 5984 inline bool IsOptimized(); | 5984 inline bool IsOptimized(); |
| 5985 | 5985 |
| 5986 // Tells whether or not this function can be optimized. | 5986 // Tells whether or not this function can be optimized. |
| 5987 inline bool IsOptimizable(); | 5987 inline bool IsOptimizable(); |
| 5988 | 5988 |
| 5989 // Mark this function for lazy recompilation. The function will be | 5989 // Mark this function for lazy recompilation. The function will be |
| 5990 // recompiled the next time it is executed. | 5990 // recompiled the next time it is executed. |
| 5991 void MarkForLazyRecompilation(); | 5991 void MarkForLazyRecompilation(); |
| 5992 void MarkForParallelRecompilation(); |
| 5992 | 5993 |
| 5993 // Helpers to compile this function. Returns true on success, false on | 5994 // Helpers to compile this function. Returns true on success, false on |
| 5994 // failure (e.g., stack overflow during compilation). | 5995 // failure (e.g., stack overflow during compilation). |
| 5995 static bool EnsureCompiled(Handle<JSFunction> function, | 5996 static bool EnsureCompiled(Handle<JSFunction> function, |
| 5996 ClearExceptionFlag flag); | 5997 ClearExceptionFlag flag); |
| 5997 static bool CompileLazy(Handle<JSFunction> function, | 5998 static bool CompileLazy(Handle<JSFunction> function, |
| 5998 ClearExceptionFlag flag); | 5999 ClearExceptionFlag flag); |
| 5999 static bool CompileOptimized(Handle<JSFunction> function, | 6000 static bool CompileOptimized(Handle<JSFunction> function, |
| 6000 int osr_ast_id, | 6001 int osr_ast_id, |
| 6001 ClearExceptionFlag flag); | 6002 ClearExceptionFlag flag); |
| 6002 | 6003 |
| 6003 // Tells whether or not the function is already marked for lazy | 6004 // Tells whether or not the function is already marked for lazy |
| 6004 // recompilation. | 6005 // recompilation. |
| 6005 inline bool IsMarkedForLazyRecompilation(); | 6006 inline bool IsMarkedForLazyRecompilation(); |
| 6007 inline bool IsMarkedForParallelRecompilation(); |
| 6008 |
| 6009 // Tells whether or not the function is on the parallel |
| 6010 // recompilation queue. |
| 6011 inline bool IsInRecompileQueue(); |
| 6006 | 6012 |
| 6007 // Check whether or not this function is inlineable. | 6013 // Check whether or not this function is inlineable. |
| 6008 bool IsInlineable(); | 6014 bool IsInlineable(); |
| 6009 | 6015 |
| 6010 // [literals_or_bindings]: Fixed array holding either | 6016 // [literals_or_bindings]: Fixed array holding either |
| 6011 // the materialized literals or the bindings of a bound function. | 6017 // the materialized literals or the bindings of a bound function. |
| 6012 // | 6018 // |
| 6013 // If the function contains object, regexp or array literals, the | 6019 // If the function contains object, regexp or array literals, the |
| 6014 // literals array prefix contains the object, regexp, and array | 6020 // literals array prefix contains the object, regexp, and array |
| 6015 // function to be used when creating these literals. This is | 6021 // function to be used when creating these literals. This is |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8884 } else { | 8890 } else { |
| 8885 value &= ~(1 << bit_position); | 8891 value &= ~(1 << bit_position); |
| 8886 } | 8892 } |
| 8887 return value; | 8893 return value; |
| 8888 } | 8894 } |
| 8889 }; | 8895 }; |
| 8890 | 8896 |
| 8891 } } // namespace v8::internal | 8897 } } // namespace v8::internal |
| 8892 | 8898 |
| 8893 #endif // V8_OBJECTS_H_ | 8899 #endif // V8_OBJECTS_H_ |
| OLD | NEW |