| 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 5915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5926 | 5926 |
| 5927 // Indicates that the function cannot be optimized. | 5927 // Indicates that the function cannot be optimized. |
| 5928 DECL_BOOLEAN_ACCESSORS(dont_optimize) | 5928 DECL_BOOLEAN_ACCESSORS(dont_optimize) |
| 5929 | 5929 |
| 5930 // Indicates that the function cannot be inlined. | 5930 // Indicates that the function cannot be inlined. |
| 5931 DECL_BOOLEAN_ACCESSORS(dont_inline) | 5931 DECL_BOOLEAN_ACCESSORS(dont_inline) |
| 5932 | 5932 |
| 5933 // Indicates that code for this function cannot be cached. | 5933 // Indicates that code for this function cannot be cached. |
| 5934 DECL_BOOLEAN_ACCESSORS(dont_cache) | 5934 DECL_BOOLEAN_ACCESSORS(dont_cache) |
| 5935 | 5935 |
| 5936 // Indicates that this function is a generator. |
| 5937 DECL_BOOLEAN_ACCESSORS(is_generator) |
| 5938 |
| 5936 // Indicates whether or not the code in the shared function support | 5939 // Indicates whether or not the code in the shared function support |
| 5937 // deoptimization. | 5940 // deoptimization. |
| 5938 inline bool has_deoptimization_support(); | 5941 inline bool has_deoptimization_support(); |
| 5939 | 5942 |
| 5940 // Enable deoptimization support through recompiled code. | 5943 // Enable deoptimization support through recompiled code. |
| 5941 void EnableDeoptimizationSupport(Code* recompiled); | 5944 void EnableDeoptimizationSupport(Code* recompiled); |
| 5942 | 5945 |
| 5943 // Disable (further) attempted optimization of all functions sharing this | 5946 // Disable (further) attempted optimization of all functions sharing this |
| 5944 // shared function info. | 5947 // shared function info. |
| 5945 void DisableOptimization(const char* reason); | 5948 void DisableOptimization(const char* reason); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6152 kUsesArguments, | 6155 kUsesArguments, |
| 6153 kHasDuplicateParameters, | 6156 kHasDuplicateParameters, |
| 6154 kNative, | 6157 kNative, |
| 6155 kBoundFunction, | 6158 kBoundFunction, |
| 6156 kIsAnonymous, | 6159 kIsAnonymous, |
| 6157 kNameShouldPrintAsAnonymous, | 6160 kNameShouldPrintAsAnonymous, |
| 6158 kIsFunction, | 6161 kIsFunction, |
| 6159 kDontOptimize, | 6162 kDontOptimize, |
| 6160 kDontInline, | 6163 kDontInline, |
| 6161 kDontCache, | 6164 kDontCache, |
| 6165 kIsGenerator, |
| 6162 kCompilerHintsCount // Pseudo entry | 6166 kCompilerHintsCount // Pseudo entry |
| 6163 }; | 6167 }; |
| 6164 | 6168 |
| 6165 class DeoptCountBits: public BitField<int, 0, 4> {}; | 6169 class DeoptCountBits: public BitField<int, 0, 4> {}; |
| 6166 class OptReenableTriesBits: public BitField<int, 4, 18> {}; | 6170 class OptReenableTriesBits: public BitField<int, 4, 18> {}; |
| 6167 class ICAgeBits: public BitField<int, 22, 8> {}; | 6171 class ICAgeBits: public BitField<int, 22, 8> {}; |
| 6168 | 6172 |
| 6169 private: | 6173 private: |
| 6170 #if V8_HOST_ARCH_32_BIT | 6174 #if V8_HOST_ARCH_32_BIT |
| 6171 // On 32 bit platforms, compiler hints is a smi. | 6175 // On 32 bit platforms, compiler hints is a smi. |
| (...skipping 3075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9247 } else { | 9251 } else { |
| 9248 value &= ~(1 << bit_position); | 9252 value &= ~(1 << bit_position); |
| 9249 } | 9253 } |
| 9250 return value; | 9254 return value; |
| 9251 } | 9255 } |
| 9252 }; | 9256 }; |
| 9253 | 9257 |
| 9254 } } // namespace v8::internal | 9258 } } // namespace v8::internal |
| 9255 | 9259 |
| 9256 #endif // V8_OBJECTS_H_ | 9260 #endif // V8_OBJECTS_H_ |
| OLD | NEW |